noalyss
Version-6.7.2
|
fiche_def_ref, a fiche is owned by fiche_def which is owned by fiche_def_ref More...
Public Member Functions | |
__construct ($p_cn, $p_frd_id=-1) | |
Display () | |
Display data between tag. | |
Get () | |
Get the data with the p_code and complete the current object. | |
Input () | |
Input Data between tag. | |
LoadAll () | |
Load all the fiche_def_ref data and return an array of fiche_def_ref objects. | |
Save () | |
Store data into the database: update the record. | |
Data Fields | |
$attribut | |
$frd_class_base | |
$frd_id | |
$frd_text |
fiche_def_ref, a fiche is owned by fiche_def which is owned by fiche_def_ref
Definition at line 29 of file class_fiche_def_ref.php.
Fiche_Def_Ref::__construct | ( | $ | p_cn, |
$ | p_frd_id = -1 |
||
) |
Definition at line 37 of file class_fiche_def_ref.php.
References db.
{ $this->db=$p_cn; $this->frd_id=$p_frd_id; $this->attribut=array('frd_id','frd_text','frd_class_base'); }
Get the data with the p_code and complete the current object.
Definition at line 126 of file class_fiche_def_ref.php.
References $r, $Res, $sql, db, Database\fetch_array(), and Database\num_row().
Load all the fiche_def_ref data and return an array of fiche_def_ref objects.
Definition at line 50 of file class_fiche_def_ref.php.
References $all, $array, $idx, $Res, $row, $sql, $value, db, and Database\fetch_all().
{ $sql="select * from fiche_def_ref order by frd_id"; $Res=$this->db->exec_sql($sql); $all=Database::fetch_all($Res); if ( $Res == false ) return array(); $idx=0; $array=array(); foreach ($all as $row) { $o=new Fiche_Def_Ref($this->db); foreach ( $this->attribut as $value) { $o->$value=$row[$value]; } $array[$idx]=$o; $idx++; } return $array; }
Store data into the database: update the record.
Definition at line 112 of file class_fiche_def_ref.php.
Fiche_Def_Ref::$attribut |
array which containing list of attr
Definition at line 34 of file class_fiche_def_ref.php.
Fiche_Def_Ref::$frd_class_base |
fiche_def_ref.frd_class_base
Definition at line 33 of file class_fiche_def_ref.php.
Fiche_Def_Ref::$frd_id |
$frd_id fiche_def_ref.frd_id
Definition at line 31 of file class_fiche_def_ref.php.
Fiche_Def_Ref::$frd_text |
$frd_text fiche_def_ref.frd_tex
Definition at line 32 of file class_fiche_def_ref.php.