noalyss  Version-6.7.2
 All Data Structures Namespaces Files Functions Variables Enumerations
class_stock_sql.php
Go to the documentation of this file.
00001 <?php
00002 
00003 /*
00004  *   This file is part of NOALYSS.
00005  *
00006  *   NOALYSS is free software; you can redistribute it and/or modify
00007  *   it under the terms of the GNU General Public License as published by
00008  *   the Free Software Foundation; either version 2 of the License, or
00009  *   (at your option) any later version.
00010  *
00011  *   NOALYSS is distributed in the hope that it will be useful,
00012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *   GNU General Public License for more details.
00015  *
00016  *   You should have received a copy of the GNU General Public License
00017  *   along with NOALYSS; if not, write to the Free Software
00018  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  */
00020 
00021 // Copyright Author Dany De Bontridder danydb@aevalys.eu
00022 
00023 /**
00024  * @file
00025  * @brief
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 ?>
 All Data Structures Namespaces Files Functions Variables Enumerations