Ejemplo n.º 1
0
 /**
  * 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);
 }
Ejemplo n.º 2
0
 /**
  * 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);
 }
Ejemplo n.º 3
0
 public function __construct($options = null)
 {
     parent::__construct('Admin_Form_File', 'File', $options);
 }
Ejemplo n.º 4
0
 /**
  * Konstruiert Unterformular fuer die Haupttitel eines Dokuments.
  */
 public function __construct()
 {
     parent::__construct('Admin_Form_Document_Title', 'TitleMain', new Application_Form_Validate_MultiSubForm_RepeatedLanguages());
 }