Exemplo n.º 1
0
 public function __construct($columns, $options = null)
 {
     if (!is_array($columns)) {
         throw new Application_Exception(__METHOD__ . ' Parameter \'columns\' must be array.');
     }
     $this->columns = $columns;
     parent::__construct($options);
 }
Exemplo n.º 2
0
 /**
  * Constructs form.
  * @param string $mode Selects between variations of the form.
  * @param null $options Zend_Form options
  */
 public function __construct($mode = 'advanced', $options = null)
 {
     $this->searchMode = $mode;
     parent::__construct($options);
 }
Exemplo n.º 3
0
 /**
  * Konstruiert Formular.
  *
  * @param string $modelClass Name der Modelklasse
  * @param array $options
  * @throws Application_Exception wenn $modelClass Parameer fehlt
  */
 public function __construct($modelClass, $options = null)
 {
     if (is_null($modelClass) || strlen(trim($modelClass)) === 0) {
         throw new Application_Exception(__CLASS__ . 'Attempt to construct without parameter "modelClass".');
     }
     $this->_modelClass = $modelClass;
     parent::__construct($options);
 }