28 require_once NOALYSS_INCLUDE.
'/database/class_noalyss_sql.php';
35 $this->
table =
"public.stock_goods";
36 $this->primary_key =
"sg_id";
37 $this->date_format=
"DD.MM.YYYY";
43 "sg_code" =>
"sg_code",
44 "sg_quantity" =>
"sg_quantity",
45 "sg_type" =>
"sg_type",
46 "sg_date" =>
"sg_date",
47 "sg_tech_date" =>
"sg_tech_date",
48 "sg_tech_user" =>
"sg_tech_user",
49 "sg_comment" =>
"sg_comment",
50 "sg_exercice" =>
"sg_exercice",
60 "sg_quantity" =>
"text",
63 "sg_tech_date" =>
"date",
64 "sg_tech_user" =>
"text",
65 "sg_comment" =>
"text",
66 "sg_exercice" =>
"sg_exercice",
72 $this->
default = array(
74 "sg_tech_date" =>
"auto",
79 parent::__construct($cn,
$p_id);
89 $this->date_format=
"DD.MM.YYYY";
90 $this->
table =
"public.stock_change";
91 $this->primary_key =
"c_id";
95 "c_comment" =>
"c_comment",
97 "tech_date"=>
"tech_date",
98 "tech_user"=>
"tech_user",
104 "c_comment" =>
"text",
111 $this->
default = array(
113 "tech_date" =>
"auto"
117 parent::__construct($cn,
$p_id);
__construct($cn, $p_id=-1)
Match a table into an object, you need to add the code for each table.
__construct($cn, $p_id=-1)