Пример #1
0
	/**
	 * Returns entity map definition.
	 *
	 * @return array
	 */
	public static function getMap()
	{
		return array_merge(
			parent::getMap(),
			array(
				'CAMPAIGN_ID' => array(
					'data_type' => 'integer',
					'required' => true,
					'title' => Loc::getMessage('ADV_CAMPAIGN_ENTITY_CAMPAIGN_ID_FIELD'),
				),
				'GROUP_ID' => array(
					'data_type' => 'integer',
					'title' => Loc::getMessage('ADV_CAMPAIGN_ENTITY_GROUP_ID_FIELD'),
				),
				'CAMPAIGN' => array(
					'data_type' => 'Bitrix\Seo\Adv\YandexCampaignTable',
					'reference' => array('=this.CAMPAIGN_ID' => 'ref.ID'),
				),
				'GROUP' => array(
					'data_type' => 'Bitrix\Seo\Adv\YandexGroupTable',
					'reference' => array('=this.GROUP_ID' => 'ref.ID'),
				),
			)
		);
	}
Пример #2
0
 public static function getList($params)
 {
     if (static::needDatabaseUpdate()) {
         static::updateDatabase();
     }
     return parent::getList($params);
 }
Пример #3
0
 public static function getMap()
 {
     return array_merge(parent::getMap(), array('CAMPAIGN_ID' => array('data_type' => 'integer', 'title' => Loc::getMessage('ADV_CAMPAIGN_ENTITY_CAMPAIGN_ID_FIELD')), 'CAMPAIGN' => array('data_type' => 'Bitrix\\Seo\\Adv\\YandexCampaignTable', 'reference' => array('=this.CAMPAIGN_ID' => 'ref.ID'))));
 }
Пример #4
0
 /**
  * Returns entity map definition.
  *
  * @return array
  */
 public static function getMap()
 {
     return array_merge(parent::getMap(), array('CAMPAIGN_ID' => array('data_type' => 'integer', 'required' => true, 'title' => Loc::getMessage('ADV_CAMPAIGN_ENTITY_CAMPAIGN_ID_FIELD')), 'GROUP_ID' => array('data_type' => 'integer', 'title' => Loc::getMessage('ADV_CAMPAIGN_ENTITY_GROUP_ID_FIELD')), 'AUTO_QUANTITY_OFF' => array('data_type' => 'enum', 'values' => array(static::INACTIVE, static::ACTIVE, static::MARKED), 'title' => Loc::getMessage('ADV_CAMPAIGN_ENTITY_AUTO_QUANTITY_OFF_FIELD')), 'AUTO_QUANTITY_ON' => array('data_type' => 'enum', 'values' => array(static::INACTIVE, static::ACTIVE, static::MARKED), 'title' => Loc::getMessage('ADV_CAMPAIGN_ENTITY_AUTO_QUANTITY_ON_FIELD')), 'CAMPAIGN' => array('data_type' => 'Bitrix\\Seo\\Adv\\YandexCampaignTable', 'reference' => array('=this.CAMPAIGN_ID' => 'ref.ID')), 'GROUP' => array('data_type' => 'Bitrix\\Seo\\Adv\\YandexGroupTable', 'reference' => array('=this.GROUP_ID' => 'ref.ID'))));
 }