File manager - Edit - /home/web/vm-3fadc827.na4u.ru/www/bitrix/modules/sale/lib/exchange/integration/crm/placement/placementdefault.php
Back
<?php namespace Bitrix\Sale\Exchange\Integration\CRM\Placement; use Bitrix\Sale\Exchange\Integration\CRM\EntityType; class PlacementDefault extends Base { const VIEW_ACTION = 'view_activity'; public function getType() { return Type::DEFAULT_TOOLBAR; } public function getEntityId() { return $this->fields->get('PLACEMENT_OPTIONS')['activity_id']; } public function getEntityTypeId() { $type = $this->getAction(); if($type == static::VIEW_ACTION) { return EntityType::ACTIVITY; } else { throw new \Bitrix\Main\NotSupportedException("Action AppPlacementType: '".$type."' is not supported in current context"); } } protected function getAction() { return $this->fields->get('PLACEMENT_OPTIONS')['action']; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.25 |
proxy
|
phpinfo
|
Settings