PHP Класс TbHtml

Наследование: extends CHtml
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$errorCss the CSS class for displaying error inputs
$errorSummaryCss the CSS class for displaying error summaries.
$iconVendor the icon vendor

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

Свойство Тип Описание
$defaultFormControlWidthClass todo: remove this.
$defaultFormLabelWidthClass todo: remove this.

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

Метод Описание
abbr ( string $text, string $word, array $htmlOptions = [] ) : string Generates an abbreviation with a help text.
activeCheckBox ( CModel $model, string $attribute, array $htmlOptions = [] ) : string Generates a check box for a model attribute.
activeCheckBoxControlGroup ( CModel $model, string $attribute, array $htmlOptions = [] ) : string Generates a control group with a check box for a model attribute.
activeCheckBoxList ( CModel $model, string $attribute, array $data, array $htmlOptions = [] ) : string Generates a check box list for a model attribute.
activeCheckBoxListControlGroup ( CModel $model, string $attribute, array $data = [], array $htmlOptions = [] ) : string Generates a control group with a check box list for a model attribute.
activeControlGroup ( string $type, CModel $model, string $attribute, array $htmlOptions = [], array $data = [] ) : string Generates an active form row.
activeDateField ( CModel $model, string $attribute, array $htmlOptions = [] ) : string Generates a date field input for a model attribute.
activeDateFieldControlGroup ( CModel $model, string $attribute, array $htmlOptions = [] ) : string Generates a control group with a date field for a model attribute.
activeDropDownList ( CModel $model, string $attribute, array $data, array $htmlOptions = [] ) : string Generates a drop down list for a model attribute.
activeDropDownListControlGroup ( CModel $model, string $attribute, array $data = [], array $htmlOptions = [] ) : string Generates a control group with a drop down list for a model attribute.
activeEmailField ( CModel $model, string $attribute, array $htmlOptions = [] ) : string Generates an email field input for a model attribute.
activeEmailFieldControlGroup ( CModel $model, string $attribute, array $htmlOptions = [] ) : string Generates a control group with a email field for a model attribute.
activeFileField ( CModel $model, string $attribute, array $htmlOptions = [] ) : string Generates a file field input for a model attribute.
activeFileFieldControlGroup ( CModel $model, string $attribute, array $htmlOptions = [] ) : string Generates a control group with a file field for a model attribute.
activeInlineCheckBoxList ( CModel $model, string $attribute, array $data, array $htmlOptions = [] ) : string Generates an inline check box list for a model attribute.
activeInlineCheckBoxListControlGroup ( CModel $model, string $attribute, array $data = [], array $htmlOptions = [] ) : string Generates a control group with an inline check box list for a model attribute.
activeInlineRadioButtonList ( CModel $model, string $attribute, array $data, array $htmlOptions = [] ) : string Generates an inline radio button list for a model attribute.
activeInlineRadioButtonListControlGroup ( CModel $model, string $attribute, array $data = [], array $htmlOptions = [] ) : string Generates a control group with an inline radio button list for a model attribute.
activeListBox ( CModel $model, string $attribute, array $data, array $htmlOptions = [] ) : string Generates a list box for a model attribute.
activeListBoxControlGroup ( CModel $model, string $attribute, array $data = [], array $htmlOptions = [] ) : string Generates a control group with a list box for a model attribute.
activeNumberField ( CModel $model, string $attribute, array $htmlOptions = [] ) : string Generates a number field input for a model attribute.
activeNumberFieldControlGroup ( CModel $model, string $attribute, array $htmlOptions = [] ) : string Generates a control group with a number field for a model attribute.
activePasswordField ( CModel $model, string $attribute, array $htmlOptions = [] ) : string Generates a password field input for a model attribute.
activePasswordFieldControlGroup ( CModel $model, string $attribute, array $htmlOptions = [] ) : string Generates a control group with a password field for a model attribute.
activeRadioButton ( CModel $model, string $attribute, array $htmlOptions = [] ) : string Generates a radio button for a model attribute.
activeRadioButtonControlGroup ( CModel $model, string $attribute, array $htmlOptions = [] ) : string Generates a control group with a radio button for a model attribute.
activeRadioButtonList ( CModel $model, string $attribute, array $data, array $htmlOptions = [] ) : string Generates a radio button list for a model attribute.
activeRadioButtonListControlGroup ( CModel $model, string $attribute, array $data = [], array $htmlOptions = [] ) : string Generates a control group with a radio button list for a model attribute.
activeRangeField ( CModel $model, string $attribute, array $htmlOptions = [] ) : string Generates a range field input for a model attribute.
activeRangeFieldControlGroup ( CModel $model, string $attribute, array $htmlOptions = [] ) : string Generates a control group with a range field for a model attribute.
activeSearchQueryControlGroup ( CModel $model, string $attribute, array $htmlOptions = [] ) : string Generates a control group with a search field for a model attribute.
activeSearchQueryField ( CModel $model, string $attribute, array $htmlOptions = [] ) : string Generates a search query input for a model attribute.
activeTextArea ( CModel $model, string $attribute, array $htmlOptions = [] ) : string Generates a text area input for a model attribute.
activeTextAreaControlGroup ( CModel $model, string $attribute, array $htmlOptions = [] ) : string Generates a control group with a text area for a model attribute.
activeTextField ( CModel $model, string $attribute, array $htmlOptions = [] ) : string Generates a text field input for a model attribute.
activeTextFieldControlGroup ( CModel $model, string $attribute, array $htmlOptions = [] ) : string Generates a control group with a text field for a model attribute.
activeUneditableField ( CModel $model, string $attribute, array $htmlOptions = [] ) : string Generates an uneditable input for a model attribute.
activeUneditableFieldControlGroup ( CModel $model, string $attribute, array $htmlOptions = [] ) : string Generates a control group with a uneditable field for a model attribute.
activeUrlField ( CModel $model, string $attribute, array $htmlOptions = [] ) : string Generates an url field input for a model attribute.
activeUrlFieldControlGroup ( CModel $model, string $attribute, array $htmlOptions = [] ) : string Generates a control group with a url field for a model attribute.
addCssClass ( mixed $className, array &$htmlOptions ) : array Appends new class names to the given options.
addCssStyle ( string $style, array &$htmlOptions ) : array Appends a CSS style string to the given options.
address ( $text, array $htmlOptions = [] ) : string Generates an address block.
ajaxButton ( string $label, mixed $url, array $ajaxOptions = [], array $htmlOptions = [] ) : string Generates a push button that can initiate AJAX requests.
ajaxLink ( string $text, mixed $url, array $ajaxOptions = [], array $htmlOptions = [] ) : string Generates a link that can initiate AJAX requests.
ajaxSubmitButton ( string $label, mixed $url, array $ajaxOptions = [], array $htmlOptions = [] ) : string Generates a push button that can submit the current form in POST method.
alert ( string $color, string $message, array $htmlOptions = [] ) : string Generates an alert.
animatedProgressBar ( integer $width, array $htmlOptions = [] ) : string Generates an animated progress bar.
b ( string $text, array $htmlOptions = [] ) : string Generates bold text.
badge ( string $label, array $htmlOptions = [] ) : string Generates a badge span.
beginFormTb ( string $layout = self::FORM_LAYOUT_VERTICAL, string $action = '', string $method = 'post', array $htmlOptions = [] ) : string Generates an open form tag.
blockAlert ( string $color, string $message, array $htmlOptions = [] ) : string Generates an alert block.
breadcrumbs ( array $links, array $htmlOptions = [] ) : string Generates a breadcrumb menu.
btn ( string $type, string $label, array $htmlOptions = [] ) : string Generates a button.
button ( string $label = 'Button', array $htmlOptions = [] ) : string Generates an button.
buttonDropdown ( string $label, array $items, array $htmlOptions = [] ) : string Generates a button with a dropdown menu.
buttonGroup ( array $buttons, array $htmlOptions = [] ) : string Generates a button group.
buttonToolbar ( array $groups, array $htmlOptions = [] ) : string Generates a button toolbar.
carousel ( array $items, array $htmlOptions = [] ) : string Generates an image carousel.
carouselIndicators ( string $target, integer $numSlides, array $htmlOptions = [] ) : string Generates an indicator for the carousel.
carouselItem ( string $content, string $label, string $caption, array $htmlOptions = [] ) : string Generates a carousel item.
carouselNextLink ( string $label, mixed $url = '#', array $htmlOptions = [] ) : string Generates a next link for the carousel.
carouselPrevLink ( string $label, mixed $url = '#', array $htmlOptions = [] ) : string Generates a previous link for the carousel.
checkBox ( string $name, boolean $checked = false, array $htmlOptions = [] ) : string Generates a check box.
checkBoxControlGroup ( string $name, boolean | string $checked = false, array $htmlOptions = [] ) : string Generates a control group with a check box.
checkBoxList ( string $name, mixed $select, array $data, array $htmlOptions = [] ) : string Generates a check box list.
checkBoxListControlGroup ( string $name, string $select = '', array $data = [], array $htmlOptions = [] ) : string Generates a control group with a check box list.
closeButton ( string $label = self::CLOSE_TEXT, array $htmlOptions = [] ) : string Generates a close button.
closeLink ( string $label = self::CLOSE_TEXT, mixed $url = '#', array $htmlOptions = [] ) : string Generates a close link.
code ( string $code, array $htmlOptions = [] ) : string Generates inline code.
codeBlock ( string $code, array $htmlOptions = [] ) : string Generates a code block.
collapseLink ( string $label, string $target, array $htmlOptions = [] ) : string Generates a collapse link.
controlGroup ( string $type, string $name, string $value = '', array $htmlOptions = [], array $data = [] ) : string Generates a form group.
controls ( mixed $controls, array $htmlOptions = [] ) : string Generates form controls.
controlsRow ( mixed $controls, array $htmlOptions = [] ) : string Generates form controls row.
createActiveInput ( string $type, CModel $model, string $attribute, array $htmlOptions = [], array $data = [] ) : string Creates an active form input of the given type.
createInput ( string $type, string $name, string $value, array $htmlOptions = [], array $data = [] ) : string Creates a form input of the given type.
customActiveControlGroup ( string $input, CModel $model, string $attribute, array $htmlOptions = [] ) : string Generates a custom (pre-rendered) active form control group.
customControlGroup ( string $input, string $name, array $htmlOptions = [] ) : string Generates a custom (pre-rendered) form control group.
dateField ( string $name, string $value = '', array $htmlOptions = [] ) : string Generates a date field input.
dateFieldControlGroup ( string $name, string $value = '', array $htmlOptions = [] ) : string Generates a control group with a file field.
dropDownList ( string $name, string $select, array $data, array $htmlOptions = [] ) : string Generates a drop down list.
dropDownListControlGroup ( string $name, string $select = '', array $data = [], array $htmlOptions = [] ) : string Generates a control group with a drop down list.
dropdownToggleButton ( string $label = '', array $htmlOptions = [] ) : string Generates a dropdown toggle button.
dropdownToggleLink ( string $label, array $htmlOptions = [] ) : string Generates a dropdown toggle link.
dropdownToggleMenuLink ( string $label, string $url = '#', array $htmlOptions = [], integer $depth ) : string Generates a dropdown toggle menu item.
em ( string $text, array $htmlOptions = [], string $tag = 'p' ) : string Generates an emphasized text.
emailField ( string $name, string $value = '', array $htmlOptions = [] ) : string Generates an email field input.
emailFieldControlGroup ( string $name, string $value = '', array $htmlOptions = [] ) : string Generates a control group with an email field.
error ( CModel $model, string $attribute, array $htmlOptions = [] ) : string Displays the first validation error for a model attribute.
errorSummary ( mixed $model, string $header = null, string $footer = null, array $htmlOptions = [] ) : string Displays a summary of validation errors for one or several models.
fileField ( string $name, string $value = '', array $htmlOptions = [] ) : string Generates a file field input.
fileFieldControlGroup ( string $name, string $value = '', array $htmlOptions = [] ) : string Generates a control group with a file field.
formActions ( mixed $actions, array $htmlOptions = [] ) : string Generates form actions div. This is no longer necessary in Bootstrap 3, but it is still useful to use for horizontal forms. When used with a horizontal form, it will appropriately align the actions below other form controls.
formTb ( string $layout = self::FORM_LAYOUT_VERTICAL, string $action = '', string $method = 'post', array $htmlOptions = [] ) : string Generates a form tag.
help ( string $text, array $htmlOptions = [] ) : string Generates a help text.
helpBlock ( string $text, array $htmlOptions = [] ) : string Generates a help block.
heroUnit ( string $heading, string $content, array $htmlOptions = [] ) : string Generates a jumbotron unit.
htmlButton ( string $label = 'Button', array $htmlOptions = [] ) : string Generates an image submit button.
i ( string $text, array $htmlOptions = [] ) : string Generates italic text.
icon ( string $icon, array $htmlOptions = [], string $tagName = 'span' ) : string Generates an icon.
image ( string $src, string $alt = '', array $htmlOptions = [] ) : string Generates an image tag.
imageButton ( string $src, array $htmlOptions = [] ) : string Generates an image submit button.
imageCircle ( string $src, string $alt = '', array $htmlOptions = [] ) : string Generates an image tag with circle.
imagePolaroid ( string $src, string $alt = '', array $htmlOptions = [] ) : string Generates an image tag within polaroid frame.
imageRounded ( string $src, string $alt = '', array $htmlOptions = [] ) : string Generates an image tag with rounded corners.
imageThumbnail ( string $src, string $alt = '', array $htmlOptions = [] ) : string Generates an image tag within thumbnail frame.
inlineCheckBoxList ( string $name, mixed $select, array $data, array $htmlOptions = [] ) : string Generates an inline check box list.
inlineCheckBoxListControlGroup ( string $name, string $select = '', array $data = [], array $htmlOptions = [] ) : string Generates a control group with an inline check box list.
inlineRadioButtonList ( string $name, mixed $select, array $data, array $htmlOptions = [] ) : string Generates an inline radio button list.
inlineRadioButtonListControlGroup ( string $name, string $select = '', array $data = [], array $htmlOptions = [] ) : string Generates a control group with an inline radio button list.
inputButton ( string $label, array $htmlOptions = [] ) : string Generates a form input push button.
inputSubmit ( string $label = 'Submit', array $htmlOptions = [] ) : string Generates a form input submit push button.
labelTb ( string $label, array $htmlOptions = [] ) : string Generates a label span.
lead ( string $text, array $htmlOptions = [] ) : string Generates a paragraph that stands out.
link ( string $text, mixed $url = '#', array $htmlOptions = [] ) : string Generates a hyperlink tag.
linkButton ( string $label = 'Submit', array $htmlOptions = [] ) : string Generates a link submit button.
listBox ( string $name, mixed $select, array $data, array $htmlOptions = [] ) : string Generates a list box.
listBoxControlGroup ( string $name, string $select = '', array $data = [], array $htmlOptions = [] ) : string Generates a control group with a list box.
media ( string $image, string $heading, string $content, array $htmlOptions = [] ) : string Generates a single media object.
mediaList ( array $items, array $htmlOptions = [] ) : string Generates a list of media objects.
medias ( array $items, string $tag = 'div' ) : string Generates multiple media objects.
menu ( array $items, array $htmlOptions = [], integer $depth ) : string Generates a menu.
menuDivider ( array $htmlOptions = [] ) : string Generates a menu divider.
menuHeader ( string $label, array $htmlOptions = [] ) : string Generates a menu header.
menuLink ( string $label, array $url, array $htmlOptions = [] ) : string Generates a menu link.
modalBody ( string $content, array $htmlOptions = [] ) : string Generates a modal body.
modalFooter ( string $content, array $htmlOptions = [] ) : string Generates a modal footer.
modalHeader ( string $content, array $htmlOptions = [] ) : string Generates a modal header.
muted ( string $text, array $htmlOptions = [], string $tag = 'p' ) : string Generates a muted text block.
mutedSpan ( string $text, array $htmlOptions = [] ) : string Generates a muted span.
nav ( string $type, array $items, array $htmlOptions = [] ) : string Generates a navigation menu.
navList ( array $items, array $htmlOptions = [] ) : string Generates a list navigation.
navbar ( string $content, array $htmlOptions = [] ) : string Generates a navbar.
navbarBrandLink ( string $label, string $url, array $htmlOptions = [] ) : string Generates a brand link for the navbar.
navbarCollapseLink ( string $target, array $htmlOptions = [] ) : string Generates a collapse element.
navbarForm ( mixed $action, string $method = 'post', array $htmlOptions = [] ) : string Generates a navbar form.
navbarMenuDivider ( array $htmlOptions = [] ) : string Generates a menu divider for the navbar.
navbarSearchForm ( mixed $action, string $method = 'post', array $htmlOptions = [] ) : string Generates a navbar search form.
navbarText ( string $text, array $htmlOptions = [], string $tag = 'p' ) : string Generates a text for the navbar.
numberField ( string $name, string $value = '', array $htmlOptions = [] ) : string Generates a number field input.
numberFieldControlGroup ( string $name, string $value = '', array $htmlOptions = [] ) : string Generates a control group with a number field.
openTag ( string $tag, array $htmlOptions = [] ) : string Generates an open HTML element.
pageHeader ( string $heading, string $subtext, array $htmlOptions = [] ) : string Generates a pager header.
pager ( array $links, array $htmlOptions = [] ) : string Generates a pager.
pagerLink ( string $label, mixed $url, array $htmlOptions = [] ) : string Generates a pager link.
pagination ( array $items, array $htmlOptions = [] ) : string Generates a pagination.
paginationLink ( string $label, mixed $url, array $htmlOptions = [] ) : string Generates a pagination link.
passwordField ( string $name, string $value = '', array $htmlOptions = [] ) : string Generates a password field input.
passwordFieldControlGroup ( string $name, string $value = '', array $htmlOptions = [] ) : string Generates a control group with a password field.
pills ( array $items, array $htmlOptions = [] ) : string Generates a pills navigation.
popover ( string $label, string $title, string $content, array $htmlOptions = [] ) : string Generates a popover.
progressBar ( integer $width, array $htmlOptions = [] ) : string Generates a progress bar.
quote ( string $text, array $htmlOptions = [] ) : string Generates a quote.
radioButton ( string $name, boolean $checked = false, array $htmlOptions = [] ) : string Generates a radio button.
radioButtonControlGroup ( string $name, boolean | string $checked = false, array $htmlOptions = [] ) : string Generates a control group with a radio button.
radioButtonList ( string $name, mixed $select, array $data, array $htmlOptions = [] ) : string Generates a radio button list.
radioButtonListControlGroup ( string $name, string $select = '', array $data = [], array $htmlOptions = [] ) : string Generates a control group with a radio button list.
rangeField ( string $name, string $value = '', array $htmlOptions = [] ) : string Generates a range field input.
rangeFieldControlGroup ( string $name, string $value = '', array $htmlOptions = [] ) : string Generates a control group with a range field.
resetButton ( string $label = 'Reset', array $htmlOptions = [] ) : string Generates a reset button.
searchForm ( mixed $action, string $method = 'post', array $htmlOptions = [] ) : string Generates a search form.
searchQueryControlGroup ( string $name, string $value = '', array $htmlOptions = [] ) : string Generates a control group with a search field.
searchQueryField ( string $name, string $value = '', array $htmlOptions = [] ) : string Generates a search input.
small ( string $text, array $htmlOptions = [] ) : string Generates small text.
smallAbbr ( string $text, string $word, array $htmlOptions = [] ) : string Generates a small abbreviation with a help text.
splitButtonDropdown ( string $label, array $items, array $htmlOptions = [] ) : string Generates a button with a split dropdown menu.
stackedPills ( array $items, array $htmlOptions = [] ) : string Generates a stacked pills navigation.
stackedProgressBar ( array $bars, array $htmlOptions = [] ) : string Generates a stacked progress bar.
stackedTabs ( array $items, array $htmlOptions = [] ) : string Generates a stacked tab navigation.
statefulFormTb ( $layout = self::FORM_LAYOUT_VERTICAL, mixed $action = '', string $method = 'post', array $htmlOptions = [] ) : string Generates a stateful form tag.
stripedProgressBar ( integer $width, array $htmlOptions = [] ) : string Generates a striped progress bar.
submitButton ( string $label = 'Submit', array $htmlOptions = [] ) : string Generates a submit button.
tabbable ( string $type, array $tabs, array $htmlOptions = [] ) : string Generates a tabbable menu.
tabbablePills ( array $pills, array $htmlOptions = [] ) : string Generates a tabbable pills menu.
tabbableTabs ( array $tabs, array $htmlOptions = [] ) : string Generates a tabbable tabs menu.
tabs ( array $items, array $htmlOptions = [] ) : string Generates a tab navigation.
tag ( string $tag, array $htmlOptions = [], mixed $content = false, boolean $closeTag = true ) : string Generates an HTML element.
textArea ( string $name, string $value = '', array $htmlOptions = [] ) : string Generates a text area input.
textAreaControlGroup ( string $name, string $value = '', array $htmlOptions = [] ) : string Generates a control group with a text area.
textField ( string $name, string $value = '', array $htmlOptions = [] ) : string Generates a text field input.
textFieldControlGroup ( string $name, string $value = '', array $htmlOptions = [] ) : string Generates a control group with a text field.
thumbnail ( string $content, array $htmlOptions = [] ) : string Generates a thumbnail.
thumbnailLink ( string $content, mixed $url = '#', array $htmlOptions = [] ) : string Generates a link thumbnail.
thumbnails ( array $thumbnails, array $htmlOptions = [] ) : string Generates a list of thumbnails.
tooltip ( string $label, mixed $url, string $content, array $htmlOptions = [] ) : string Generates a tooltip.
uneditableField ( string $value, array $htmlOptions = [] ) : string Generates an uneditable input.
uneditableFieldControlGroup ( string $value = '', array $htmlOptions = [] ) : string Generates a control group with an uneditable field.
urlField ( string $name, string $value = '', array $htmlOptions = [] ) : string Generates an url field input.
urlFieldControlGroup ( string $name, string $value = '', array $htmlOptions = [] ) : string Generates a control group with an url field.
verticalButtonGroup ( array $buttons, array $htmlOptions = [] ) : string Generates a vertical button group.
well ( string $content, array $htmlOptions = [] ) : string Generates a well element.

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

Метод Описание
activeTextInputField ( string $type, CModel $model, string $attribute, array $htmlOptions ) : string Generates an input HTML tag for a model attribute.
addColClass ( &$htmlOptions ) Adds the appropriate column class to the given options applicable. The available columns are 'xs', 'sm', 'md', 'lg' for extra small, small, medium, and large to be used for the appropriate screen sizes. It is also possible to prevent your columns from stacking on smaller devices by combining a small column with a larger column: $htmlOptions = array( 'xs' => 12, 'md' => 8, ) Both classes will be applied.
addPullClass ( array &$htmlOptions ) Adds the pull class to the given options is applicable.
addSpanClass ( array &$htmlOptions ) Adds the grid span class to the given options is applicable. BS3 no longer use span classes. During the BS3 transition, this will use the col-md-* CSS class.
addTextAlignClass ( array &$htmlOptions ) Adds the text align class to the given options if applicable.
bar ( integer $width, array $htmlOptions = [] ) : string Generates a progress bar.
btnDropdown ( string $type, string $label, array $items, array $htmlOptions ) : string Generates a button dropdown.
close ( string $tag, string $label, array $htmlOptions = [] ) : string Generates a close element.
createButton ( string $type, string $label, array $htmlOptions ) : string Creates a button the of given type.
createCheckBoxAndRadioButtonLabel ( string $label, string $input, array $htmlOptions ) : string Generates a label for a checkbox or radio input by wrapping the input.
dropdown ( array $items, array $htmlOptions = [] ) : string Generates a dropdown menu.
dropdownToggle ( string $type, string $label, array $htmlOptions ) : string Generates a dropdown toggle element.
getAddOnClasses ( array $htmlOptions ) : string Returns the add-on classes based on the given options.
getColClasses ( array $htmlOptions ) : string Returns the col-* classes
inputAddOn ( string | array $addOns, array $htmlOptions, string $position = 'prepend' ) : string Generates an add-on for an input field.
inputHelp ( string $help, array $htmlOptions ) : string Generates a help text for an input field.
menuDropdown ( string $label, string $url, array $items, array $htmlOptions, integer $depth ) : string Generates a menu dropdown.
normalizeCheckBoxAndRadio ( string $input ) : array Normalizes the inputs in the given string by splitting them up into an array.
normalizeInputOptions ( array $options ) : array Normalizes input options.
normalizeTabs ( array $tabs, array &$panes, integer $i ) : array Normalizes the tab configuration.
popColClasses ( string &$htmlOptions ) : string Returns the col-* classes and removes the classes from $htmlOptions['class']
switchColToOffset ( string $class ) : string Nearly identical to {@link switchOffsetCol()} except it forces the class to be returned as its offset counterpart. It is also safe to pass in a class that is already an offset and it will just re-return it. For example, passing in col-md-2 will return col-md-offset-2. Passing in col-md-offset-4 will still return col-md-offset-4.
switchOffsetCol ( string $class ) : string Switches the column class to and from the col width itself to its offset counterpart. For example, passing in col-md-2 would be switched to col-md-offset-2
switchOffsetToCol ( string $class ) : string Nearly identical to {@link switchOffsetCol()} except it forces teh class to be returned as its column (e.g. "span") width counterpart. It is also safe to pass in a class that is already the column width and it will re-return it. For example, passing in col-md-offset-2 will return col-md-2. Passing in col-md-4 will still return col-md-4.
textInputField ( string $type, string $name, string $value, array $htmlOptions ) : string Generates an input HTML tag.
tooltipPopover ( string $label, mixed $url, string $title, array $htmlOptions ) : string Generates a base tooltip.

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

abbr() публичный статический Метод

Generates an abbreviation with a help text.
public static abbr ( string $text, string $word, array $htmlOptions = [] ) : string
$text string the abbreviation.
$word string the word the abbreviation is for.
$htmlOptions array additional HTML attributes.
Результат string the generated abbreviation.

activeCheckBox() публичный статический Метод

Generates a check box for a model attribute.
public static activeCheckBox ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
Результат string the generated check box.

activeCheckBoxControlGroup() публичный статический Метод

Generates a control group with a check box for a model attribute.
См. также: self::activeControlGroup
public static activeCheckBoxControlGroup ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

activeCheckBoxList() публичный статический Метод

Generates a check box list for a model attribute.
public static activeCheckBoxList ( CModel $model, string $attribute, array $data, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$data array $data value-label pairs used to generate the check box list.
$htmlOptions array additional HTML attributes.
Результат string the generated list.

activeCheckBoxListControlGroup() публичный статический Метод

Generates a control group with a check box list for a model attribute.
См. также: self::activeControlGroup
public static activeCheckBoxListControlGroup ( CModel $model, string $attribute, array $data = [], array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$data array data for generating the list options (value=>display).
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

activeControlGroup() публичный статический Метод

Generates an active form row.
public static activeControlGroup ( string $type, CModel $model, string $attribute, array $htmlOptions = [], array $data = [] ) : string
$type string the input type.
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
$data array data for multiple select inputs.
Результат string the generated control group.

activeDateField() публичный статический Метод

Generates a date field input for a model attribute.
См. также: self::activeTextInputField
public static activeDateField ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
Результат string the generated input field.

activeDateFieldControlGroup() публичный статический Метод

Generates a control group with a date field for a model attribute.
См. также: self::activeControlGroup
public static activeDateFieldControlGroup ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

activeDropDownList() публичный статический Метод

Generates a drop down list for a model attribute.
public static activeDropDownList ( CModel $model, string $attribute, array $data, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$data array data for generating the list options (value=>display).
$htmlOptions array additional HTML attributes
Результат string the generated drop down list.

activeDropDownListControlGroup() публичный статический Метод

Generates a control group with a drop down list for a model attribute.
См. также: self::activeControlGroup
public static activeDropDownListControlGroup ( CModel $model, string $attribute, array $data = [], array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$data array data for generating the list options (value=>display).
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

activeEmailField() публичный статический Метод

Generates an email field input for a model attribute.
См. также: self::activeTextInputField
public static activeEmailField ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
Результат string the generated input field.

activeEmailFieldControlGroup() публичный статический Метод

Generates a control group with a email field for a model attribute.
См. также: self::activeControlGroup
public static activeEmailFieldControlGroup ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

activeFileField() публичный статический Метод

Generates a file field input for a model attribute.
См. также: CHtml::activeFileField
public static activeFileField ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
Результат string the generated input field.

activeFileFieldControlGroup() публичный статический Метод

Generates a control group with a file field for a model attribute.
См. также: self::activeControlGroup
public static activeFileFieldControlGroup ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

activeInlineCheckBoxList() публичный статический Метод

Generates an inline check box list for a model attribute.
public static activeInlineCheckBoxList ( CModel $model, string $attribute, array $data, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$data array $data value-label pairs used to generate the check box list.
$htmlOptions array additional HTML attributes.
Результат string the generated list.

activeInlineCheckBoxListControlGroup() публичный статический Метод

Generates a control group with an inline check box list for a model attribute.
См. также: self::activeControlGroup
public static activeInlineCheckBoxListControlGroup ( CModel $model, string $attribute, array $data = [], array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$data array data for generating the list options (value=>display).
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

activeInlineRadioButtonList() публичный статический Метод

Generates an inline radio button list for a model attribute.
public static activeInlineRadioButtonList ( CModel $model, string $attribute, array $data, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$data array $data value-label pairs used to generate the radio button list.
$htmlOptions array additional HTML attributes.
Результат string the generated list.

activeInlineRadioButtonListControlGroup() публичный статический Метод

Generates a control group with an inline radio button list for a model attribute.
См. также: self::activeControlGroup
public static activeInlineRadioButtonListControlGroup ( CModel $model, string $attribute, array $data = [], array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$data array data for generating the list options (value=>display).
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

activeListBox() публичный статический Метод

Generates a list box for a model attribute.
public static activeListBox ( CModel $model, string $attribute, array $data, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$data array data for generating the list options (value=>display).
$htmlOptions array additional HTML attributes.
Результат string the generated list box

activeListBoxControlGroup() публичный статический Метод

Generates a control group with a list box for a model attribute.
См. также: self::activeControlGroup
public static activeListBoxControlGroup ( CModel $model, string $attribute, array $data = [], array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$data array data for generating the list options (value=>display).
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

activeNumberField() публичный статический Метод

Generates a number field input for a model attribute.
См. также: self::activeTextInputField
public static activeNumberField ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
Результат string the generated input field.

activeNumberFieldControlGroup() публичный статический Метод

Generates a control group with a number field for a model attribute.
См. также: self::activeControlGroup
public static activeNumberFieldControlGroup ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

activePasswordField() публичный статический Метод

Generates a password field input for a model attribute.
См. также: self::activeTextInputField
public static activePasswordField ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
Результат string the generated input field.

activePasswordFieldControlGroup() публичный статический Метод

Generates a control group with a password field for a model attribute.
См. также: self::activeControlGroup
public static activePasswordFieldControlGroup ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

activeRadioButton() публичный статический Метод

Generates a radio button for a model attribute.
public static activeRadioButton ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
Результат string the generated radio button.

activeRadioButtonControlGroup() публичный статический Метод

Generates a control group with a radio button for a model attribute.
См. также: self::activeControlGroup
public static activeRadioButtonControlGroup ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

activeRadioButtonList() публичный статический Метод

Generates a radio button list for a model attribute.
public static activeRadioButtonList ( CModel $model, string $attribute, array $data, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$data array $data value-label pairs used to generate the radio button list.
$htmlOptions array additional HTML attributes.
Результат string the generated list.

activeRadioButtonListControlGroup() публичный статический Метод

Generates a control group with a radio button list for a model attribute.
См. также: self::activeControlGroup
public static activeRadioButtonListControlGroup ( CModel $model, string $attribute, array $data = [], array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$data array data for generating the list options (value=>display).
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

activeRangeField() публичный статический Метод

Generates a range field input for a model attribute.
См. также: self::activeTextInputField
public static activeRangeField ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
Результат string the generated input field.

activeRangeFieldControlGroup() публичный статический Метод

Generates a control group with a range field for a model attribute.
См. также: self::activeControlGroup
public static activeRangeFieldControlGroup ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

activeSearchQueryControlGroup() публичный статический Метод

Generates a control group with a search field for a model attribute.
См. также: self::activeControlGroup
public static activeSearchQueryControlGroup ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

activeSearchQueryField() публичный статический Метод

Generates a search query input for a model attribute.
public static activeSearchQueryField ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
Результат string the generated input.

activeTextArea() публичный статический Метод

Generates a text area input for a model attribute.
public static activeTextArea ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
Результат string the generated text area.

activeTextAreaControlGroup() публичный статический Метод

Generates a control group with a text area for a model attribute.
См. также: self::activeControlGroup
public static activeTextAreaControlGroup ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

activeTextField() публичный статический Метод

Generates a text field input for a model attribute.
См. также: self::activeTextInputField
public static activeTextField ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
Результат string the generated input field.

activeTextFieldControlGroup() публичный статический Метод

Generates a control group with a text field for a model attribute.
См. также: self::activeControlGroup
public static activeTextFieldControlGroup ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

activeTextInputField() защищенный статический Метод

This method generates an input HTML tag based on the given input name and value.
protected static activeTextInputField ( string $type, CModel $model, string $attribute, array $htmlOptions ) : string
$type string the input type.
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
Результат string the generated input tag.

activeUneditableField() публичный статический Метод

Generates an uneditable input for a model attribute.
public static activeUneditableField ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
Результат string the generated input.

activeUneditableFieldControlGroup() публичный статический Метод

Generates a control group with a uneditable field for a model attribute.
См. также: self::activeControlGroup
public static activeUneditableFieldControlGroup ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

activeUrlField() публичный статический Метод

Generates an url field input for a model attribute.
См. также: self::activeTextInputField
public static activeUrlField ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
Результат string the generated input field.

activeUrlFieldControlGroup() публичный статический Метод

Generates a control group with a url field for a model attribute.
См. также: self::activeControlGroup
public static activeUrlFieldControlGroup ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

addColClass() защищенный статический Метод

Adds the appropriate column class to the given options applicable. The available columns are 'xs', 'sm', 'md', 'lg' for extra small, small, medium, and large to be used for the appropriate screen sizes. It is also possible to prevent your columns from stacking on smaller devices by combining a small column with a larger column: $htmlOptions = array( 'xs' => 12, 'md' => 8, ) Both classes will be applied.
protected static addColClass ( &$htmlOptions )
$htmlOptions

addCssClass() публичный статический Метод

.
public static addCssClass ( mixed $className, array &$htmlOptions ) : array
$className mixed the class(es) to append.
$htmlOptions array the options.
Результат array the options.

addCssStyle() публичный статический Метод

Appends a CSS style string to the given options.
public static addCssStyle ( string $style, array &$htmlOptions ) : array
$style string the CSS style string.
$htmlOptions array the options.
Результат array the options.

addPullClass() защищенный статический Метод

Adds the pull class to the given options is applicable.
protected static addPullClass ( array &$htmlOptions )
$htmlOptions array the HTML attributes.

addSpanClass() защищенный статический Метод

Adds the grid span class to the given options is applicable. BS3 no longer use span classes. During the BS3 transition, this will use the col-md-* CSS class.
Устаревший:
protected static addSpanClass ( array &$htmlOptions )
$htmlOptions array the HTML attributes.

addTextAlignClass() защищенный статический Метод

Adds the text align class to the given options if applicable.
protected static addTextAlignClass ( array &$htmlOptions )
$htmlOptions array the HTML attributes.

address() публичный статический Метод

Generates an address block.
public static address ( $text, array $htmlOptions = [] ) : string
$text
$htmlOptions array additional HTML attributes.
Результат string the generated block.

ajaxButton() публичный статический Метод

Generates a push button that can initiate AJAX requests.
public static ajaxButton ( string $label, mixed $url, array $ajaxOptions = [], array $htmlOptions = [] ) : string
$label string the button label.
$url mixed the URL for the AJAX request.
$ajaxOptions array AJAX options.
$htmlOptions array additional HTML attributes.
Результат string the generated button.

ajaxSubmitButton() публичный статический Метод

Generates a push button that can submit the current form in POST method.
public static ajaxSubmitButton ( string $label, mixed $url, array $ajaxOptions = [], array $htmlOptions = [] ) : string
$label string the button label
$url mixed the URL for the AJAX request.
$ajaxOptions array AJAX options.
$htmlOptions array additional HTML attributes.
Результат string the generated button.

alert() публичный статический Метод

Generates an alert.
public static alert ( string $color, string $message, array $htmlOptions = [] ) : string
$color string the color of the alert.
$message string the message to display.
$htmlOptions array additional HTML options.
Результат string the generated alert.

animatedProgressBar() публичный статический Метод

Generates an animated progress bar.
public static animatedProgressBar ( integer $width, array $htmlOptions = [] ) : string
$width integer the progress in percent.
$htmlOptions array additional HTML attributes.
Результат string the generated progress bar.

b() публичный статический Метод

Generates bold text.
public static b ( string $text, array $htmlOptions = [] ) : string
$text string the text to style.
$htmlOptions array additional HTML attributes.
Результат string the generated text.

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

Generates a badge span.
public static badge ( string $label, array $htmlOptions = [] ) : string
$label string the badge text.
$htmlOptions array additional HTML attributes.
Результат string the generated span.

bar() защищенный статический Метод

Generates a progress bar.
protected static bar ( integer $width, array $htmlOptions = [] ) : string
$width integer the progress in percent.
$htmlOptions array additional HTML attributes.
Результат string the generated bar.

beginFormTb() публичный статический Метод

Generates an open form tag.
public static beginFormTb ( string $layout = self::FORM_LAYOUT_VERTICAL, string $action = '', string $method = 'post', array $htmlOptions = [] ) : string
$layout string the form layout.
$action string the form action URL.
$method string form method (e.g. post, get).
$htmlOptions array additional HTML attributes.
Результат string the generated tag.

blockAlert() публичный статический Метод

Generates an alert block.
public static blockAlert ( string $color, string $message, array $htmlOptions = [] ) : string
$color string the color of the alert.
$message string the message to display.
$htmlOptions array additional HTML options.
Результат string the generated alert.

breadcrumbs() публичный статический Метод

Generates a breadcrumb menu.
public static breadcrumbs ( array $links, array $htmlOptions = [] ) : string
$links array the breadcrumb links.
$htmlOptions array additional HTML attributes.
Результат string the generated breadcrumb.

btn() публичный статический Метод

Generates a button.
public static btn ( string $type, string $label, array $htmlOptions = [] ) : string
$type string the button type.
$label string the button label text.
$htmlOptions array additional HTML attributes.
Результат string the generated button.

btnDropdown() защищенный статический Метод

Generates a button dropdown.
protected static btnDropdown ( string $type, string $label, array $items, array $htmlOptions ) : string
$type string the button type.
$label string the button label text.
$items array the menu items.
$htmlOptions array additional HTML attributes.
Результат string the generated button.

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

Generates an button.
public static button ( string $label = 'Button', array $htmlOptions = [] ) : string
$label string the button label text.
$htmlOptions array additional HTML attributes.
Результат string the generated button.

buttonDropdown() публичный статический Метод

Generates a button with a dropdown menu.
public static buttonDropdown ( string $label, array $items, array $htmlOptions = [] ) : string
$label string the button label text.
$items array the menu items.
$htmlOptions array additional HTML attributes.
Результат string the generated button.

buttonGroup() публичный статический Метод

Generates a button group.
public static buttonGroup ( array $buttons, array $htmlOptions = [] ) : string
$buttons array the button configurations.
$htmlOptions array additional HTML options.
Результат string the generated button group.

buttonToolbar() публичный статический Метод

Generates a button toolbar.
public static buttonToolbar ( array $groups, array $htmlOptions = [] ) : string
$groups array the button group configurations.
$htmlOptions array additional HTML options.
Результат string the generated button toolbar.

carouselIndicators() публичный статический Метод

Generates an indicator for the carousel.
public static carouselIndicators ( string $target, integer $numSlides, array $htmlOptions = [] ) : string
$target string the CSS selector for the target element.
$numSlides integer the number of slides.
$htmlOptions array additional HTML attributes.
Результат string the generated indicators.

carouselItem() публичный статический Метод

Generates a carousel item.
public static carouselItem ( string $content, string $label, string $caption, array $htmlOptions = [] ) : string
$content string the content.
$label string the item label text.
$caption string the item caption text.
$htmlOptions array additional HTML attributes.
Результат string the generated item.

checkBox() публичный статический Метод

Generates a check box.
public static checkBox ( string $name, boolean $checked = false, array $htmlOptions = [] ) : string
$name string the input name.
$checked boolean whether the check box is checked.
$htmlOptions array additional HTML attributes.
Результат string the generated check box.

checkBoxControlGroup() публичный статический Метод

Generates a control group with a check box.
См. также: self::controlGroup
public static checkBoxControlGroup ( string $name, boolean | string $checked = false, array $htmlOptions = [] ) : string
$name string the input name.
$checked boolean | string whether the check box is checked.
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

checkBoxList() публичный статический Метод

Generates a check box list.
public static checkBoxList ( string $name, mixed $select, array $data, array $htmlOptions = [] ) : string
$name string name of the check box list.
$select mixed selection of the check boxes.
$data array $data value-label pairs used to generate the check box list.
$htmlOptions array additional HTML attributes.
Результат string the generated list.

checkBoxListControlGroup() публичный статический Метод

Generates a control group with a check box list.
См. также: self::controlGroup
public static checkBoxListControlGroup ( string $name, string $select = '', array $data = [], array $htmlOptions = [] ) : string
$name string the input name.
$select string the selected value.
$data array data for generating the list options (value=>display).
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

close() защищенный статический Метод

Generates a close element.
protected static close ( string $tag, string $label, array $htmlOptions = [] ) : string
$tag string the tag name.
$label string the element label text.
$htmlOptions array additional HTML attributes.
Результат string the generated element.

closeButton() публичный статический Метод

Generates a close button.
public static closeButton ( string $label = self::CLOSE_TEXT, array $htmlOptions = [] ) : string
$label string the button label text.
$htmlOptions array the HTML options for the button.
Результат string the generated button.

code() публичный статический Метод

Generates inline code.
public static code ( string $code, array $htmlOptions = [] ) : string
$code string the code.
$htmlOptions array additional HTML attributes.
Результат string the generated code.

codeBlock() публичный статический Метод

Generates a code block.
public static codeBlock ( string $code, array $htmlOptions = [] ) : string
$code string the code.
$htmlOptions array additional HTML attributes.
Результат string the generated block.

controlGroup() публичный статический Метод

Generates a form group.
public static controlGroup ( string $type, string $name, string $value = '', array $htmlOptions = [], array $data = [] ) : string
$type string the input type.
$name string the input name.
$value string the input value.
$htmlOptions array additional HTML attributes.
$data array data for multiple select inputs.
Результат string the generated control group.

controls() публичный статический Метод

Generates form controls.
public static controls ( mixed $controls, array $htmlOptions = [] ) : string
$controls mixed the controls.
$htmlOptions array additional HTML attributes.
Результат string the generated controls.

controlsRow() публичный статический Метод

Generates form controls row.
Устаревший: BS3 only requires a div.row container for all inputs if you want a controls row
public static controlsRow ( mixed $controls, array $htmlOptions = [] ) : string
$controls mixed the controls.
$htmlOptions array additional HTML attributes.
Результат string the generated controls.

createActiveInput() публичный статический Метод

Creates an active form input of the given type.
public static createActiveInput ( string $type, CModel $model, string $attribute, array $htmlOptions = [], array $data = [] ) : string
$type string the input type.
$model CModel the model instance.
$attribute string the attribute name.
$htmlOptions array additional HTML attributes.
$data array data for multiple select inputs.
Результат string the input.

createButton() защищенный статический Метод

Creates a button the of given type.
protected static createButton ( string $type, string $label, array $htmlOptions ) : string
$type string the button type.
$label string the button label.
$htmlOptions array additional HTML attributes.
Результат string the button.

createCheckBoxAndRadioButtonLabel() защищенный статический Метод

Generates a label for a checkbox or radio input by wrapping the input.
protected static createCheckBoxAndRadioButtonLabel ( string $label, string $input, array $htmlOptions ) : string
$label string the label text.
$input string the input.
$htmlOptions array additional HTML attributes.
Результат string the generated label.

createInput() публичный статический Метод

Creates a form input of the given type.
public static createInput ( string $type, string $name, string $value, array $htmlOptions = [], array $data = [] ) : string
$type string the input type.
$name string the input name.
$value string the input value.
$htmlOptions array additional HTML attributes.
$data array data for multiple select inputs.
Результат string the input.

customActiveControlGroup() публичный статический Метод

Generates a custom (pre-rendered) active form control group.
public static customActiveControlGroup ( string $input, CModel $model, string $attribute, array $htmlOptions = [] ) : string
$input string the rendered input.
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

customControlGroup() публичный статический Метод

Generates a custom (pre-rendered) form control group.
public static customControlGroup ( string $input, string $name, array $htmlOptions = [] ) : string
$input string the rendered input.
$name string the input name.
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

dateField() публичный статический Метод

Generates a date field input.
См. также: self::textInputField
public static dateField ( string $name, string $value = '', array $htmlOptions = [] ) : string
$name string the input name.
$value string the input value.
$htmlOptions array additional HTML attributes.
Результат string the generated input field.

dateFieldControlGroup() публичный статический Метод

Generates a control group with a file field.
См. также: self::controlGroup
public static dateFieldControlGroup ( string $name, string $value = '', array $htmlOptions = [] ) : string
$name string the input name.
$value string the input value.
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

dropDownList() публичный статический Метод

Generates a drop down list.
public static dropDownList ( string $name, string $select, array $data, array $htmlOptions = [] ) : string
$name string the input name.
$select string the selected value.
$data array data for generating the list options (value=>display).
$htmlOptions array
Результат string the generated drop down list.

dropDownListControlGroup() публичный статический Метод

Generates a control group with a drop down list.
См. также: self::controlGroup
public static dropDownListControlGroup ( string $name, string $select = '', array $data = [], array $htmlOptions = [] ) : string
$name string the input name.
$select string the selected value.
$data array data for generating the list options (value=>display).
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

dropdown() защищенный статический Метод

Generates a dropdown menu.
protected static dropdown ( array $items, array $htmlOptions = [] ) : string
$items array the menu items.
$htmlOptions array additional HTML attributes.
Результат string the generated menu.

dropdownToggle() защищенный статический Метод

Generates a dropdown toggle element.
protected static dropdownToggle ( string $type, string $label, array $htmlOptions ) : string
$type string the type of dropdown.
$label string the element text.
$htmlOptions array additional HTML attributes.
Результат string the generated element.

dropdownToggleButton() публичный статический Метод

Generates a dropdown toggle button.
public static dropdownToggleButton ( string $label = '', array $htmlOptions = [] ) : string
$label string the button label text.
$htmlOptions array additional HTML attributes.
Результат string the generated button.

em() публичный статический Метод

Generates an emphasized text.
public static em ( string $text, array $htmlOptions = [], string $tag = 'p' ) : string
$text string the text to emphasize.
$htmlOptions array additional HTML attributes.
$tag string the HTML tag.
Результат string the generated text.

emailField() публичный статический Метод

Generates an email field input.
См. также: self::textInputField
public static emailField ( string $name, string $value = '', array $htmlOptions = [] ) : string
$name string the input name.
$value string the input value.
$htmlOptions array additional HTML attributes.
Результат string the generated input field.

emailFieldControlGroup() публичный статический Метод

Generates a control group with an email field.
См. также: self::controlGroup
public static emailFieldControlGroup ( string $name, string $value = '', array $htmlOptions = [] ) : string
$name string the input name.
$value string the input value.
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

error() публичный статический Метод

Displays the first validation error for a model attribute.
public static error ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute name.
$htmlOptions array additional HTML attributes.
Результат string the rendered error. Empty if no errors are found.

errorSummary() публичный статический Метод

Displays a summary of validation errors for one or several models.
public static errorSummary ( mixed $model, string $header = null, string $footer = null, array $htmlOptions = [] ) : string
$model mixed the models whose input errors are to be displayed.
$header string a piece of HTML code that appears in front of the errors.
$footer string a piece of HTML code that appears at the end of the errors.
$htmlOptions array additional HTML attributes to be rendered in the container div tag.
Результат string the error summary. Empty if no errors are found.

fileField() публичный статический Метод

Generates a file field input.
См. также: CHtml::fileField
public static fileField ( string $name, string $value = '', array $htmlOptions = [] ) : string
$name string the input name.
$value string the input value.
$htmlOptions array additional HTML attributes.
Результат string the generated input field.

fileFieldControlGroup() публичный статический Метод

Generates a control group with a file field.
См. также: self::controlGroup
public static fileFieldControlGroup ( string $name, string $value = '', array $htmlOptions = [] ) : string
$name string the input name.
$value string the input value.
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

formActions() публичный статический Метод

Generates form actions div. This is no longer necessary in Bootstrap 3, but it is still useful to use for horizontal forms. When used with a horizontal form, it will appropriately align the actions below other form controls.
public static formActions ( mixed $actions, array $htmlOptions = [] ) : string
$actions mixed the actions.
$htmlOptions array additional HTML attributes.
Результат string the generated actions.

formTb() публичный статический Метод

Generates a form tag.
public static formTb ( string $layout = self::FORM_LAYOUT_VERTICAL, string $action = '', string $method = 'post', array $htmlOptions = [] ) : string
$layout string the form layout.
$action string the form action URL.
$method string form method (e.g. post, get).
$htmlOptions array additional HTML attributes.
Результат string the generated tag.

getAddOnClasses() защищенный статический Метод

Returns the add-on classes based on the given options.
protected static getAddOnClasses ( array $htmlOptions ) : string
$htmlOptions array the options.
Результат string the classes.

getColClasses() защищенный статический Метод

Returns the col-* classes
protected static getColClasses ( array $htmlOptions ) : string
$htmlOptions array with "class" set
Результат string

help() публичный статический Метод

Generates a help text.
public static help ( string $text, array $htmlOptions = [] ) : string
$text string the help text.
$htmlOptions array additional HTML attributes.
Результат string the generated text.

helpBlock() публичный статический Метод

Generates a help block.
Устаревший:
public static helpBlock ( string $text, array $htmlOptions = [] ) : string
$text string the help text.
$htmlOptions array additional HTML attributes.
Результат string the generated block.

heroUnit() публичный статический Метод

Generates a jumbotron unit.
public static heroUnit ( string $heading, string $content, array $htmlOptions = [] ) : string
$heading string the heading text.
$content string the content text.
$htmlOptions array additional HTML attributes.
Результат string the generated hero unit.

htmlButton() публичный статический Метод

Generates an image submit button.
public static htmlButton ( string $label = 'Button', array $htmlOptions = [] ) : string
$label string
$htmlOptions array additional HTML attributes.
Результат string the generated button.

i() публичный статический Метод

Generates italic text.
public static i ( string $text, array $htmlOptions = [] ) : string
$text string the text to style.
$htmlOptions array additional HTML attributes.
Результат string the generated text.

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

Generates an icon.
public static icon ( string $icon, array $htmlOptions = [], string $tagName = 'span' ) : string
$icon string the icon type.
$htmlOptions array additional HTML attributes.
$tagName string the icon HTML tag.
Результат string the generated icon.

image() публичный статический Метод

Generates an image tag.
public static image ( string $src, string $alt = '', array $htmlOptions = [] ) : string
$src string the image URL.
$alt string the alternative text display.
$htmlOptions array additional HTML attributes.
Результат string the generated image tag.

imageButton() публичный статический Метод

Generates an image submit button.
public static imageButton ( string $src, array $htmlOptions = [] ) : string
$src string the image URL
$htmlOptions array additional HTML attributes.
Результат string the generated button.

imageCircle() публичный статический Метод

Generates an image tag with circle.
public static imageCircle ( string $src, string $alt = '', array $htmlOptions = [] ) : string
$src string the image URL.
$alt string the alternative text display.
$htmlOptions array additional HTML attributes.
Результат string the generated image tag.

imagePolaroid() публичный статический Метод

Generates an image tag within polaroid frame.
Устаревший: See {@link imageThumbnail()}
public static imagePolaroid ( string $src, string $alt = '', array $htmlOptions = [] ) : string
$src string the image URL.
$alt string the alternative text display.
$htmlOptions array additional HTML attributes.
Результат string the generated image tag.

imageRounded() публичный статический Метод

Generates an image tag with rounded corners.
public static imageRounded ( string $src, string $alt = '', array $htmlOptions = [] ) : string
$src string the image URL.
$alt string the alternative text display.
$htmlOptions array additional HTML attributes.
Результат string the generated image tag.

imageThumbnail() публичный статический Метод

Generates an image tag within thumbnail frame.
public static imageThumbnail ( string $src, string $alt = '', array $htmlOptions = [] ) : string
$src string the image URL.
$alt string the alternative text display.
$htmlOptions array additional HTML attributes.
Результат string the generated image tag.

inlineCheckBoxList() публичный статический Метод

Generates an inline check box list.
public static inlineCheckBoxList ( string $name, mixed $select, array $data, array $htmlOptions = [] ) : string
$name string name of the check box list.
$select mixed selection of the check boxes.
$data array $data value-label pairs used to generate the check box list.
$htmlOptions array additional HTML attributes.
Результат string the generated list.

inlineCheckBoxListControlGroup() публичный статический Метод

Generates a control group with an inline check box list.
См. также: self::controlGroup
public static inlineCheckBoxListControlGroup ( string $name, string $select = '', array $data = [], array $htmlOptions = [] ) : string
$name string the input name.
$select string the selected value.
$data array data for generating the list options (value=>display).
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

inlineRadioButtonList() публичный статический Метод

Generates an inline radio button list.
public static inlineRadioButtonList ( string $name, mixed $select, array $data, array $htmlOptions = [] ) : string
$name string name of the radio button list.
$select mixed selection of the radio buttons.
$data array $data value-label pairs used to generate the radio button list.
$htmlOptions array additional HTML attributes.
Результат string the generated list.

inlineRadioButtonListControlGroup() публичный статический Метод

Generates a control group with an inline radio button list.
См. также: self::controlGroup
public static inlineRadioButtonListControlGroup ( string $name, string $select = '', array $data = [], array $htmlOptions = [] ) : string
$name string the input name.
$select string the selected value.
$data array data for generating the list options (value=>display).
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

inputAddOn() защищенный статический Метод

Generates an add-on for an input field.
protected static inputAddOn ( string | array $addOns, array $htmlOptions, string $position = 'prepend' ) : string
$addOns string | array the add-on.
$htmlOptions array additional HTML attributes.
$position string either 'prepend' or 'append'. Position is only important if you are passing multiple addons and it's a mixture of text/radio/checkboxes or buttons. The current styling needs buttons at the ends.
Результат string the generated add-on.

inputButton() публичный статический Метод

Generates a form input push button.
public static inputButton ( string $label, array $htmlOptions = [] ) : string
$label string the button label
$htmlOptions array additional HTML attributes.
Результат string the generated button.

inputHelp() защищенный статический Метод

Generates a help text for an input field.
protected static inputHelp ( string $help, array $htmlOptions ) : string
$help string the help text.
$htmlOptions array additional HTML attributes.
Результат string the generated help text.

inputSubmit() публичный статический Метод

Generates a form input submit push button.
public static inputSubmit ( string $label = 'Submit', array $htmlOptions = [] ) : string
$label string the button label
$htmlOptions array additional HTML attributes.
Результат string the generated button.

labelTb() публичный статический Метод

Generates a label span.
public static labelTb ( string $label, array $htmlOptions = [] ) : string
$label string the label text.
$htmlOptions array additional HTML attributes.
Результат string the generated span.

lead() публичный статический Метод

Generates a paragraph that stands out.
public static lead ( string $text, array $htmlOptions = [] ) : string
$text string the lead text.
$htmlOptions array additional HTML attributes.
Результат string the generated paragraph.

linkButton() публичный статический Метод

Generates a link submit button.
public static linkButton ( string $label = 'Submit', array $htmlOptions = [] ) : string
$label string the button label.
$htmlOptions array additional HTML attributes.
Результат string the generated button tag.

listBox() публичный статический Метод

Generates a list box.
public static listBox ( string $name, mixed $select, array $data, array $htmlOptions = [] ) : string
$name string the input name.
$select mixed the selected value(s).
$data array data for generating the list options (value=>display).
$htmlOptions array additional HTML attributes.
Результат string the generated list box

listBoxControlGroup() публичный статический Метод

Generates a control group with a list box.
См. также: self::controlGroup
public static listBoxControlGroup ( string $name, string $select = '', array $data = [], array $htmlOptions = [] ) : string
$name string the input name.
$select string the selected value.
$data array data for generating the list options (value=>display).
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

media() публичный статический Метод

Generates a single media object.
public static media ( string $image, string $heading, string $content, array $htmlOptions = [] ) : string
$image string the image url.
$heading string the heading text.
$content string the content text.
$htmlOptions array additional HTML attributes.
Результат string the media object.

mediaList() публичный статический Метод

Generates a list of media objects.
public static mediaList ( array $items, array $htmlOptions = [] ) : string
$items array item configurations.
$htmlOptions array additional HTML attributes.
Результат string generated list.

medias() публичный статический Метод

Generates multiple media objects.
public static medias ( array $items, string $tag = 'div' ) : string
$items array item configurations.
$tag string the item tag name.
Результат string generated objects.

menu() публичный статический Метод

Generates a menu.
public static menu ( array $items, array $htmlOptions = [], integer $depth ) : string
$items array the menu items.
$htmlOptions array additional HTML attributes.
$depth integer the current depth.
Результат string the generated menu.

menuDivider() публичный статический Метод

Generates a menu divider.
public static menuDivider ( array $htmlOptions = [] ) : string
$htmlOptions array additional HTML attributes.
Результат string the generated menu item.

menuDropdown() защищенный статический Метод

Generates a menu dropdown.
protected static menuDropdown ( string $label, string $url, array $items, array $htmlOptions, integer $depth ) : string
$label string the link label.
$url string the link URL.
$items array the menu configuration.
$htmlOptions array additional HTML attributes.
$depth integer the current depth.
Результат string the generated dropdown.

menuHeader() публичный статический Метод

Generates a menu header.
public static menuHeader ( string $label, array $htmlOptions = [] ) : string
$label string the header text.
$htmlOptions array additional HTML options.
Результат string the generated header.

modalBody() публичный статический Метод

Generates a modal body.
public static modalBody ( string $content, array $htmlOptions = [] ) : string
$content string the body content.
$htmlOptions array additional HTML attributes.
Результат string the generated body.

modalFooter() публичный статический Метод

Generates a modal footer.
public static modalFooter ( string $content, array $htmlOptions = [] ) : string
$content string the footer content.
$htmlOptions array additional HTML attributes.
Результат string the generated footer.

modalHeader() публичный статический Метод

Generates a modal header.
public static modalHeader ( string $content, array $htmlOptions = [] ) : string
$content string the header content.
$htmlOptions array additional HTML attributes.
Результат string the generated header.

muted() публичный статический Метод

Generates a muted text block.
public static muted ( string $text, array $htmlOptions = [], string $tag = 'p' ) : string
$text string the text.
$htmlOptions array additional HTML attributes.
$tag string the HTML tag.
Результат string the generated text block.

mutedSpan() публичный статический Метод

Generates a muted span.
public static mutedSpan ( string $text, array $htmlOptions = [] ) : string
$text string the text.
$htmlOptions array additional HTML attributes.
Результат string the generated span.

nav() публичный статический Метод

Generates a navigation menu.
public static nav ( string $type, array $items, array $htmlOptions = [] ) : string
$type string the menu type.
$items array the menu items.
$htmlOptions array additional HTML attributes.
Результат string the generated menu.

navList() публичный статический Метод

Generates a list navigation.
public static navList ( array $items, array $htmlOptions = [] ) : string
$items array the menu items.
$htmlOptions array additional HTML attributes.
Результат string the generated menu.

navbar() публичный статический Метод

Generates a navbar.
public static navbar ( string $content, array $htmlOptions = [] ) : string
$content string the navbar content.
$htmlOptions array additional HTML attributes.
Результат string the generated navbar.

navbarForm() публичный статический Метод

Generates a navbar form.
public static navbarForm ( mixed $action, string $method = 'post', array $htmlOptions = [] ) : string
$action mixed the form action URL.
$method string form method (e.g. post, get).
$htmlOptions array additional HTML attributes
Результат string the generated form.

navbarMenuDivider() публичный статический Метод

Generates a menu divider for the navbar.
public static navbarMenuDivider ( array $htmlOptions = [] ) : string
$htmlOptions array additional HTML attributes.
Результат string the generated divider.

navbarSearchForm() публичный статический Метод

Generates a navbar search form.
public static navbarSearchForm ( mixed $action, string $method = 'post', array $htmlOptions = [] ) : string
$action mixed the form action URL.
$method string form method (e.g. post, get).
$htmlOptions array additional HTML attributes
Результат string the generated form.

navbarText() публичный статический Метод

Generates a text for the navbar.
public static navbarText ( string $text, array $htmlOptions = [], string $tag = 'p' ) : string
$text string the text.
$htmlOptions array additional HTML attributes.
$tag string the HTML tag.
Результат string the generated text block.

normalizeCheckBoxAndRadio() защищенный статический Метод

Normalizes the inputs in the given string by splitting them up into an array.
protected static normalizeCheckBoxAndRadio ( string $input ) : array
$input string the inputs.
Результат array an array with the following structure: array($hidden, $input)

normalizeInputOptions() защищенный статический Метод

Normalizes input options.
protected static normalizeInputOptions ( array $options ) : array
$options array the options.
Результат array the normalized options.

normalizeTabs() защищенный статический Метод

Normalizes the tab configuration.
protected static normalizeTabs ( array $tabs, array &$panes, integer $i ) : array
$tabs array the tab configuration.
$panes array a reference to the panes array.
$i integer the running index.
Результат array the items.

numberField() публичный статический Метод

Generates a number field input.
См. также: self::textInputField
public static numberField ( string $name, string $value = '', array $htmlOptions = [] ) : string
$name string the input name.
$value string the input value.
$htmlOptions array additional HTML attributes.
Результат string the generated input field.

numberFieldControlGroup() публичный статический Метод

Generates a control group with a number field.
См. также: self::textInputField
public static numberFieldControlGroup ( string $name, string $value = '', array $htmlOptions = [] ) : string
$name string the input name.
$value string the input value.
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

openTag() публичный статический Метод

Generates an open HTML element.
public static openTag ( string $tag, array $htmlOptions = [] ) : string
$tag string the tag name.
$htmlOptions array the element attributes.
Результат string the generated HTML element tag.

pageHeader() публичный статический Метод

Generates a pager header.
public static pageHeader ( string $heading, string $subtext, array $htmlOptions = [] ) : string
$heading string the heading text.
$subtext string the subtext.
$htmlOptions array additional HTML attributes.
Результат string the generated pager header.

pager() публичный статический Метод

Generates a pager.
public static pager ( array $links, array $htmlOptions = [] ) : string
$links array the pager buttons.
$htmlOptions array additional HTML attributes.
Результат string the generated pager.

pagination() публичный статический Метод

Generates a pagination.
public static pagination ( array $items, array $htmlOptions = [] ) : string
$items array the pagination buttons.
$htmlOptions array additional HTML attributes.
Результат string the generated pagination.

passwordField() публичный статический Метод

Generates a password field input.
См. также: self::textInputField
public static passwordField ( string $name, string $value = '', array $htmlOptions = [] ) : string
$name string the input name.
$value string the input value.
$htmlOptions array additional HTML attributes.
Результат string the generated input field.

passwordFieldControlGroup() публичный статический Метод

Generates a control group with a password field.
См. также: self::textInputField
public static passwordFieldControlGroup ( string $name, string $value = '', array $htmlOptions = [] ) : string
$name string the input name.
$value string the input value.
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

pills() публичный статический Метод

Generates a pills navigation.
public static pills ( array $items, array $htmlOptions = [] ) : string
$items array the menu items.
$htmlOptions array additional HTML attributes.
Результат string the generated menu.

popColClasses() защищенный статический Метод

Returns the col-* classes and removes the classes from $htmlOptions['class']
protected static popColClasses ( string &$htmlOptions ) : string
$htmlOptions string with class set
Результат string

popover() публичный статический Метод

Generates a popover.
public static popover ( string $label, string $title, string $content, array $htmlOptions = [] ) : string
$label string the popover link label text.
$title string the popover title text.
$content string the popover content text.
$htmlOptions array additional HTML attributes.
Результат string the generated popover.

progressBar() публичный статический Метод

Generates a progress bar.
public static progressBar ( integer $width, array $htmlOptions = [] ) : string
$width integer the progress in percent.
$htmlOptions array additional HTML attributes.
Результат string the generated progress bar.

quote() публичный статический Метод

Generates a quote.
public static quote ( string $text, array $htmlOptions = [] ) : string
$text string the quoted text.
$htmlOptions array additional HTML attributes.
Результат string the generated quote.

radioButton() публичный статический Метод

Generates a radio button.
public static radioButton ( string $name, boolean $checked = false, array $htmlOptions = [] ) : string
$name string the input name.
$checked boolean whether the radio button is checked.
$htmlOptions array additional HTML attributes.
Результат string the generated radio button.

radioButtonControlGroup() публичный статический Метод

Generates a control group with a radio button.
См. также: self::controlGroup
public static radioButtonControlGroup ( string $name, boolean | string $checked = false, array $htmlOptions = [] ) : string
$name string the input name.
$checked boolean | string whether the radio button is checked.
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

radioButtonList() публичный статический Метод

Generates a radio button list.
public static radioButtonList ( string $name, mixed $select, array $data, array $htmlOptions = [] ) : string
$name string name of the radio button list.
$select mixed selection of the radio buttons.
$data array $data value-label pairs used to generate the radio button list.
$htmlOptions array additional HTML attributes.
Результат string the generated list.

radioButtonListControlGroup() публичный статический Метод

Generates a control group with a radio button list.
См. также: self::controlGroup
public static radioButtonListControlGroup ( string $name, string $select = '', array $data = [], array $htmlOptions = [] ) : string
$name string the input name.
$select string the selected value.
$data array data for generating the list options (value=>display).
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

rangeField() публичный статический Метод

Generates a range field input.
См. также: self::textInputField
public static rangeField ( string $name, string $value = '', array $htmlOptions = [] ) : string
$name string the input name.
$value string the input value.
$htmlOptions array additional HTML attributes.
Результат string the generated input field.

rangeFieldControlGroup() публичный статический Метод

Generates a control group with a range field.
См. также: self::controlGroup
public static rangeFieldControlGroup ( string $name, string $value = '', array $htmlOptions = [] ) : string
$name string the input name
$value string the input value
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

resetButton() публичный статический Метод

Generates a reset button.
public static resetButton ( string $label = 'Reset', array $htmlOptions = [] ) : string
$label string the button label
$htmlOptions array additional HTML attributes.
Результат string the generated button.

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

Generates a search form.
public static searchForm ( mixed $action, string $method = 'post', array $htmlOptions = [] ) : string
$action mixed the form action URL.
$method string form method (e.g. post, get).
$htmlOptions array additional HTML options.
Результат string the generated form.

searchQueryControlGroup() публичный статический Метод

Generates a control group with a search field.
См. также: self::controlGroup
public static searchQueryControlGroup ( string $name, string $value = '', array $htmlOptions = [] ) : string
$name string the input name.
$value string
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

searchQueryField() публичный статический Метод

Generates a search input.
public static searchQueryField ( string $name, string $value = '', array $htmlOptions = [] ) : string
$name string the input name.
$value string the input value.
$htmlOptions array additional HTML attributes.
Результат string the generated input.

small() публичный статический Метод

Generates small text.
public static small ( string $text, array $htmlOptions = [] ) : string
$text string the text to style.
$htmlOptions array additional HTML attributes.
Результат string the generated text.

smallAbbr() публичный статический Метод

Generates a small abbreviation with a help text.
public static smallAbbr ( string $text, string $word, array $htmlOptions = [] ) : string
$text string the abbreviation.
$word string the word the abbreviation is for.
$htmlOptions array additional HTML attributes.
Результат string the generated abbreviation.

splitButtonDropdown() публичный статический Метод

Generates a button with a split dropdown menu.
public static splitButtonDropdown ( string $label, array $items, array $htmlOptions = [] ) : string
$label string the button label text.
$items array the menu items.
$htmlOptions array additional HTML attributes.
Результат string the generated button.

stackedPills() публичный статический Метод

Generates a stacked pills navigation.
public static stackedPills ( array $items, array $htmlOptions = [] ) : string
$items array the menu items.
$htmlOptions array additional HTML attributes.
Результат string the generated menu.

stackedProgressBar() публичный статический Метод

Generates a stacked progress bar.
public static stackedProgressBar ( array $bars, array $htmlOptions = [] ) : string
$bars array the bar configurations.
$htmlOptions array additional HTML attributes.
Результат string the generated progress bar.

stackedTabs() публичный статический Метод

Generates a stacked tab navigation.
Устаревший: Style does not exist in BS3
public static stackedTabs ( array $items, array $htmlOptions = [] ) : string
$items array the menu items.
$htmlOptions array additional HTML attributes.
Результат string the generated menu.

statefulFormTb() публичный статический Метод

Generates a stateful form tag.
public static statefulFormTb ( $layout = self::FORM_LAYOUT_VERTICAL, mixed $action = '', string $method = 'post', array $htmlOptions = [] ) : string
$action mixed the form action URL.
$method string form method (e.g. post, get).
$htmlOptions array additional HTML attributes.
Результат string the generated form tag.

stripedProgressBar() публичный статический Метод

Generates a striped progress bar.
public static stripedProgressBar ( integer $width, array $htmlOptions = [] ) : string
$width integer the progress in percent.
$htmlOptions array additional HTML attributes.
Результат string the generated progress bar.

submitButton() публичный статический Метод

Generates a submit button.
public static submitButton ( string $label = 'Submit', array $htmlOptions = [] ) : string
$label string the button label
$htmlOptions array additional HTML attributes.
Результат string the generated button.

switchColToOffset() защищенный статический Метод

Nearly identical to {@link switchOffsetCol()} except it forces the class to be returned as its offset counterpart. It is also safe to pass in a class that is already an offset and it will just re-return it. For example, passing in col-md-2 will return col-md-offset-2. Passing in col-md-offset-4 will still return col-md-offset-4.
protected static switchColToOffset ( string $class ) : string
$class string
Результат string

switchOffsetCol() защищенный статический Метод

Switches the column class to and from the col width itself to its offset counterpart. For example, passing in col-md-2 would be switched to col-md-offset-2
protected static switchOffsetCol ( string $class ) : string
$class string
Результат string

switchOffsetToCol() защищенный статический Метод

Nearly identical to {@link switchOffsetCol()} except it forces teh class to be returned as its column (e.g. "span") width counterpart. It is also safe to pass in a class that is already the column width and it will re-return it. For example, passing in col-md-offset-2 will return col-md-2. Passing in col-md-4 will still return col-md-4.
protected static switchOffsetToCol ( string $class ) : string
$class string
Результат string

tabbable() публичный статический Метод

Generates a tabbable menu.
public static tabbable ( string $type, array $tabs, array $htmlOptions = [] ) : string
$type string the menu type.
$tabs array the tab configurations.
$htmlOptions array additional HTML attributes.
Результат string the generated menu.

tabbablePills() публичный статический Метод

Generates a tabbable pills menu.
public static tabbablePills ( array $pills, array $htmlOptions = [] ) : string
$pills array the pills.
$htmlOptions array additional HTML attributes.
Результат string the generated menu.

tabbableTabs() публичный статический Метод

Generates a tabbable tabs menu.
public static tabbableTabs ( array $tabs, array $htmlOptions = [] ) : string
$tabs array the tab configurations.
$htmlOptions array additional HTML attributes.
Результат string the generated menu.

tabs() публичный статический Метод

Generates a tab navigation.
public static tabs ( array $items, array $htmlOptions = [] ) : string
$items array the menu items.
$htmlOptions array additional HTML attributes.
Результат string the generated menu.

tag() публичный статический Метод

Generates an HTML element.
public static tag ( string $tag, array $htmlOptions = [], mixed $content = false, boolean $closeTag = true ) : string
$tag string the tag name.
$htmlOptions array the element attributes.
$content mixed the content to be enclosed between open and close element tags.
$closeTag boolean whether to generate the close tag.
Результат string the generated HTML element tag.

textArea() публичный статический Метод

Generates a text area input.
public static textArea ( string $name, string $value = '', array $htmlOptions = [] ) : string
$name string the input name.
$value string the input value.
$htmlOptions array additional HTML attributes.
Результат string the generated text area.

textAreaControlGroup() публичный статический Метод

Generates a control group with a text area.
См. также: self::controlGroup
public static textAreaControlGroup ( string $name, string $value = '', array $htmlOptions = [] ) : string
$name string the input name.
$value string the input value.
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

textField() публичный статический Метод

Generates a text field input.
См. также: self::textInputField
public static textField ( string $name, string $value = '', array $htmlOptions = [] ) : string
$name string the input name.
$value string the input value.
$htmlOptions array additional HTML attributes.
Результат string the generated input field.

textFieldControlGroup() публичный статический Метод

Generates a control group with a text field.
См. также: self::controlGroup
public static textFieldControlGroup ( string $name, string $value = '', array $htmlOptions = [] ) : string
$name string the input name.
$value string the input value.
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

textInputField() защищенный статический Метод

This method generates an input HTML tag based on the given input name and value.
protected static textInputField ( string $type, string $name, string $value, array $htmlOptions ) : string
$type string the input type.
$name string the input name.
$value string the input value.
$htmlOptions array additional HTML attributes.
Результат string the generated input tag.

thumbnail() публичный статический Метод

Generates a thumbnail.
public static thumbnail ( string $content, array $htmlOptions = [] ) : string
$content string the thumbnail content.
$htmlOptions array additional HTML attributes.
Результат string the generated thumbnail.

thumbnails() публичный статический Метод

Generates a list of thumbnails.
public static thumbnails ( array $thumbnails, array $htmlOptions = [] ) : string
$thumbnails array the list configuration.
$htmlOptions array additional HTML attributes.
Результат string the generated thumbnails.

tooltip() публичный статический Метод

Generates a tooltip.
public static tooltip ( string $label, mixed $url, string $content, array $htmlOptions = [] ) : string
$label string the tooltip link label text.
$url mixed the link url.
$content string the tooltip content text.
$htmlOptions array additional HTML attributes.
Результат string the generated tooltip.

tooltipPopover() защищенный статический Метод

Generates a base tooltip.
protected static tooltipPopover ( string $label, mixed $url, string $title, array $htmlOptions ) : string
$label string the tooltip link label text.
$url mixed the link url.
$title string the tooltip title text.
$htmlOptions array additional HTML attributes.
Результат string the generated tooltip.

uneditableField() публичный статический Метод

Generates an uneditable input.
public static uneditableField ( string $value, array $htmlOptions = [] ) : string
$value string the value.
$htmlOptions array additional HTML attributes.
Результат string the generated input.

uneditableFieldControlGroup() публичный статический Метод

Generates a control group with an uneditable field.
См. также: self::controlGroup
public static uneditableFieldControlGroup ( string $value = '', array $htmlOptions = [] ) : string
$value string
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

urlField() публичный статический Метод

Generates an url field input.
См. также: self::textInputField
public static urlField ( string $name, string $value = '', array $htmlOptions = [] ) : string
$name string the input name.
$value string the input value.
$htmlOptions array additional HTML attributes.
Результат string the generated input field.

urlFieldControlGroup() публичный статический Метод

Generates a control group with an url field.
См. также: self::controlGroup
public static urlFieldControlGroup ( string $name, string $value = '', array $htmlOptions = [] ) : string
$name string the input name.
$value string the input value.
$htmlOptions array additional HTML attributes.
Результат string the generated control group.

verticalButtonGroup() публичный статический Метод

Generates a vertical button group.
public static verticalButtonGroup ( array $buttons, array $htmlOptions = [] ) : string
$buttons array the button configurations.
$htmlOptions array additional HTML options.
Результат string the generated button group.

well() публичный статический Метод

Generates a well element.
public static well ( string $content, array $htmlOptions = [] ) : string
$content string the well content.
$htmlOptions array additional HTML attributes.
Результат string the generated well.

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

$defaultFormControlWidthClass защищенное статическое свойство

todo: remove this.
protected static $defaultFormControlWidthClass

$defaultFormLabelWidthClass защищенное статическое свойство

todo: remove this.
protected static $defaultFormLabelWidthClass

$errorCss публичное статическое свойство

the CSS class for displaying error inputs
public static $errorCss

$errorSummaryCss публичное статическое свойство

the CSS class for displaying error summaries.
public static $errorSummaryCss

$iconVendor публичное статическое свойство

the icon vendor
public static $iconVendor