예제 #1
0
 public function __construct(\Zend_Form $subForm, $spec, $options = null, $tabcolumn = null, $active = null)
 {
     if (isset($options['tabcolumn'])) {
         $this->_decoratorOptions['tabcolumn'] = $options['tabcolumn'];
     }
     if (isset($options['active'])) {
         $this->_decoratorOptions['active'] = $options['active'];
     }
     if (isset($options['selectedTabElement'])) {
         $this->_decoratorOptions['selectedTabElement'] = $options['selectedTabElement'];
     }
     parent::__construct($subForm, $spec, $options);
 }
예제 #2
0
파일: Table.php 프로젝트: GemsTracker/MUtil
 /**
  * Constructor
  *
  * $spec may be:
  * - string: name of element
  * - array: options with which to configure element
  * - \Zend_Config: \Zend_Config with options for configuring element
  *
  * @param  string|array|\Zend_Config $spec
  * @param  array|\Zend_Config $options
  * @return void
  * @throws \Zend_Form_Exception if no element name after initialization
  */
 public function __construct($spec, $options = null)
 {
     parent::__construct($spec, $options);
     $this->addClass($this->_elementClass);
 }