PHP Класс BootstrapUI\View\Helper\HtmlHelper

Наследование: extends Cake\View\Helper\HtmlHelper, use trait OptionsAwareTrait
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
badge ( string $text, array $options = [] ) : string Returns Bootstrap badge markup. By default, uses .
getCrumbList ( array $options = [], string | array | boolean $startText = false ) : string | null Returns breadcrumbs as a (x)html list
icon ( string $name, array $options = [] ) : string Returns Bootstrap icon markup. By default, uses and glypicon.
label ( string $text, array $options = [] ) : string Returns Bootstrap label markup. By default, uses .

Описание методов

badge() публичный Метод

Returns Bootstrap badge markup. By default, uses .
public badge ( string $text, array $options = [] ) : string
$text string Text to show in badge.
$options array Additional HTML attributes.
Результат string HTML badge markup.

getCrumbList() публичный Метод

This method uses HtmlHelper::tag() to generate list and its elements. Works similar to HtmlHelper::getCrumbs(), so it uses options which every crumb was added with. ### Options - separator Separator content to insert in between breadcrumbs, defaults to '' - firstClass Class for wrapper tag on the first breadcrumb, defaults to 'first' - lastClass Class for wrapper tag on current active page, defaults to 'last'
public getCrumbList ( array $options = [], string | array | boolean $startText = false ) : string | null
$options array Array of HTML attributes to apply to the generated list elements.
$startText string | array | boolean This will be the first crumb, if false it defaults to first crumb in array. Can also be an array, see `HtmlHelper::getCrumbs` for details.
Результат string | null Breadcrumbs HTML list.

icon() публичный Метод

Returns Bootstrap icon markup. By default, uses and glypicon.
public icon ( string $name, array $options = [] ) : string
$name string Name of icon (i.e. search, leaf, etc.).
$options array Additional HTML attributes.
Результат string HTML icon markup.

label() публичный Метод

Returns Bootstrap label markup. By default, uses .
public label ( string $text, array $options = [] ) : string
$text string Text to show in label.
$options array Additional HTML attributes.
Результат string HTML icon markup.