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

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

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

Свойство Тип Описание
$helpers

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

Свойство Тип Описание
$_current
$_currentId

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

Метод Описание
body ( array | string $info = null, array $options = [] ) Create / Start the body. If $info is not null, it is used as the body content, otherwize start the body div.
create ( array | string $title = null, array $options = [] ) Create a Twitter Bootstrap like modal.
end ( array | null $buttons = NULL, array $options = [] ) End a modal. If $buttons is not null, the ModalHelper::footer functions is called with $buttons and $options arguments.
footer ( array | string $buttons = null, array $options = [] ) Create / Start the footer. If $buttons is specified as an associative arrays or as null, start the footer, otherwize create the footer with the specified buttons.
header ( array | string $info = null, array $options = [] ) Create / Start the header. If $info is specified as a string, create and return the whole header, otherwize only open the header.

Защищенные методы

Метод Описание
_cleanCurrent ( )
_createBody ( $text = null, $options = [] )
_createFooter ( $buttons = null, $options = [] )
_createHeader ( $title = null, $options = [] )
_part ( $part, $content = null, $options = [] )

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

_cleanCurrent() защищенный Метод

protected _cleanCurrent ( )

_createBody() защищенный Метод

protected _createBody ( $text = null, $options = [] )

_createFooter() защищенный Метод

protected _createFooter ( $buttons = null, $options = [] )

_createHeader() защищенный Метод

protected _createHeader ( $title = null, $options = [] )

_part() защищенный Метод

protected _part ( $part, $content = null, $options = [] )

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

Create / Start the body. If $info is not null, it is used as the body content, otherwize start the body div.
public body ( array | string $info = null, array $options = [] )
$info array | string If string, use as the body content, otherwize works as $options.
$options array Options for the footer div.

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

Create a Twitter Bootstrap like modal.
public create ( array | string $title = null, array $options = [] )
$title array | string If array, works as $options, otherwize used as the modal title.
$options array Options for the main div of the modal. Extra options (useless if $title not specified) : - close: Add close buttons to header (default true) - no-body: Do not open the body after the create (default false) - size: Modal size (small, large or custom classes)

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

End a modal. If $buttons is not null, the ModalHelper::footer functions is called with $buttons and $options arguments.
public end ( array | null $buttons = NULL, array $options = [] )
$buttons array | null
$options array

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

Create / Start the header. If $info is specified as a string, create and return the whole header, otherwize only open the header.
public header ( array | string $info = null, array $options = [] )
$info array | string If string, use as the modal title, otherwize works as $options.
$options array Options for the header div. Special option (if $info is string): - close: Add the 'close' button in the header (default true).

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

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

protected $_current

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

protected $_currentId

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

public $helpers