예제 #1
0
 function from_array($p_array)
 {
     $this->id = isset($p_array['fr_id']) ? $p_array['fr_id'] : 0;
     $this->name = isset($p_array['form_nom']) ? $p_array['form_nom'] : "";
     $ix = 0;
     $rr = new Acc_Report_Row();
     $rr->set_parameter("form_id", $this->id);
     $rr->set_parameter('database', $this->db);
     $this->aAcc_Report_row = $rr->from_array($p_array);
 }
예제 #2
0
 static function test_me()
 {
     $cn = new Database(dossier::id());
     $a = new Acc_Report_Row();
     $array = array("text0" => "test1", "form0" => "7%", "text1" => "test2", "form1" => "6%");
     $a->db = $cn;
     $b = $a->from_array($array);
     print_r($b);
     echo $a->get_info();
 }