예제 #1
0
 /**
  * Konstruiert Formular zum Ändern der Rolle einer Person.
  * 
  * @param string $role Name der aktuellen Rolle
  * @param mixed $options
  */
 public function __construct($role = null, $options = null)
 {
     if (!is_null($role) && isset($this->_personRoles[$role])) {
         unset($this->_personRoles[$role]);
     }
     parent::__construct($options);
 }
예제 #2
0
 /**
  * Konstruiert Formular.
  * @param string $position Parameter für besondere Position, z.B. erste oder letzte Stelle
  * @param mixed $options
  */
 public function __construct($position = null, $options = null)
 {
     $this->_position = $position;
     parent::__construct($options);
 }
예제 #3
0
 public function __construct($parentForm = null, $options = null)
 {
     parent::__construct($options);
     $this->_parentForm = $parentForm;
 }
예제 #4
0
 /**
  * Konstruiert Instanz von Fomular.
  *
  * @param string $subFormClass Name der Klasse für Unterformulare
  * @param string $fieldName Name des Opus_Document Feldes, dass angezeigt werden soll
  * @param string $validator Object für Validierungen über Unterformulare hinweg
  * @param multi $options
  */
 public function __construct($subFormClass, $fieldName, $validator = null, $options = null)
 {
     $this->_subFormClass = $subFormClass;
     $this->_fieldName = $fieldName;
     if (is_null($validator) || $validator instanceof Application_Form_Validate_IMultiSubForm) {
         $this->_subformValidator = $validator;
     } else {
         throw new Application_Exception('Fehler beim Instanzieren von ' . __CLASS__ . '. Validator ist keine Instanz von Application_Form_Validate_IMultiSubForm.');
     }
     parent::__construct($options);
 }