PHP Класс Bootstrap\View\Helper\BootstrapNavbarHelper

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

Открытые свойства

Свойство Тип Описание
$autoActiveLink boolean Automatic detection of active link (class="active").
$autoButtonLink boolean Automatic button link when not in a menu.
$helpers

Защищенные свойства (Protected)

Свойство Тип Описание
$_fixed
$_fluid
$_inverse
$_level integer Menu level (0 = out of menu, 1 = main horizontal menu, 2 = dropdown menu).
$_responsive
$_static

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

Метод Описание
addClass ( array $options = [], string | array $class = null, string $key = 'class' ) : array Adds the given class to the element options
beginMenu ( $name = null, $url = null, $options = [], $linkOptions = [], $listOptions = [] ) Start a new menu, 2 levels: If not in submenu, create a dropdown menu, oterwize create hover menu.
button ( $name, array $options = [] ) Add a button to the navbar.
create ( $brand, $options = [] ) Create a new navbar.
divider ( array $options = [] ) Add a divider to the navbar or to a menu.
end ( ) End a navbar.
endMenu ( ) End a menu.
header ( $name, array $options = [] ) Add a header to the navbar or to a menu, should not be used outside a submenu.
link ( $name, $url = '', array $options = [], array $linkOptions = [] ) Add a link to the navbar or to a menu.
searchForm ( $model = null, $options = [] ) Add a serach form to the navbar.
text ( $text, $options = [] ) Add a text to the navbar.

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

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

Adds the given class to the element options
public addClass ( array $options = [], string | array $class = null, string $key = 'class' ) : array
$options array Array options/attributes to add a class to
$class string | array The class name being added.
$key string the key to use for class.
Результат array Array of options with $key set.

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

Start a new menu, 2 levels: If not in submenu, create a dropdown menu, oterwize create hover menu.
public beginMenu ( $name = null, $url = null, $options = [], $linkOptions = [], $listOptions = [] )

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

Add a button to the navbar.
public button ( $name, array $options = [] )
$options array

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

Create a new navbar.
public create ( $brand, $options = [] )
$brand

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

Add a divider to the navbar or to a menu.
public divider ( array $options = [] )
$options array

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

End a navbar.
public end ( )

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

End a menu.
public endMenu ( )

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

Add a header to the navbar or to a menu, should not be used outside a submenu.
public header ( $name, array $options = [] )
$options array

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

Add a serach form to the navbar.
public searchForm ( $model = null, $options = [] )

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

Add a text to the navbar.
public text ( $text, $options = [] )

Описание свойств

$_fixed защищенное свойство

protected $_fixed

$_fluid защищенное свойство

protected $_fluid

$_inverse защищенное свойство

protected $_inverse

$_level защищенное свойство

Menu level (0 = out of menu, 1 = main horizontal menu, 2 = dropdown menu).
protected int $_level
Результат integer

$_responsive защищенное свойство

protected $_responsive

$_static защищенное свойство

protected $_static

$helpers публичное свойство

public $helpers