Свойство | Тип | Описание | |
---|---|---|---|
$_defaultConfig | |||
$current | |||
$helpers |
Свойство | Тип | Описание | |
---|---|---|---|
$_autoCloseOnCreate | |||
$_bodyId | |||
$_collapsible | |||
$_groupCount | * Protected attribute used to generate group ID. | ||
$_groupId | |||
$_groupInGroup | * Attribute set to true when in group. | ||
$_groupPanelCount | |||
$_groupPanelOpen | |||
$_headId | |||
$_lastPanelClosed | |||
$_panelCount | * Protected attributes used to generate ID for collapsible panels. |
Метод | Описание | |
---|---|---|
body ( array | string $info = null, array $options = [] ) | Create / Start the body. If $info is not null, it is used as the body content, otherwize start the body div. | |
create ( array | string $title = null, array $options = [] ) | Create a Twitter Bootstrap like panel. | |
end ( $title = null, array $options = [] ) | End a panel. If $title is not null, the PanelHelper::footer functions is called with $title and $options arguments. | |
endGroup ( ) | ||
footer ( string $text = null, array $options = [] ) | Create / Start the footer. If $buttons is specified as an associative arrays or as null, start the footer, otherwize create the footer with the specified text. | |
header ( array | string $info = null, array $options = [] ) | Create / Start the header. If $info is specified as a string, create and return the whole header, otherwize only open the header. | |
startGroup ( $options = [] ) |
Метод | Описание | |
---|---|---|
_cleanCurrent ( ) | ||
_createBody ( $text = null, $options = [] ) | ||
_createFooter ( $text = null, $options = [] ) | ||
_createHeader ( $title, $options = [], $titleOptions = [] ) | ||
_isAssociativeArray ( $array ) | ||
_isOpen ( ) : true | Return true if the current panel should be open (only for collapsible). |
protected _createHeader ( $title, $options = [], $titleOptions = [] ) |
protected _isOpen ( ) : true | ||
Результат | true | if the current panel should be open, false otherwize. |
public create ( array | string $title = null, array $options = [] ) | ||
$title | array | string | If array, works as $options, otherwize used as the panel title. |
$options | array | Options for the main div of the panel. Extra options (useless if $title not specified) : - no-body: Do not open the body after the create (default false) |
protected $_groupCount |
protected $_panelCount |