1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
status_lang.php
См. документацию.
1
<?php
8
namespace
Bitrix\Sale\Internals;
9
10
use Bitrix\Main,
11
Bitrix\Main\Localization\Loc;
12
13
Loc::loadMessages(__FILE__);
14
31
class
StatusLangTable
extends
Main\Entity\DataManager
32
{
33
public
static
function
getFilePath
()
34
{
35
return
__FILE__;
36
}
37
38
public
static
function
getTableName
()
39
{
40
return
'b_sale_status_lang'
;
41
}
42
43
public
static
function
getMap
()
44
{
45
return
array
(
46
47
new
Main
\
Entity
\
StringField
(
'STATUS_ID'
,
array
(
48
'primary'
=>
true
,
49
'format'
=>
'/^[A-Za-z]{1,2}$/'
,
50
'title'
=> Loc::getMessage(
'B_SALE_STATUS_LANG_STATUS_ID'
),
51
)),
52
53
new
Main
\
Entity
\
StringField
(
'LID'
,
array
(
54
'primary'
=>
true
,
55
'format'
=>
'/^[a-z]{2}$/'
,
56
'title'
=> Loc::getMessage(
'B_SALE_STATUS_LANG_LID'
),
57
)),
58
59
new
Main
\
Entity
\
StringField
(
'NAME'
,
array
(
60
'required'
=>
true
,
61
'title'
=> Loc::getMessage(
'B_SALE_STATUS_LANG_NAME'
),
62
)),
63
64
new
Main
\
Entity
\
StringField
(
'DESCRIPTION'
,
array
(
65
'title'
=> Loc::getMessage(
'B_SALE_STATUS_LANG_DESCRIPTION'
),
66
)),
67
68
new
Main
\
Entity
\ReferenceField(
'STATUS'
,
'Bitrix\Sale\Internals\StatusTable'
,
69
array
(
'=this.STATUS_ID'
=>
'ref.ID'
),
70
array
(
'join_type'
=>
'INNER'
)
71
),
72
73
// field for filter operation on entity
74
//'ID' => array(
75
// 'data_type' => 'string',
76
// 'expression' => array(
77
// '%s', 'STATUS_ID'
78
// )
79
//),
80
81
);
82
}
83
84
public
static
function
deleteByStatus
($statusId)
85
{
86
$result
= self::getList(
array
(
87
'select'
=>
array
(
'STATUS_ID'
,
'LID'
),
88
'filter'
=>
array
(
'=STATUS_ID'
=> $statusId)
89
));
90
91
while
($primary =
$result
->fetch())
92
{
93
self::delete($primary);
94
}
95
}
96
}
Bitrix\Main\ORM\Fields\StringField
Определения
stringfield.php:20
Bitrix\Sale\Internals\StatusLangTable
Определения
status_lang.php:32
Bitrix\Sale\Internals\StatusLangTable\getMap
static getMap()
Определения
status_lang.php:43
Bitrix\Sale\Internals\StatusLangTable\getFilePath
static getFilePath()
Определения
status_lang.php:33
Bitrix\Sale\Internals\StatusLangTable\deleteByStatus
static deleteByStatus($statusId)
Определения
status_lang.php:84
Bitrix\Sale\Internals\StatusLangTable\getTableName
static getTableName()
Определения
status_lang.php:38
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$result
$result
Определения
get_property_values.php:14
Bitrix\Main\Entity
Определения
ufield.php:9
Bitrix\Main
bitrix
modules
sale
lib
internals
status_lang.php
Создано системой
1.14.0