40 $this->frd_id=$p_frd_id;
41 $this->attribut=array(
'frd_id',
'frd_text',
'frd_class_base');
52 $sql=
"select * from fiche_def_ref order by frd_id";
55 if (
$Res ==
false )
return array();
62 foreach ( $this->attribut as
$value)
80 foreach ( $this->attribut as
$value)
82 $r.=
"<TD>".$this->$value.
'</TD>';
96 $r.=
'<li>Id :'.$h->input(
'frd_id',$this->frd_id).$this->frd_id.
"</li>";
98 $r.=
'<li>'._(
'Commentaire ').
' :'.
$w->input(
'frd_text',$this->frd_text).
"</li>";
100 $r.=
'<li>'._(
'Poste de base').
':'.$t->input(
'frd_class_base',$this->frd_class_base).
"</li>";
114 $sql=
"update fiche_def_ref set frd_text=$1 ".
115 " , frd_class_base=$2 ".
117 $Res=$this->
db->exec_sql(
$sql,array($this->frd_text,$this->frd_class_base,$this->frd_id));
128 $sql=
"select * from fiche_def_ref ".
129 " where frd_id=".$this->frd_id;
133 $this->frd_text=
$r[
'frd_text'];
134 $this->frd_class_base=
$r[
'frd_class_base'];
144 $result = $this->
db->get_array(
'select fd_id from fiche_def where frd_id=$1', array($p_modele));
145 for ($i = 0; $i < count(
$result); $i++)
static fetch_all($ret)
wrapper for the function pg_fetch_all
get_by_modele($p_modele)
get category of cards by model
static num_row($ret)
wrapper for the function pg_NumRows
Input()
Input Data between tag.
foreach($array as $idx=> $m) $w
Display()
Display data between tag.
static fetch_array($ret, $p_indice=0)
wrapper for the function pg_fetch_array
LoadAll()
Load all the fiche_def_ref data and return an array of fiche_def_ref objects.
__construct($p_cn, $p_frd_id=-1)
fiche_def_ref, a fiche is owned by fiche_def which is owned by fiche_def_ref
Save()
Store data into the database: update the record.
Get()
Get the data with the p_code and complete the current object.