1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
persontypesite.php
См. документацию.
1
<?php
2
namespace
Bitrix\Sale\Internals;
3
4
use Bitrix\Main,
5
Bitrix\Main\Localization\Loc;
6
Loc::loadMessages(__FILE__);
7
32
33
class
PersonTypeSiteTable
extends
Main\Entity\DataManager
34
{
40
public
static
function
getTableName
()
41
{
42
return
'b_sale_person_type_site'
;
43
}
44
50
public
static
function
getMap
()
51
{
52
return
[
53
'PERSON_TYPE_ID'
=> [
54
'data_type'
=>
'integer'
,
55
'primary'
=>
true
,
56
],
57
'SITE_ID'
=> [
58
'data_type'
=>
'string'
,
59
'primary'
=> true
60
],
61
];
62
}
63
64
public
static
function
deleteByPersonTypeId
($personTypeId)
65
{
66
$result
=
new
Main\ORM\Data\DeleteResult
();
67
68
$dbRes
= static::getList([
69
'select'
=> [
'PERSON_TYPE_ID'
,
'SITE_ID'
],
70
'filter'
=> [
71
'=PERSON_TYPE_ID'
=> $personTypeId
72
]
73
]);
74
75
while
($item =
$dbRes
->fetch())
76
{
77
$r = static::delete([
78
'PERSON_TYPE_ID'
=> $personTypeId,
79
'SITE_ID'
=> $item[
'SITE_ID'
],
80
]);
81
82
if
(!$r->isSuccess())
83
{
84
$result
->addErrors($r->getErrors());
85
}
86
}
87
88
return
$result
;
89
}
90
}
Bitrix\Main\ORM\Data\DeleteResult
Определения
deleteresult.php:12
Bitrix\Sale\Internals\PersonTypeSiteTable
Определения
persontypesite.php:34
Bitrix\Sale\Internals\PersonTypeSiteTable\getMap
static getMap()
Определения
persontypesite.php:50
Bitrix\Sale\Internals\PersonTypeSiteTable\deleteByPersonTypeId
static deleteByPersonTypeId($personTypeId)
Определения
persontypesite.php:64
Bitrix\Sale\Internals\PersonTypeSiteTable\getTableName
static getTableName()
Определения
persontypesite.php:40
$result
$result
Определения
get_property_values.php:14
$dbRes
$dbRes
Определения
yandex_detail.php:168
bitrix
modules
sale
lib
internals
persontypesite.php
Создано системой
1.14.0