Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 require_once 'class_phpcompta_sql.php';
00029
00030 class Stock_Sql extends Phpcompta_SQL {
00031 function __construct($cn,$p_id=-1)
00032 {
00033 $this->table = "public.stock_repository";
00034 $this->primary_key = "r_id";
00035
00036 $this->name=array(
00037 "id"=>"r_id",
00038 "name"=>"r_name",
00039 "adress"=>"r_adress",
00040 "city"=>"r_city",
00041 "country"=>"r_country",
00042 "phone"=>"r_phone"
00043 );
00044
00045 $this->type = array(
00046 "r_id"=>"numeric",
00047 "r_name"=>"text",
00048 "r_adress"=>"text",
00049 "r_city"=>"text",
00050 "r_country"=>"text",
00051 "r_phone"=>"text"
00052
00053 );
00054
00055 $this->default = array(
00056 "r_id" => "auto",
00057 );
00058 global $cn;
00059
00060 parent::__construct($cn,$p_id);
00061 }
00062 }
00063 ?>