CCrmTimelineCommentRestProxy::getFieldsInfo

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

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

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