/** * @param string $text текст на кнопке * @param string|bool $url ссылка для перехода по нажатию на кнопку * @param string|IconBuilder|bool $icon класс иконки для кнопки, используй константу класса Icon, либо объект Icon * @see http://bootstrap-ru.com/base_css.php#icons */ function __construct($text, $url = false, $icon = false) { parent::__construct(); $this->setText($text); $this->setUrl($url); $this->_icon = $icon; }
/** * @param string $text текст сообщения, можно html * @param string $type тип, используй константы этого класса TYPE_ * @param bool $block флаг делающий сообщение большим блоком */ function __construct($text, $type = self::TYPE_DEFAULT, $block = false) { parent::__construct(); $this->_text = $text; $this->_type = $type; $this->_block = $block; $this->_requiredJs(BootstrapPHP::JS_ALERT); }
/** * @param string|bool $header текст заголовка, можно html * @param string|bool $body текст в теле окна, можно html */ function __construct($header = false, $body = false) { parent::__construct(); $this->_requiredJs(BootstrapPHP::JS_MODAL); if ($header) { $this->setHeader($header); } if ($body) { $this->setBody($body); } }
function __construct() { parent::__construct(); $this->_requiredJs(BootstrapPHP::JS_DROPDOWN); }
/** * @param string $direction направление расположения кнопопк в группе, используй константы этого класса DIRECTION_ */ function __construct($direction = self::DIRECTION_DEFAULT) { parent::__construct(); $this->setDirection($direction); }
/** * @param string $type тип, используй константы этого класса TYPE_ * @param bool $white true делает иконку белой */ function __construct($type, $white = false) { parent::__construct(); $this->_type = $type; $this->_white = $white; }
function __construct() { parent::__construct(); }
/** * @param string $text текст на метке, можно html * @param string $type тип, используй контстанты этого класса TYPE_ */ function __construct($text, $type = self::TYPE_DEFAULT) { parent::__construct(); $this->_text = $text; $this->_type = $type; }