%PDF- %PDF-
Direktori : /home/bitrix/www/bitrix/modules/sale/lib/sender/ |
Current File : //home/bitrix/www/bitrix/modules/sale/lib/sender/triggerordernew.php |
<? namespace Bitrix\Sale\Sender; use Bitrix\Main\Localization\Loc; use Bitrix\Main\Loader; if (!Loader::includeModule('sender')) { return; } Loc::loadMessages(__FILE__); class TriggerOrderNew extends \Bitrix\Sender\TriggerConnector { public function getName() { return Loc::getMessage('sender_trigger_order_new_name'); } public function getCode() { return "order_new"; } public function getEventModuleId() { return 'sale'; } public function getEventType() { return "OnOrderAdd"; } public function getConnector() { $connector = new \Bitrix\Sale\Sender\ConnectorOrder; $connector->setModuleId('sale'); return $connector; } /** @return array */ public function getProxyFieldsFromEventToConnector() { $eventData = $this->getParam('EVENT'); return array('ID' => $eventData[0], 'LID' => $this->getSiteId()); } /** * @return array */ public function getPersonalizeFields() { $eventData = $this->getParam('EVENT'); return array( 'ORDER_ID' => $eventData[0] ); } /** * @return array */ public static function getPersonalizeList() { return array( array( 'CODE' => 'ORDER_ID', 'NAME' => Loc::getMessage('sender_trigger_order_new_pers_order_id_name'), 'DESC' => Loc::getMessage('sender_trigger_order_new_pers_order_id_desc') ) ); } public function getForm() { return ''; } }