1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
companyresponsiblegroup.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Sale\Internals;
4
5
use Bitrix\Main;
6
7
24
class
CompanyResponsibleGroupTable
extends
Main\Entity\DataManager
25
{
26
public
static
function
getTableName
()
27
{
28
return
'b_sale_company_resp_grp'
;
29
}
30
31
public
static
function
getMap
()
32
{
33
return
[
34
'ID'
=> [
35
'data_type'
=>
'integer'
,
36
'primary'
=>
true
,
37
'autocomplete'
=>
true
,
38
],
39
'COMPANY_ID'
=> [
40
'data_type'
=>
'integer'
,
41
],
42
'GROUP_ID'
=> [
43
'data_type'
=>
'integer'
,
44
'required'
=> true
45
],
46
];
47
}
48
49
public
static
function
deleteByCompanyId
($id)
50
{
51
$id = intval($id);
52
if
($id <= 0)
53
{
54
throw
new
Main\ArgumentNullException
(
'id'
);
55
}
56
57
$itemsList = static::getList(
58
array
(
59
'filter'
=>
array
(
'COMPANY_ID'
=> $id),
60
'select'
=>
array
(
'ID'
)
61
)
62
);
63
while
($item = $itemsList->fetch())
64
{
65
static::delete($item[
'ID'
]);
66
}
67
}
68
69
70
public
static
function
getCompanyGroups
($id)
71
{
72
$list = [];
73
$res
= static::getList([
74
'filter'
=> [
75
'=COMPANY_ID'
=> $id
76
],
77
'select'
=> [
'GROUP_ID'
],
78
]);
79
while
(
$data
=
$res
->fetch())
80
{
81
$list[] =
$data
[
'GROUP_ID'
];
82
}
83
84
return
$list;
85
}
86
}
Bitrix\Main\ArgumentNullException
Определения
ArgumentNullException.php:9
Bitrix\Sale\Internals\CompanyResponsibleGroupTable
Определения
companyresponsiblegroup.php:25
Bitrix\Sale\Internals\CompanyResponsibleGroupTable\getMap
static getMap()
Определения
companyresponsiblegroup.php:31
Bitrix\Sale\Internals\CompanyResponsibleGroupTable\getCompanyGroups
static getCompanyGroups($id)
Определения
companyresponsiblegroup.php:70
Bitrix\Sale\Internals\CompanyResponsibleGroupTable\deleteByCompanyId
static deleteByCompanyId($id)
Определения
companyresponsiblegroup.php:49
Bitrix\Sale\Internals\CompanyResponsibleGroupTable\getTableName
static getTableName()
Определения
companyresponsiblegroup.php:26
$data
$data['IS_AVAILABLE']
Определения
.description.php:13
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$res
$res
Определения
filter_act.php:7
bitrix
modules
sale
lib
internals
companyresponsiblegroup.php
Создано системой
1.14.0