1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
getaction.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Catalog\Controller;
4
5
use Bitrix\Main\Error;
6
7
trait
GetAction
8
{
9
abstract
protected
function
get
($id);
10
11
abstract
protected
function
addErrorEntityNotExists
(): void;
12
13
abstract
protected
function
getServiceItemName
(): string;
14
19
public
function
getAction
($id): ?
array
20
{
21
$row = $this->
get
($id);
22
if
(!is_array($row))
23
{
24
$this->
addErrorEntityNotExists
();
25
26
return
null
;
27
}
28
29
return
[
30
$this->
getServiceItemName
() => $row,
31
];
32
}
33
}
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
Bitrix\Catalog\Controller\getServiceItemName
getServiceItemName()
Bitrix\Catalog\Controller\GetAction
trait GetAction
Определения
getaction.php:8
Bitrix\Catalog\Controller\getAction
getAction($id)
Определения
getaction.php:19
Bitrix\Catalog\Controller\addErrorEntityNotExists
addErrorEntityNotExists()
bitrix
modules
catalog
lib
controller
getaction.php
Создано системой
1.14.0