CompanyCard::getArray

  1. Bitrix24 API (v. 23.675.0)
  2. sender
  3. CompanyCard
  4. getArray
  • Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/integration/crm/companycard.php
  • Класс: Bitrix\Sender\Integration\Crm\CompanyCard
  • Вызов: CompanyCard::getArray
static function getArray()
{
	Loader::includeModule('crm');
	$reqData = self::getRequisites();
	if (!is_array($reqData))
	{
		$reqData = array();
	}

	$data = array();
	$data['COMPANY_NAME'] = $reqData['RQ_COMPANY_NAME'];
	if (!$data['COMPANY_NAME'])
	{
		$data['COMPANY_NAME'] = $reqData['RQ_NAME'];
	}
	$data['COMPANY_NAME'] = str_replace(array("'", '"'), '', $data['COMPANY_NAME']);

	$data['PHONE'] = $reqData['RQ_PHONE'];
	$data['ADDRESS'] = $reqData['COMPANY_ADDRESS'];

	return array(
		'CODE' => self::DATA_PROVIDER_CODE,
		'EDIT_URL' => '/crm/configs/mycompany/',
		'DATA' => $data
	);
}

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