noalyss Version-9
profile_sql.class.php
Go to the documentation of this file.
1<?php
2/*
3 * This file is part of NOALYSS.
4 *
5 * NOALYSS is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * NOALYSS is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with NOALYSS; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19// Copyright Author Dany De Bontridder danydb@aevalys.eu
20
21/**
22 * @file
23 * @brief Manage the table public.profile
24 *
25 *
26 Example
27 @code
28
29 @endcode
30 */
31require_once NOALYSS_INCLUDE.'/lib/ac_common.php';
32
33/**
34 * @brief Manage the table public.profile
35 */
37{
38 /* example private $variable=array("easy_name"=>column_name,"email"=>"column_name_email","val3"=>0); */
39
40 function __construct(& $p_cn, $p_id = -1)
41 {
42 $this->table = "public.profile";
43 $this->primary_key = "p_id";
44
45 $this->name = array(
46 "p_id" => "p_id"
47 , "p_name" => "p_name"
48 , "p_desc" => "p_desc"
49 , "with_calc" => "with_calc"
50 , "with_direct_form" => "with_direct_form"
51 ,'with_search_card'=>'with_search_card'
52 );
53 $this->type = array(
54 "p_id" => "numeric"
55 , "p_name" => "text"
56 , "p_desc" => "text"
57 , "with_calc" => "text"
58 , "with_direct_form" => "text"
59 ,'with_search_card'=>"numeric"
60 );
61 $this->default = array(
62 "p_id" => "auto",
63 );
64
65 parent::__construct($p_cn,$p_id);
66
67 }
68
69}
70
71// Profile_sql::test_me();
72?>
$from_poste name
$input_from type
Definition: balance.inc.php:65
Manage the table public.profile.
__construct(& $p_cn, $p_id=-1)
Interface : this wrapper is used to created easily a wrapper to a table (ORM) You must create a class...
$all table