Current Path : /var/www/axolotl/data/www/voronezh.axolotls.ru/bitrix/modules/landing/lib/internals/ |
Current File : /var/www/axolotl/data/www/voronezh.axolotls.ru/bitrix/modules/landing/lib/internals/view.php |
<?php namespace Bitrix\Landing\Internals; use \Bitrix\Main\Localization\Loc; use \Bitrix\Main\Entity; Loc::loadMessages(__FILE__); class ViewTable extends Entity\DataManager { /** * Returns DB table name for entity. * @return string */ public static function getTableName() { return 'b_landing_view'; } /** * Returns entity map definition. * @return array */ public static function getMap() { return array( 'ID' => new Entity\IntegerField('ID', array( 'primary' => true, 'autocomplete' => true, 'title' => 'ID' )), 'LID' => new Entity\IntegerField('LID', array( 'title' => Loc::getMessage('LANDING_TABLE_FIELD_LID'), 'required' => true )), 'USER_ID' => new Entity\IntegerField('USER_ID', array( 'title' => Loc::getMessage('LANDING_TABLE_FIELD_USER_ID'), 'required' => true )), 'VIEWS' => new Entity\IntegerField('VIEWS', array( 'title' => Loc::getMessage('LANDING_TABLE_FIELD_VIEWS'), 'required' => true )), 'FIRST_VIEW' => new Entity\DatetimeField('FIRST_VIEW', array( 'title' => Loc::getMessage('LANDING_TABLE_FIELD_LAST_VIEW'), 'required' => true )), 'LAST_VIEW' => new Entity\DatetimeField('LAST_VIEW', array( 'title' => Loc::getMessage('LANDING_TABLE_FIELD_LAST_VIEW'), 'required' => true )) ); } }