JQuery/View/Helper/AccordionContainer.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Category
ZendX  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
ZendX_JQuery  
Subpackage
View  
Version
$Id$  

\ZendX_JQuery_View_Helper_AccordionContainer

Package: ZendX_JQuery\View
jQuery Accordion View Helper
Parent(s)
\ZendX_JQuery_View_Helper_UiWidget < \Zend_View_Helper_HtmlElement
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Uses
 

Properties

>VPropertyprotectedstring $_elementHtmlTemplate = null
Default valuenullDetails
Type
string
>VPropertyprotectedarray $_panes = array()
Default valuearray()Details
Type
array

Methods

methodpublicaccordionContainer(string $id = null, array $params = array(), array $attribs = array()) : string | \ZendX_JQuery_View_Helper_AccordionContainer

Render Accordion with the currently registered elements.

If no arguments are given, the accordion object is returned so that chaining the {@link addPane()} function allows to register new elements for an accordion.
Parameters
NameTypeDescription
$idstring
$paramsarray
$attribsarray
Returns
TypeDescription
string | \ZendX_JQuery_View_Helper_AccordionContainer
Details
Link
http://docs.jquery.com/UI/Accordion  
methodpublicaddPane(string $id, string $name, string $content, array $options = array()) : \ZendX_JQuery_View_Helper_AccordionContainer

Add Accordion Pane for the Accordion-Id

Parameters
NameTypeDescription
$idstring
$namestring
$contentstring
$optionsarray
Returns
TypeDescription
\ZendX_JQuery_View_Helper_AccordionContainer
methodprotectedgetAccordionTemplate(array $attribs, string $html) : string

Parameters
NameTypeDescription
$attribsarray
$htmlstring
Returns
TypeDescription
string
methodprotectedgetElementHtmlTemplate() : string

Returns
TypeDescription
string
methodpublicsetElementHtmlTemplate(string $htmlTemplate) : \ZendX_JQuery_View_Helper_AccordionContainer

Set the accordion element template

Parameters
NameTypeDescription
$htmlTemplatestring
Returns
TypeDescription
\ZendX_JQuery_View_Helper_AccordionContainer
Throws
ExceptionDescription
\ZendX_JQuery_View_Exception
Documentation was generated by phpDocumentor 2.2.0 .