Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/ui/lib/toolbar/facade/ |
Upload File : |
<?php namespace Bitrix\UI\Toolbar\Facade; use Bitrix\UI\Toolbar\ButtonLocation; use Bitrix\UI\Toolbar\Manager; /** * Class Toolbar * @package Bitrix\UI\Toolbar\Facade * @method static getId(); * @see \Bitrix\UI\Toolbar\Toolbar::getId * @method static addButton($button, $location = ButtonLocation::RIGHT); * @see \Bitrix\UI\Toolbar\Toolbar::addButton * @method static deleteButtons(\Closure $closure) * @see \Bitrix\UI\Toolbar\Toolbar::deleteButtons * @method static shuffleButtons(\Closure $closure, $buttonLocation) * @see \Bitrix\UI\Toolbar\Toolbar::shuffleButtons * @method static isEnabled(); * @see \Bitrix\UI\Toolbar\Toolbar::isEnabled * @method static enable(); * @see \Bitrix\UI\Toolbar\Toolbar::enable * @method static disable(); * @see \Bitrix\UI\Toolbar\Toolbar::disable * @method static setTitle(string $title); * @see \Bitrix\UI\Toolbar\Toolbar::setTitle * @method static getTitle($propertyName = false, $stripTags = false); * @see \Bitrix\UI\Toolbar\Toolbar::getTitle() * @method static hideTitle(); * @see \Bitrix\UI\Toolbar\Toolbar::hideTitle * @method static hasTitle(); * @see \Bitrix\UI\Toolbar\Toolbar::hasTitle * @method static addEditableTitle(null|string $defaultTitle = null); * @see \Bitrix\UI\Toolbar\Toolbar::addEditableTitle() * // * @method static getEditableTitleSelector(); * // * @see \Bitrix\UI\Toolbar\Toolbar::getEditableTitleSelector * @method static getDefaultEditableTitle(); * @see \Bitrix\UI\Toolbar\Toolbar::getDefaultEditableTitle * @method static hasEditableTitle(); * @see \Bitrix\UI\Toolbar\Toolbar::hasEditableTitle() * @method static hasFavoriteStar(); * @see \Bitrix\UI\Toolbar\Toolbar::hasFavoriteStar * @method static addFavoriteStar(); * @see \Bitrix\UI\Toolbar\Toolbar::addFavoriteStar * @method static deleteFavoriteStar(); * @see \Bitrix\UI\Toolbar\Toolbar::deleteFavoriteStar * @method static addFilter($options = []); * @see \Bitrix\UI\Toolbar\Toolbar::addFilter * @method static setFilter(string $filter); * @see \Bitrix\UI\Toolbar\Toolbar::setFilter * @method static getFilter(); * @see \Bitrix\UI\Toolbar\Toolbar::getFilter * @method static addBeforeTitleBoxHtml(string $html); * @see \Bitrix\UI\Toolbar\Toolbar::addBeforeTitleHtml * @method static getBeforeTitleBoxHtml(); * @see \Bitrix\UI\Toolbar\Toolbar::getBeforeTitleHtml * @method static addBeforeTitleHtml(string $html); * @see \Bitrix\UI\Toolbar\Toolbar::addBeforeTitleHtml * @method static getBeforeTitleHtml(); * @see \Bitrix\UI\Toolbar\Toolbar::getBeforeTitleHtml * @method static addAfterTitleHtml(string $html) * @see \Bitrix\UI\Toolbar\Toolbar::addAfterTitleHtml * @method static getAfterTitleHtml(); * @see \Bitrix\UI\Toolbar\Toolbar::getAfterTitleHtml * * @method static addUnderTitleHtml(string $html) * @see \Bitrix\UI\Toolbar\Toolbar::addUnderTitleHtml * * @method static void setCopyLinkButton(array $params = []) Set params for copy link button. <br> <code>link</code> string, not required,<br> <code>successfulCopyMessage</code> string, not required.<br> <code>title</code> string, not required. * @see \Bitrix\UI\Toolbar\Toolbar::setCopyLinkButton * * @method static void getCopyLinkButtonParams() * @see \Bitrix\UI\Toolbar\Toolbar::getCopyLinkButtonParams * * @method static getUnderTitleHtml(); * @see \Bitrix\UI\Toolbar\Toolbar::getUnderTitleHtml * @method static addRightCustomHtml(string $html, array $options = []); * @see \Bitrix\UI\Toolbar\Toolbar::addRightCustomHtml * @method static getRightCustomHtml(); * @see \Bitrix\UI\Toolbar\Toolbar::getRightCustomHtml * @method static getRightCustomHtmlOptions(); * @see \Bitrix\UI\Toolbar\Toolbar::getRightCustomHtmlOptions * @method static getButtons() * @see \Bitrix\UI\Toolbar\Toolbar::getButtons * @method static renderAfterTitleButtons(); * @see \Bitrix\UI\Toolbar\Toolbar::renderAfterTitleButtons * @method static renderRightButtons(); * @see \Bitrix\UI\Toolbar\Toolbar::renderRightButtons * @method static renderAfterFilterButtons(); * @see \Bitrix\UI\Toolbar\Toolbar::renderAfterFilterButtons * @method static renderFilterRightButtons(); * @see \Bitrix\UI\Toolbar\Toolbar::renderFilterRightButtons * @method static setTitleMinWidth($width); * @see \Bitrix\UI\Toolbar\Toolbar::setTitleMinWidth * @method static getTitleMinWidth(); * @see \Bitrix\UI\Toolbar\Toolbar::getTitleMinWidth * @method static setTitleMaxWidth($width); * @see \Bitrix\UI\Toolbar\Toolbar::setTitleMaxWidth * @method static getTitleMaxWidth(); * @see \Bitrix\UI\Toolbar\Toolbar::getTitleMaxWidth * @method static setTitleNoShrink(); * @see \Bitrix\UI\Toolbar\Toolbar::setTitleNoShrink() * @method static isTitleNoShrink(); * @see \Bitrix\UI\Toolbar\Toolbar::isTitleNoShrink() * @method static enableMultiLineTitle(); * @see \Bitrix\UI\Toolbar\Toolbar::enableMultiLineTitle * @method static disableMultiLineTitle(); * @see \Bitrix\UI\Toolbar\Toolbar::disableMultiLineTitle * @method static isMultiLineTitleEnabled(); * @see \Bitrix\UI\Toolbar\Toolbar::isMultiLineTitleEnabled */ final class Toolbar { const DEFAULT_ID = 'default-toolbar'; public static function __callStatic($name, $arguments) { $manager = Manager::getInstance(); $toolbar = $manager->getToolbarById(self::DEFAULT_ID)?: $manager->createToolbar(self::DEFAULT_ID, []); if (!$toolbar) { //or exception? return null; } return call_user_func_array([$toolbar, $name], $arguments); } }