Documentation

getTypes

array public static
\Bitrix\Crm\Activity\Provider\Base::getTypes(
);

Method returns array with generated activity type provider. Static method.

No parameters.

Example

public static function getTypes()
{
   return array(
      array(
         'NAME' => 'Activity Stream post',
         'PROVIDER_ID' => 'CRM_LF_MESSAGE',
         'PROVIDER_TYPE_ID' => 'LOG_ENTRY',
         'DIRECTIONS' => array(
            \CCrmActivityDirection::Outgoing => 'Activity Stream post'
          )
      ),
      array(
         'NAME' => 'Activity Stream post comment',
         'PROVIDER_ID' => 'CRM_LF_MESSAGE',
         'PROVIDER_TYPE_ID' => 'LOG_COMMENT',
         'DIRECTIONS' => array(
            \CCrmActivityDirection::Incoming => 'Activity Stream post comment'
         )
      ),
   );
}


© «Bitrix24», 2001-2024
Up