CCrmDealRecurringRestProxy::getFieldsInfo

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmDealRecurringRestProxy
  4. getFieldsInfo
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
  • Класс: \CCrmDealRecurringRestProxy
  • Вызов: CCrmDealRecurringRestProxy::getFieldsInfo
protected function getFieldsInfo()
{
	if(!$this->FIELDS_INFO)
	{
		$restInstance = \Bitrix\Crm\Recurring\Entity\ParameterMapper\RestDeal::getInstance();
		$fieldParameters = $restInstance->getFieldsInfo();
		$this->FIELDS_INFO = array(
			'ID' => array(
				'TYPE' => 'integer',
				'ATTRIBUTES' => array(CCrmFieldInfoAttr::ReadOnly)
			),
			'DEAL_ID' => array(
				'TYPE' => 'integer',
				'ATTRIBUTES' => array(
					CCrmFieldInfoAttr::Required,
					CCrmFieldInfoAttr::Immutable
				)
			),
			'BASED_ID' => array(
				'TYPE' => 'integer',
				'ATTRIBUTES' => array(CCrmFieldInfoAttr::ReadOnly)
			),
			'ACTIVE' => array(
				'TYPE' => 'char'
			),
			'NEXT_EXECUTION' => array(
				'TYPE' => 'datetime',
				'ATTRIBUTES' => array(CCrmFieldInfoAttr::ReadOnly)
			),
			'LAST_EXECUTION' => array(
				'TYPE' => 'datetime',
				'ATTRIBUTES' => array(CCrmFieldInfoAttr::ReadOnly)
			),
			'COUNTER_REPEAT' => array(
				'TYPE' => 'integer',
				'ATTRIBUTES' => array(CCrmFieldInfoAttr::ReadOnly)
			),
			'START_DATE' => array(
				'TYPE' => 'date'
			),
			'CATEGORY_ID' => array(
				'TYPE' => 'char'
			),
			'IS_LIMIT' => array(
				'TYPE' => 'char'
			),
			'LIMIT_REPEAT' => array(
				'TYPE' => 'integer'
			),
			'LIMIT_DATE' => array(
				'TYPE' => 'date'
			),
			'PARAMS' => array(
				'TYPE' => 'recurring_params',
				'FIELDS' => $fieldParameters
			)
		);
		foreach ($this->FIELDS_INFO as $code=>&$field)
		{
			$field['CAPTION'] = \Bitrix\Crm\DealRecurTable::getFieldCaption($code);
		}
	}
	return $this->FIELDS_INFO;
}

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