noalyss  Version-6.7.2
 All Data Structures Namespaces Files Functions Variables Enumerations
class_profile_menu_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 // Copyright Author Dany De Bontridder danydb@aevalys.eu
00021 /**
00022  * @file
00023  * @brief Manage the table public.profile_menu
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_noalyss_sql.php';
00034 
00035 /**
00036  * @brief Manage the table public.profile_menu
00037  */
00038 class Profile_Menu_sql extends Noalyss_SQL
00039 {
00040 
00041     function __construct(&$p_cn,$p_id=-1)
00042     {
00043         $this->table="public.profile_menu";
00044         $this->primary_key="pm_id";
00045 
00046         $this->name=array(
00047             "pm_id"=>"pm_id", "me_code"=>"me_code"
00048             , "me_code_dep"=>"me_code_dep"
00049             , "p_id"=>"p_id"
00050             , "p_order"=>"p_order"
00051             , "p_type_display"=>"p_type_display"
00052             , "pm_default"=>"pm_default"
00053         );
00054 
00055         $this->type=array(
00056             "pm_id"=>"number",
00057             "me_code"=>"text"
00058             , "me_code_dep"=>"text"
00059             , "p_id"=>"number"
00060             , "p_order"=>"number"
00061             , "p_type_display"=>"text"
00062             , "pm_default"=>"text"
00063         );
00064 
00065         $this->default=array(
00066             "pm_id"=>"auto"
00067         );
00068 
00069         parent::__construct($p_cn, $p_id);
00070     }
00071 
00072 }
00073 
00074 ?>
 All Data Structures Namespaces Files Functions Variables Enumerations