uawdijnntqw1x1x1
IP : 3.145.40.61
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
kirov.axolotls.ru
/
bitrix
/
modules
/
iblock
/
lib
/
propertyfeature.php
/
/
<?php namespace Bitrix\Iblock; use Bitrix\Main, Bitrix\Main\ORM, Bitrix\Main\Localization\Loc; Loc::loadMessages(__FILE__); /** * Class PropertyFeatureTable * * Fields: * <ul> * <li> ID int mandatory * <li> PROPERTY_ID int mandatory * <li> MODULE_ID string(50) mandatory * <li> FEATURE_ID string(100) mandatory * <li> IS_ENABLED bool optional default 'N' * <li> PROPERTY reference to {@link \Bitrix\Iblock\PropertyTable} * </ul> * * @package Bitrix\Iblock **/ class PropertyFeatureTable extends ORM\Data\DataManager { /** * Returns DB table name for entity. * * @return string */ public static function getTableName() { return 'b_iblock_property_feature'; } /** * Returns entity map definition. * * @return array */ public static function getMap() { return [ 'ID' => new ORM\Fields\IntegerField('ID', [ 'primary' => true, 'autocomplete' => true, 'title' => Loc::getMessage('PROPERTY_FEATURE_ENTITY_ID_FIELD') ]), 'PROPERTY_ID' => new ORM\Fields\IntegerField('PROPERTY_ID', [ 'title' => Loc::getMessage('PROPERTY_FEATURE_ENTITY_PROPERTY_ID_FIELD') ]), 'MODULE_ID' => new ORM\Fields\StringField('MODULE_ID', [ 'validation' => [__CLASS__, 'validateModuleId'], 'title' => Loc::getMessage('PROPERTY_FEATURE_ENTITY_MODULE_ID_FIELD') ]), 'FEATURE_ID' => new ORM\Fields\StringField('FEATURE_ID', [ 'validation' => [__CLASS__, 'validateFeatureId'], 'title' => Loc::getMessage('PROPERTY_FEATURE_ENTITY_FEATURE_ID_FIELD') ]), 'IS_ENABLED' => new ORM\Fields\BooleanField('IS_ENABLED', [ 'values' => ['N', 'Y'], 'default_value' => 'N', 'title' => Loc::getMessage('PROPERTY_FEATURE_ENTITY_IS_ENABLED_FIELD') ]), 'PROPERTY' => new ORM\Fields\Relations\Reference( 'PROPERTY', '\Bitrix\Iblock\Property', ['=this.PROPERTY_ID' => 'ref.ID'] ) ]; } /** * Returns validators for MODULE_ID field. * * @return array */ public static function validateModuleId() { return [ new ORM\Fields\Validators\LengthValidator(null, 50), ]; } /** * Returns validators for FEATURE_ID field. * * @return array */ public static function validateFeatureId() { return [ new ORM\Fields\Validators\LengthValidator(null, 100), ]; } /** * Delete all features for property. * * @param int $property Property Id. * @return void */ public static function deleteByProperty($property) { $property = (int)$property; if ($property <= 0) return; $conn = Main\Application::getConnection(); $helper = $conn->getSqlHelper(); $conn->queryExecute( 'delete from '.$helper->quote(self::getTableName()).' where '.$helper->quote('PROPERTY_ID').' = '.$property ); unset($helper, $conn); } }
/var/www/axolotl/data/www/kirov.axolotls.ru/bitrix/modules/iblock/lib/propertyfeature.php