58 return 'b_im_command';
70 'data_type' =>
'integer',
72 'autocomplete' =>
true,
76 'data_type' =>
'integer',
80 'data_type' =>
'string',
81 'validation' => array(__CLASS__,
'validateAppId'),
83 'default_value' =>
'',
86 'data_type' =>
'string',
88 'validation' => array(__CLASS__,
'validateCommand'),
92 'data_type' =>
'boolean',
93 'values' => array(
'N',
'Y'),
95 'default_value' =>
'N',
98 'data_type' =>
'boolean',
99 'values' => array(
'N',
'Y'),
101 'default_value' =>
'N',
103 'EXTRANET_SUPPORT' => array(
104 'data_type' =>
'boolean',
105 'values' => array(
'N',
'Y'),
107 'default_value' =>
'N',
109 'SONET_SUPPORT' => array(
110 'data_type' =>
'boolean',
111 'values' => array(
'N',
'Y'),
113 'default_value' =>
'N',
116 'data_type' =>
'string',
117 'validation' => array(__CLASS__,
'validateClass'),
120 'METHOD_COMMAND_ADD' => array(
121 'data_type' =>
'string',
122 'validation' => array(__CLASS__,
'validateMethodCommandAdd'),
125 'METHOD_LANG_GET' => array(
126 'data_type' =>
'string',
127 'validation' => array(__CLASS__,
'validateMethodLangGet'),
130 'MODULE_ID' => array(
131 'data_type' =>
'string',
133 'validation' => array(__CLASS__,
'validateModuleId'),
146 new Main\
Entity\Validator\Length(
null, 255),
157 new Main\
Entity\Validator\Length(
null, 255),
168 new Main\
Entity\Validator\Length(
null, 255),
179 new Main\
Entity\Validator\Length(
null, 255),
190 new Main\
Entity\Validator\Length(
null, 255),
201 new Main\
Entity\Validator\Length(
null, 50),
222 $id = (int)$event->getParameter(
'primary')[
'ID'];
230 return new Main\Entity\EventResult();
235 $result = CommandTable::getById($id)->fetch();
237 return $result[
'BOT_ID'] ?:
null;
static validateMethodCommandAdd()
static onAfterAdd(\Bitrix\Main\ORM\Event $event)
static validateMethodLangGet()
static onAfterDelete(\Bitrix\Main\ORM\Event $event)
static onAfterUpdate(\Bitrix\Main\ORM\Event $event)
static validateModuleId()
static clearCommandCache(\Bitrix\Main\ORM\Event $event)
static cleanCache(int $id)