File manager - Edit - /home/web/vm-3fadc827.na4u.ru/www/bitrix/modules/sale/lib/internals/companygroup.php
Back
<?php namespace Bitrix\Sale\Internals; use Bitrix\Main; /** * Class CompanyGroupTable * * DO NOT WRITE ANYTHING BELOW THIS * * <<< ORMENTITYANNOTATION * @method static EO_CompanyGroup_Query query() * @method static EO_CompanyGroup_Result getByPrimary($primary, array $parameters = array()) * @method static EO_CompanyGroup_Result getById($id) * @method static EO_CompanyGroup_Result getList(array $parameters = array()) * @method static EO_CompanyGroup_Entity getEntity() * @method static \Bitrix\Sale\Internals\EO_CompanyGroup createObject($setDefaultValues = true) * @method static \Bitrix\Sale\Internals\EO_CompanyGroup_Collection createCollection() * @method static \Bitrix\Sale\Internals\EO_CompanyGroup wakeUpObject($row) * @method static \Bitrix\Sale\Internals\EO_CompanyGroup_Collection wakeUpCollection($rows) */ class CompanyGroupTable extends Main\Entity\DataManager { public static function getTableName() { return 'b_sale_company_group'; } public static function getMap() { return array( 'ID' => array( 'data_type' => 'integer', 'primary' => true ), 'COMPANY_ID' => array( 'data_type' => 'integer', ), 'GROUP_ID' => array( 'data_type' => 'integer', 'required' => true ), ); } public static function deleteByCompanyId($id) { $id = intval($id); if ($id <= 0) throw new Main\ArgumentNullException("id"); $itemsList = static::getList( array( "filter" => array("COMPANY_ID" => $id), "select" => array("ID") ) ); while ($item = $itemsList->fetch()) static::delete($item["ID"]); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.27 |
proxy
|
phpinfo
|
Settings