Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
toolbar.php
1<?php
2
4
7
64final 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}
static __callStatic($name, $arguments)
Definition toolbar.php:68