/** * Konstruiert ein Unterformular für Schlagwörter eines bestimmten Typs. * @param string $type Schlagworttyp (z.B. 'swd', 'psyndex' usw.) * @param mixed $options */ public function __construct($type, $options = null) { $this->__subjectType = $type; $validator = null; switch ($type) { case 'swd': $validator = new Form_Validate_MultiSubForm_RepeatedValues('Value', 'admin_document_error_repeated_subject'); break; default: $validator = new Form_Validate_MultiSubForm_RepeatedValues('Value', 'admin_document_error_repeated_subject', 'Language'); break; } parent::__construct(null, 'Subject', $validator, $options); }
/** * Konstruiert Unterformular fuer Personen in einer Rolle. * @param string $roleName * @param mixed $options */ public function __construct($roleName, $options = null) { $this->_roleName = $roleName; // __construct ruft init Funktion auf parent::__construct('Admin_Form_Document_Person', 'Person' . ucfirst($roleName), null, $options); }
public function __construct($options = null) { parent::__construct('Admin_Form_File', 'File', $options); }
/** * Konstruiert Unterformular fuer die Haupttitel eines Dokuments. */ public function __construct() { parent::__construct('Admin_Form_Document_Title', 'TitleMain', new Application_Form_Validate_MultiSubForm_RepeatedLanguages()); }