Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
toolbar.php
1
<?php
2
3
namespace
Bitrix\UI\Toolbar\Facade
;
4
5
use
Bitrix\UI\Toolbar\ButtonLocation
;
6
use
Bitrix\UI\Toolbar\Manager
;
7
64
final
class
Toolbar
65
{
66
const
DEFAULT_ID
=
'default-toolbar'
;
67
68
public
static
function
__callStatic
($name, $arguments)
69
{
70
$manager =
Manager::getInstance
();
71
$toolbar = $manager->getToolbarById(self::DEFAULT_ID)?: $manager->createToolbar(self::DEFAULT_ID, []);
72
if
(!$toolbar)
73
{
74
//or exception?
75
return
null
;
76
}
77
78
return
call_user_func_array([$toolbar, $name], $arguments);
79
}
80
}
Bitrix\UI\Toolbar\ButtonLocation
Definition
buttonlocation.php:6
Bitrix\UI\Toolbar\Facade\Toolbar
Definition
toolbar.php:65
Bitrix\UI\Toolbar\Facade\Toolbar\DEFAULT_ID
const DEFAULT_ID
Definition
toolbar.php:66
Bitrix\UI\Toolbar\Facade\Toolbar\__callStatic
static __callStatic($name, $arguments)
Definition
toolbar.php:68
Bitrix\UI\Toolbar\Manager
Definition
manager.php:8
Bitrix\UI\Toolbar\Manager\getInstance
static getInstance()
Definition
manager.php:24
Bitrix\UI\Toolbar\Facade
Definition
toolbar.php:3
modules
ui
lib
toolbar
facade
toolbar.php
Создано системой
1.10.0