CCrmTimelineBindingRestProxy::getFieldsInfo

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmTimelineBindingRestProxy
  4. getFieldsInfo
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
  • Класс: \CCrmTimelineBindingRestProxy
  • Вызов: CCrmTimelineBindingRestProxy::getFieldsInfo
protected function getFieldsInfo()
{
	if(!$this->FIELDS_INFO)
	{
		$this->FIELDS_INFO = array(
			'OWNER_ID' => array(
				'TYPE' => 'integer',
				'ATTRIBUTES' => array(
					CCrmFieldInfoAttr::Required,
					CCrmFieldInfoAttr::Immutable
				)
			),
			'ENTITY_ID' => array(
				'TYPE' => 'integer',
				'ATTRIBUTES' => array(
					CCrmFieldInfoAttr::Required,
					CCrmFieldInfoAttr::Immutable
				)
			),
			'ENTITY_TYPE' => array(
				'TYPE' => 'string',
				'ATTRIBUTES' => array(
					CCrmFieldInfoAttr::Required,
					CCrmFieldInfoAttr::Immutable
				)
			)
		);

		foreach ($this->FIELDS_INFO  as $code=>&$field)
		{
			$field['CAPTION'] = Loc::getMessage("CRM_REST_TIMELINE_BINDINGS_FIELD_".$code);
		}
	}
	return $this->FIELDS_INFO;
}

Добавить комментарий