Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
companygroup.php
1
<?php
2
3
namespace
Bitrix\Sale\Internals
;
4
5
use
Bitrix\Main
;
6
7
24
class
CompanyGroupTable
extends
Main\Entity\DataManager
25
{
26
public
static
function
getTableName
()
27
{
28
return
'b_sale_company_group'
;
29
}
30
31
public
static
function
getMap
()
32
{
33
return
array(
34
'ID'
=> array(
35
'data_type'
=>
'integer'
,
36
'primary'
=>
true
37
),
38
'COMPANY_ID'
=> array(
39
'data_type'
=>
'integer'
,
40
),
41
'GROUP_ID'
=> array(
42
'data_type'
=>
'integer'
,
43
'required'
=>
true
44
),
45
);
46
}
47
48
public
static
function
deleteByCompanyId
($id)
49
{
50
$id = intval($id);
51
if
($id <= 0)
52
throw
new
Main\ArgumentNullException
(
"id"
);
53
54
$itemsList = static::getList(
55
array(
56
"filter"
=> array(
"COMPANY_ID"
=> $id),
57
"select"
=> array(
"ID"
)
58
)
59
);
60
while
($item = $itemsList->fetch())
61
static::delete($item[
"ID"
]);
62
}
63
}
Bitrix\Main\ArgumentNullException
Definition
exception.php:54
Bitrix\Sale\Internals\CompanyGroupTable
Definition
companygroup.php:25
Bitrix\Sale\Internals\CompanyGroupTable\getMap
static getMap()
Definition
companygroup.php:31
Bitrix\Sale\Internals\CompanyGroupTable\deleteByCompanyId
static deleteByCompanyId($id)
Definition
companygroup.php:48
Bitrix\Sale\Internals\CompanyGroupTable\getTableName
static getTableName()
Definition
companygroup.php:26
Bitrix\Main
Bitrix\Sale\Internals
Definition
accountnumber.php:3
modules
sale
lib
internals
companygroup.php
Создано системой
1.10.0