6use Bitrix\Main\Localization\Loc;
7use Bitrix\Main\ORM\Fields\ArrayField;
8use Bitrix\Main\ORM\Fields\DatetimeField;
9use Bitrix\Main\ORM\Fields\IntegerField;
10use Bitrix\Main\ORM\Fields\BooleanField;
11use Bitrix\Main\ORM\Fields\StringField;
12use Bitrix\Main\ORM\Fields\Relations\Reference;
13use Bitrix\Main\Type\DateTime;
14use Bitrix\Main\ORM\Query\Join;
16Loc::loadMessages(__FILE__);
51 'autocomplete' =>
true,
52 'title' => Loc::getMessage(
'ADV_CAMPAIGN_ENTITY_ID_FIELD'),
56 'title' => Loc::getMessage(
'ADV_CAMPAIGN_ENTITY_ENGINE_ID_FIELD'),
59 'values' =>
array(static::INACTIVE, static::ACTIVE),
63 'title' => Loc::getMessage(
'ADV_CAMPAIGN_ENTITY_OWNER_ID_FIELD'),
67 'title' => Loc::getMessage(
'ADV_CAMPAIGN_ENTITY_OWNER_NAME_FIELD'),
71 'title' => Loc::getMessage(
'ADV_CAMPAIGN_ENTITY_XML_ID_FIELD'),
74 'title' => Loc::getMessage(
'ADV_CAMPAIGN_ENTITY_NAME_FIELD'),
77 'title' => Loc::getMessage(
'ADV_CAMPAIGN_ENTITY_LAST_UPDATE_FIELD'),
80 'title' => Loc::getMessage(
'ADV_CAMPAIGN_ENTITY_SETTINGS_FIELD'),
82 new Reference(
"ENGINE", SearchEngineTable::class, Join::on(
"this.ENGINE_ID",
"ref.ID"), [
83 "join_type" =>
"left",
90 static::$skipRemoteUpdate = $value;
95 $result =
new Entity\EventResult();
98 'ACTIVE' => static::ACTIVE,
106 $result =
new Entity\EventResult();
static onBeforeUpdate(Entity\Event $event)
static setSkipRemoteUpdate($value)
static onBeforeAdd(Entity\Event $event)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)