...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/controller/tooltip.php
- Класс: Bitrix\Crm\Controller\Tooltip
- Вызов: Tooltip::cardAction
public function cardAction(string $USER_ID): Json { Container::getInstance()->getLocalization()->loadMessages(); $result = [ 'Toolbar' => '', 'ToolbarItems' => '', 'Toolbar2' => '', 'Name' => Loc::getMessage('CRM_TYPE_ITEM_NOT_FOUND'), 'Card' => '', 'Photo' => '', 'Scripts' => '' ]; [$this->entityTypeId, $this->itemId] = explode('-', $USER_ID); $this->factory = Container::getInstance()->getFactory($this->entityTypeId); if (!$this->factory) { return new Json([ 'RESULT' => $result ]); } $this->item = $this->factory->getItem($this->itemId); if (!$this->item) { return new Json([ 'RESULT' => $result ]); } $this->detailUrl = Container::getInstance()->getRouter()->getItemDetailUrl( $this->entityTypeId, $this->itemId ); $result = [ 'Toolbar' => '', 'ToolbarItems' => '', 'Toolbar2' => $this->getToolbar(), 'Name' => $this->getName(), 'Card' => $this->getCard(), 'Photo' => $this->getPhoto(), 'Scripts' => '' ]; return new Json([ 'RESULT' => $result ]); }