noalyss  Version-6.7.2
 All Data Structures Namespaces Files Functions Variables Enumerations
class_profile_sql.php
Go to the documentation of this file.
00001 <?php
00002 /*
00003  *   This file is part of NOALYSS.
00004  *
00005  *   NOALYSS is free software; you can redistribute it and/or modify
00006  *   it under the terms of the GNU General Public License as published by
00007  *   the Free Software Foundation; either version 2 of the License, or
00008  *   (at your option) any later version.
00009  *
00010  *   NOALYSS is distributed in the hope that it will be useful,
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *   GNU General Public License for more details.
00014  *
00015  *   You should have received a copy of the GNU General Public License
00016  *   along with NOALYSS; if not, write to the Free Software
00017  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018  */
00019 // Copyright Author Dany De Bontridder danydb@aevalys.eu
00020 
00021 /**
00022  * @file
00023  * @brief Manage the table public.profile
00024  *
00025  *
00026   Example
00027   @code
00028 
00029   @endcode
00030  */
00031 require_once('class_database.php');
00032 require_once('ac_common.php');
00033 require_once 'class_phpcompta_sql.php';
00034 
00035 /**
00036  * @brief Manage the table public.profile
00037  */
00038 class Profile_sql extends Phpcompta_SQL
00039 {
00040         /* example private $variable=array("easy_name"=>column_name,"email"=>"column_name_email","val3"=>0); */
00041 
00042         function __construct(& $p_cn, $p_id = -1)
00043         {
00044                 $this->table = "public.profile";
00045                 $this->primary_key = "p_id";
00046 
00047                 $this->name = array(
00048                         "p_id" => "p_id"
00049                         , "p_name" => "p_name"
00050                         , "p_desc" => "p_desc"
00051                         , "with_calc" => "with_calc"
00052                         , "with_direct_form" => "with_direct_form"
00053                 );
00054                 $this->type = array(
00055                         "p_id" => "numeric"
00056                         , "p_name" => "text"
00057                         , "p_desc" => "text"
00058                         , "with_calc" => "text"
00059                         , "with_direct_form" => "text"
00060                 );
00061                 $this->default = array(
00062                         "p_id" => "auto",
00063                 );
00064                 global $cn;
00065 
00066                 parent::__construct($cn,$p_id);
00067 
00068         }
00069 
00070 }
00071 
00072 // Profile_sql::test_me();
00073 ?>
 All Data Structures Namespaces Files Functions Variables Enumerations