Overview

Packages

  • Actions
  • Codegen
  • Controls
    • Base
  • DatabaseAdapters
  • Events
  • None
  • Sessions
  • Tests

Classes

  • QAccordionBase
  • QAccordionGen
  • QAutocompleteBase
  • QAutocompleteGen
  • QDatepickerBase
  • QDatepickerBoxBase
  • QDatepickerBoxGen
  • QDatepickerGen
  • QDialogBase
  • QDialogGen
  • QDraggableBase
  • QDraggableGen
  • QDroppableBase
  • QDroppableGen
  • QFieldset
  • QJqButtonBase
  • QJqButtonGen
  • QJqCheckBoxBase
  • QJqCheckBoxGen
  • QJqRadioButtonBase
  • QJqRadioButtonGen
  • QMenuBase
  • QMenuGen
  • QProgressbarBase
  • QProgressbarGen
  • QResizableBase
  • QResizableGen
  • QSelectableBase
  • QSelectableGen
  • QSelectMenu
  • QSelectMenuBase
  • QSelectMenuGen
  • QSliderBase
  • QSliderGen
  • QSortableBase
  • QSortableGen
  • QSpinnerBase
  • QSpinnerGen
  • QTabsBase
  • QTabsGen
  • QTextBoxBase
  • Overview
  • Package
  • Class

Class QAccordionBase

Implements the JQuery UI Accordion

An accordion is a series of panels, only one of which is shown at a time. Each panel has a trigger, and when the user clicks on the trigger, its corresponding panel is shown, and the others hidden.

The Accordion decends from QPanel. There are a number of ways to create an Accordion, but the basics are that you put a series of block level items inside the Accordion (like divs, or h1, QPanels, etc.) and it will automatically pick the first item as the header and the second item as the content that will be collapsed or expanded, and will repeat that until the end of the Accordion block.

If you want more control, you can assign a jQuery selector to the Header item and that selector will be used to find the headers within the Accordion. In this case, the next block level sibling to the header will be used as the content for that header. For example, to use all the items with class ItemHeader inside the Accordion panel as the headers for the accordion, do this:

$accordion->Header = '.ItemHeader';

To get or set the index of the item that is currently open, use the inherited

->Active

value.

The Accordion will generate a QChangeEvent when a new header is selected.

See the jQuery UI documentation for additional events, methods and options that may be useful.

QBaseClass
Extended by QHtmlAttributeManagerBase
Extended by QHtmlAttributeManager
Extended by QControlBase
Extended by QControl
Extended by QBlockControl
Extended by QPanel
Extended by QAccordionGen
Extended by QAccordionBase

Direct known subclasses

QAccordion
Package: Controls\Base
Link: http://jqueryui.com/accordion/
Located at includes/base_controls/QAccordionBase.class.php
Methods summary
protected null|string
# RenderChildren( boolean $blnDisplayOutput = true )

Rendered the children of this control

Rendered the children of this control

Parameters

$blnDisplayOutput
Send the output to client?

Returns

null|string

Overrides

QControlBase::RenderChildren()
public string
# GetEndScript( )

Returns the Javascript needed as the part of control's behavior

Returns the Javascript needed as the part of control's behavior

Returns

string
The control's JS

Overrides

QAccordionGen::GetEndScript()
protected mixed
# GetState( )

Returns the state data to restore later.

Returns the state data to restore later.

Returns

mixed

Overrides

QControlBase::GetState()
protected
# PutState( mixed $state )

Restore the state of the control.

Restore the state of the control.

Parameters

$state

Overrides

QControlBase::PutState()
public mixed|
# __set( string $strName, string $mixValue )

PHP __set magic method implementation

PHP __set magic method implementation

Parameters

$strName
Name of the property
$mixValue
Value of the property

Returns

mixed|

Throws

Exception|QInvalidCastException

Overrides

QAccordionGen::__set()
Methods inherited from QAccordionGen
Destroy(), Disable(), Enable(), GetJqSetupFunction(), GetModelConnectorParams(), Instance(), MakeJqOptions(), Option(), Option1(), Option2(), Option3(), Refresh(), __get()
Methods inherited from QBlockControl
AddControlToMove(), AddDropZone(), GetControlHtml(), GetInnerHtml(), ParsePostData(), RemoveAllControlsToMove(), RemoveAllDropZones(), RemoveControlToMove(), RemoveDropZone(), Validate()
Methods inherited from QControlBase
AddAction(), AddActionArray(), AddAttributeScript(), AddChildControl(), AddCssFile(), AddJavascriptFile(), AddPluginCssFile(), AddPluginJavascriptFile(), AddWrapperCssClass(), Blink(), EvaluateTemplate(), Focus(), ForgetState(), GetAllActions(), GetAttributes(), GetChildControl(), GetChildControls(), GetControlFromHierarchyByMethodName(), GetCustomAttribute(), GetCustomAttributes(), GetCustomStyle(), GetEndHtml(), GetForm(), GetJavaScriptForEvent(), GetJqControlId(), GetNonWrappedHtml(), GetStyleAttributes(), GetTemplatePath(), GetWrapperAttributes(), GetWrapperStyleAttributes(), GetWrapperStyler(), IsDescendantOf(), IsModified(), MakeCurrent(), MarkAsModified(), MarkAsRendered(), MarkAsWrapperModified(), ProcessActionParameters(), RemoveAllActions(), RemoveChildControl(), RemoveChildControls(), RemoveCustomAttribute(), RemoveCustomStyle(), RemoveWrapperCssClass(), Render(), RenderActionScripts(), RenderAjax(), RenderAttributeScripts(), RenderComment(), RenderCssStyles(), RenderExtensionRenderer(), RenderHelper(), RenderHtmlAttributes(), RenderOutput(), RenderWithError(), RenderWithName(), RenderWrappedOutput(), ResetFlags(), ResetOnPageStatus(), SetCustomAttribute(), SetCustomStyle(), SetFocus(), SetForm(), SetParentControl(), Sleep(), SleepHelper(), ValidateControlAndChildren(), ValidationReset(), VarExport(), Wakeup(), WakeupHelper(), Watch(), _CallActionMethod(), _ProcessActionParams(), _ReadState(), _WriteState(), __construct()
Methods inherited from QHtmlAttributeManagerBase
AddCssClass(), GetCssStyle(), GetDataAttribute(), GetHtmlAttribute(), GetHtmlAttributes(), HasCssClass(), HasCssStyle(), HasHtmlAttribute(), Override(), RemoveCssClass(), RemoveCssClassesByPrefix(), RemoveCssStyle(), RemoveDataAttribute(), RemoveHtmlAttribute(), RenderTag(), SetCssBoxValue(), SetCssClass(), SetCssStyle(), SetDataAttribute(), SetHtmlAttribute()
Methods inherited from QBaseClass
OverrideAttributes(), __call()
Constants inherited from QControlBase
CommentEnd, CommentStart
Properties summary
protected boolean $blnAutoRenderChildren

Should the children be rendered automatically?

Should the children be rendered automatically?

# true
Properties inherited from QAccordionGen
$blnCollapsible, $blnDisabled, $mixActive, $mixAnimate, $mixHeader, $mixIcons, $strEvent, $strHeightStyle, $strJavaScripts, $strStyleSheets
Properties inherited from QPanel
$blnHtmlEntities, $blnIsBlockElement, $strDefaultDisplayStyle, $strTagName
Properties inherited from QBlockControl
$blnDropTarget, $objDropsControlsArray, $objDropsGroupingsArray, $objIsDropZoneFor, $objMovesControlsArray, $strFormat, $strTemplate, $strText
Properties inherited from QControlBase
$blnActionsMustTerminate, $blnAutoRender, $blnDisplay, $blnMinimize, $blnModified, $blnOnPage, $blnRendered, $blnRendering, $blnRequired, $blnSaveState, $blnScriptsOnly, $blnUseWrapper, $blnVisible, $blnWrapLabel, $blnWrapperModified, $mixActionParameter, $mixCausesValidation, $objActionArray, $objChildControlArray, $objDraggable, $objDroppable, $objForm, $objLinkedNode, $objParentControl, $objResizable, $objWatcher, $objWrapperStyler, $strAttributeScripts, $strControlId, $strCssClass, $strCustomAttributeArray, $strCustomStyleArray, $strFormAttributes, $strHtmlAfter, $strHtmlBefore, $strInstructions, $strName, $strPreferredRenderMethod, $strRenderMethod, $strValidationError, $strWarning
Properties inherited from QHtmlAttributeManagerBase
$attributes, $styles
Magic properties inherited from QAccordionGen
$Active, $Animate, $Collapsible, $Disabled, $Event, $Header, $HeightStyle, $Icons
Magic properties inherited from QBlockControl
$AutoRenderChildren, $DropTarget, $Format, $HorizontalAlign, $HtmlEntities, $ResizeHandleDirection, $ResizeHandleMaximum, $ResizeHandleMinimum, $TagName, $Template, $Text, $VerticalAlign
Magic properties inherited from QControlBase
$ActionParameter, $ActionsMustTerminate, $AutoRender, $CausesValidation, $ControlId, $Form, $FormAttributes, $HtmlAfter, $HtmlBefore, $Instructions, $JavaScripts, $LinkedNode, $Minimize, $Modified, $Moveable, $Name, $OnPage, $ParentControl, $PreferredRenderMethod, $RenderMethod, $Rendered, $Rendering, $Required, $Resizable, $SaveState, $ScriptsOnly, $StyleSheets, $UseWrapper, $ValidationError, $Visible, $Warning, $WrapLabel, $WrapperCssClass, $WrapperModified
Magic properties inherited from QHtmlAttributeManagerBase
$AccessKey, $AltText, $BackColor, $BorderCollapse, $BorderColor, $BorderStyle, $BorderWidth, $CssClass, $Cursor, $Data, $Display, $DisplayStyle, $Enabled, $FontBold, $FontItalic, $FontNames, $FontOverline, $FontSize, $FontStrikeout, $FontUnderline, $ForeColor, $Height, $Left, $Margin, $NoWrap, $Opacity, $OrderedListType, $Overflow, $Padding, $Position, $ReadOnly, $TabIndex, $ToolTip, $Top, $UnorderedListStyle, $Width
API documentation generated by ApiGen