00001 <?php 00026 require_once "UiWidgetPane.php"; 00027 00037 class ZendX_JQuery_View_Helper_AccordionPane extends ZendX_JQuery_View_Helper_UiWidgetPane 00038 { 00052 public function accordionPane($id=null, $content='', array $options=array()) 00053 { 00054 if(0 === func_num_args()) { 00055 return $this; 00056 } 00057 00058 $name = ''; 00059 if(isset($options['title'])) { 00060 $name = $options['title']; 00061 unset($options['title']); 00062 } 00063 00064 $this->_addPane($id, $name, $content, $options); 00065 return ''; 00066 } 00067 00076 protected function _addPane($id, $name, $content, array $options=array()) 00077 { 00078 $this->view->accordionContainer()->addPane($id, $name, $content, $options); 00079 } 00080 }