CCrmInvoiceRecurringRestProxy::getFieldsInfo

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmInvoiceRecurringRestProxy
  4. getFieldsInfo
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
  • Класс: \CCrmInvoiceRecurringRestProxy
  • Вызов: CCrmInvoiceRecurringRestProxy::getFieldsInfo
protected function getFieldsInfo()
{
	if(!$this->FIELDS_INFO)
	{
		$restInstance = \Bitrix\Crm\Recurring\Entity\ParameterMapper\RestInvoice::getInstance();
		$fieldParameters = $restInstance->getFieldsInfo();
		$this->FIELDS_INFO = array(
			'ID' => array(
				'TYPE' => 'integer',
				'ATTRIBUTES' => array(CCrmFieldInfoAttr::ReadOnly)
			),
			'INVOICE_ID' => array(
				'TYPE' => 'integer',
				'ATTRIBUTES' => array(
					CCrmFieldInfoAttr::Required,
					CCrmFieldInfoAttr::Immutable
				)
			),
			'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'
			),
			'IS_LIMIT' => array(
				'TYPE' => 'char'
			),
			'SEND_BILL' => array(
				'TYPE' => 'char'
			),
			'EMAIL_ID' => array(
				'TYPE' => 'integer'
			),
			'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\InvoiceRecurTable::getFieldCaption($code);
		}
	}
	return $this->FIELDS_INFO;
}

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