コード例 #1
0
 function add_form_field($info)
 {
     $this->DBG->enter_method();
     // check fieldtype
     if (!in_array($info['type'], $this->accepted_field_types)) {
         $this->DBG->leave_method($info['type'] . " wird nicht als Feldtyp akzeptiert! STOPP");
         debug_print_backtrace2();
         die("wrong fieldtype");
     }
     $this->add_field($info);
     //$this->form_row($info);
     $this->DBG->leave_method();
 }
コード例 #2
0
 function check_field($name)
 {
     // if not send, no check needed
     if ($this->form_was_send != true) {
         return true;
     }
     // 	// who calles you?
     echo __FILE__ . " in line " . __LINE__ . " was called by: <br>";
     debug_print_backtrace2();
     (array) ($f = $this->fieldlist[$name]);
     // should alway be ok
     print_r($f);
     // something needed?
     if (array_key_exists("need_or", $f)) {
         echo "<b>Needed as OR is: </b>" . $f["needed_or"];
     }
     switch ($f['type']) {
     }
 }