Property | Type | Description | |
---|---|---|---|
$helpers | |||
$horizontal | |||
$inline |
Property | Type | Description | |
---|---|---|---|
$_defaultConfig | array | Default config for the helper. | |
$_defaultWidgets | array | Default widgets |
Method | Description | |
---|---|---|
append ( $input, $append ) | ||
button ( $title, array $options = [] ) | Create & return a Twitter Like button. | |
buttonGroup ( $buttons, array $options = [] ) | Create & return a Twitter Like button group. | |
buttonToolbar ( array $buttonGroups, array $options = [] ) | Create & return a Twitter Like button toolbar. | |
create ( $model = null, array $options = [] ) : The | Create a Twitter Bootstrap like form. | |
date ( string $fieldName, array $options = [] ) : string | Generate date inputs. | |
dateTime ( string $fieldName, array $options = [] ) : string | Returns a set of SELECT elements for a full datetime setup: day, month and year, and then time. | |
dropdownButton ( $title, array $menu = [], array $options = [] ) | Create & return a twitter bootstrap dropdown button. This function is a shortcut for: | |
file ( string $fieldName, array $options = [] ) : string | Creates file input widget. | |
formatTemplate ( $name, $data ) | ||
input ( $fieldName, array $options = [] ) | Create & return an input block (Twitter Boostrap Like). | |
prepend ( $input, $prepend ) | ||
searchForm ( $model = null, $options = [], $inpOpts = [], $btnOpts = [] ) | Create a basic bootstrap search form. | |
submit ( $caption = null, array $options = [] ) | Create & return a Twitter Like submit input. | |
time ( string $fieldName, array $options = [] ) : string | Generate time inputs. | |
widget ( $name, array $data = [] ) | ||
wrap ( $input, $prepend, $append ) |
Method | Description | |
---|---|---|
_createButtonOptions ( array $options = [] ) | Create & return a Cakephp options array from the $options specified. | |
_getColClass ( $what, $offset = false ) | Return the col size class for the specified column (label, input or error). | |
_getDatetimeTemplate ( $fields, $options ) | ||
_getDefaultTemplateVars ( &$options ) | ||
_inputContainerTemplate ( $options ) | ||
_matchButton ( $html ) : true | Try to match the specified HTML code with a button or a input with submit type. | |
_wrap ( $input, $prepend, $append ) | ||
_wrapInputGroup ( $addonOrButtons ) | ||
_wrapTemplates ( $templates, $callback, $params ) : The | Replace the templates with the ones specified by newTemplates, call the specified function with the specified parameters, and then restore the old templates. |
protected _createButtonOptions ( array $options = [] ) | ||
$options | array |
protected _getColClass ( $what, $offset = false ) |
protected _matchButton ( $html ) : true | ||
$html | The HTML code to check | |
return | true | if the HTML code contains a button |
protected _wrapTemplates ( $templates, $callback, $params ) : The | ||
return | The | return value of $callback |
public buttonGroup ( $buttons, array $options = [] ) | ||
$buttons | The buttons in the group | |
$options | array | Options for div method Extra options: - vertical true/false |
public buttonToolbar ( array $buttonGroups, array $options = [] ) | ||
$buttonGroups | array | |
$options | array | Options for div method |
public dropdownButton ( $title, array $menu = [], array $options = [] ) | ||
$title | The text in the button | |
$menu | array | HTML tags corresponding to menu options (which will be wrapped
into |
$options | array | Options for button |
public searchForm ( $model = null, $options = [], $inpOpts = [], $btnOpts = [] ) | ||
$model | The model of the form | |
$options | The options that will be pass to the BootstrapForm::create method | |
$inpOpts | The options that will be pass to the BootstrapForm::input method | |
$btnOpts | The options that will be pass to the BootstrapForm::button method Extra options: - id ID of the input (and fieldname) - label The input label (default false) - placeholder The input placeholder (default "Search... ") - button The search button text (default: "Search") - _input Options for the input (overrided by $inpOpts) - _button Options for the button (overrided by $btnOpts) |
protected array $_defaultConfig | ||
return | array |