Property | Type | Description | |
---|---|---|---|
$helpers |
Property | Type | Description | |
---|---|---|---|
$_current | |||
$_currentId |
Method | Description | |
---|---|---|
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. |
Method | Description | |
---|---|---|
_cleanCurrent ( ) | ||
_createBody ( $text = null, $options = [] ) | ||
_createFooter ( $buttons = null, $options = [] ) | ||
_createHeader ( $title = null, $options = [] ) | ||
_part ( $part, $content = null, $options = [] ) |
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) |