36 $this->
table=
"public.v_contact";
37 $this->primary_key=
"f_id";
38 $a_name=explode(
",",
"f_id,contact_fname,contact_name,contact_qcode,contact_company,contact_mobile,contact_phone,contact_email,contact_fax,card_category");
40 foreach ($a_name as $key) {
41 $this->
type[trim($key)]=
"text";
42 $this->
name[trim($key)]=$key;
44 $this->
type[
'f_id']=
"number";
45 $this->
type[
'card_category']=
"number";
47 parent::__construct($p_cn,
$p_id);
53 throw new Exception(
"not implemented");
58 throw new Exception(
"not implemented");
63 throw new Exception(
"not implemented");
68 $array=$this->
cn->get_row(
"select * from ".$this->
table.
" where f_id=$1",array($this->f_id));
69 if (empty (
$array) ) { $this->f_id=-1;
return false;}
76 throw new Exception(
"not implemented");
81 throw new Exception(
"not implemented");
86 throw new Exception(
"not implemented");
this an abstract class , all the SQL class, like noalyss_sql (table), Acc_Plan_SQL (based on a SQL no...
to_row($p_array)
turns a row fetched from the DB into a SQL object in updating all his attribute