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/cvetdv.ru/bitrix/modules/sale/lib/internals/ |
Upload File : |
<?php /** * Bitrix Framework * @package bitrix * @subpackage sale * @copyright 2001-2014 Bitrix */ namespace Bitrix\Sale\Internals; use Bitrix\Main; /** * Class StatusGroupTaskTable * * DO NOT WRITE ANYTHING BELOW THIS * * <<< ORMENTITYANNOTATION * @method static EO_StatusGroupTask_Query query() * @method static EO_StatusGroupTask_Result getByPrimary($primary, array $parameters = []) * @method static EO_StatusGroupTask_Result getById($id) * @method static EO_StatusGroupTask_Result getList(array $parameters = []) * @method static EO_StatusGroupTask_Entity getEntity() * @method static \Bitrix\Sale\Internals\EO_StatusGroupTask createObject($setDefaultValues = true) * @method static \Bitrix\Sale\Internals\EO_StatusGroupTask_Collection createCollection() * @method static \Bitrix\Sale\Internals\EO_StatusGroupTask wakeUpObject($row) * @method static \Bitrix\Sale\Internals\EO_StatusGroupTask_Collection wakeUpCollection($rows) */ class StatusGroupTaskTable extends Main\Entity\DataManager { public static function getFilePath() { return __FILE__; } public static function getTableName() { return 'b_sale_status_group_task'; } public static function getMap() { return array( new Main\Entity\StringField('STATUS_ID', array( 'primary' => true, 'format' => '/^[A-Za-z?0-9]{1,2}$/', )), new Main\Entity\IntegerField('GROUP_ID', array( 'primary' => true, 'format' => '/^[0-9]{1,18}$/', )), new Main\Entity\IntegerField('TASK_ID', array( 'primary' => true, 'format' => '/^[0-9]{1,18}$/', )), new Main\Entity\ReferenceField('STATUS', 'Bitrix\Sale\Internals\StatusTable', array('=this.STATUS_ID' => 'ref.ID'), array('join_type' => 'LEFT') ), new Main\Entity\ReferenceField('GROUP', 'Bitrix\Main\GroupTable', array('=this.GROUP_ID' => 'ref.ID'), array('join_type' => 'INNER') ), new Main\Entity\ReferenceField('TASK', 'Bitrix\Main\TaskTable', array('=this.TASK_ID' => 'ref.ID'), array('join_type' => 'INNER') ), ); } public static function deleteByStatus($statusId) { $result = self::getList(array( 'select' => array('STATUS_ID', 'GROUP_ID', 'TASK_ID'), 'filter' => array('=STATUS_ID' => $statusId) )); while ($primary = $result->fetch()) self::delete($primary); } }