Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/zverushki.seofilter/lib/internals/ |
Upload File : |
<?php /** * Created by PhpStorm. * User: luk * Date: 05.05.2021 * Time: 19:41 */ namespace Zverushki\Seofilter\Internals; use Bitrix\Main, Bitrix\Main\Entity, Bitrix\Main\Localization\Loc; Loc::loadMessages(__FILE__); /** * Class LandingVarTable * * Fields: * <ul> * <li> ID int mandatory * </ul> * * @package Zverushki\Seofilter\Internals **/ class LandingVarTable extends Entity\DataManager { /** * Returns DB table name for entity. * * @return string */ public static function getTableName () { return 'zverushki_seofilter_landing_var'; } public static function add (array $fields) { return parent::add($fields); } public static function update ($id, array $fields) { return parent::update($id, $fields); } public static function delete ($id) { return parent::delete($id); } /** * Returns entity map definition. * * @return array */ public static function getMap () { return array( new Entity\IntegerField('ID', array( 'primary' => true, 'autocomplete' => true, 'title' => Loc::getMessage('SEOFILTER_ENTITY_ID_FIELD'), )), new Entity\IntegerField('LANDING_ID', array( 'required' => true, 'title' => Loc::getMessage('SEOFILTER_ENTITY_LANDING_ID_FIELD'), )), new Entity\BooleanField('TYPE', array( 'required' => true, 'values' => array('V', 'P'), 'default_value' => 'V', 'title' => Loc::getMessage('SEOFILTER_ENTITY_TYPE_FIELD'), )), new Entity\StringField('CODE', array( 'title' => Loc::getMessage('SEOFILTER_ENTITY_CODE_FIELD'), )), new Entity\StringField('VALUE', array( 'required' => false, 'default_value' => '', 'title' => Loc::getMessage('SEOFILTER_ENTITY_VALUE_FIELD'), )) ); } } ?>