Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
baseaction.php
1
<?php
2
3
namespace
Bitrix\Main\Grid\Row\Action
;
4
10
abstract
class
BaseAction
implements
Action
11
{
17
protected
?
bool
$default
;
23
protected
?
string
$className
;
29
protected
?
string
$title
;
37
protected
?
string
$href
;
45
protected
?
string
$onclick
;
46
52
abstract
protected
function
getText
(): string;
53
57
public
function
getControl
(array $rawFields): ?array
58
{
59
$result = [
60
'TEXT'
=> $this->
getText
(),
61
];
62
63
$propertyMap = [
64
'default'
=>
'DEFAULT'
,
65
'className'
=>
'ICONCLASS'
,
66
'title'
=>
'TITLE'
,
67
'href'
=>
'HREF'
,
68
'onclick'
=>
'ONCLICK'
,
69
];
70
foreach
($propertyMap as $propertyName => $actionName)
71
{
72
$propertyValue = $this->{$propertyName} ??
null
;
73
if
(isset($propertyValue))
74
{
75
$result[$actionName] = $propertyValue;
76
}
77
}
78
79
return
$result;
80
}
81
}
Bitrix\Main\Grid\Row\Action\BaseAction
Definition
baseaction.php:11
Bitrix\Main\Grid\Row\Action\BaseAction\$className
string $className
Definition
baseaction.php:23
Bitrix\Main\Grid\Row\Action\BaseAction\getControl
getControl(array $rawFields)
Definition
baseaction.php:57
Bitrix\Main\Grid\Row\Action\BaseAction\$title
string $title
Definition
baseaction.php:29
Bitrix\Main\Grid\Row\Action\BaseAction\$default
bool $default
Definition
baseaction.php:17
Bitrix\Main\Grid\Row\Action\BaseAction\$onclick
string $onclick
Definition
baseaction.php:45
Bitrix\Main\Grid\Row\Action\BaseAction\getText
getText()
Bitrix\Main\Grid\Row\Action\BaseAction\$href
string $href
Definition
baseaction.php:37
Bitrix\Main\Grid\Row\Action\Action
Definition
action.php:12
Bitrix\Main\Grid\Row\Action
Definition
action.php:3
modules
main
lib
grid
row
action
baseaction.php
Создано системой
1.10.0