Task #0002125: Contact , devrait être refait sur le modèle de Fiche->résumé
This commit is contained in:
parent
42938d09c7
commit
8fdd7be647
12 changed files with 486 additions and 302 deletions
|
|
@ -241,6 +241,16 @@ abstract class Data_SQL
|
|||
return $array;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief turns a row fetched from the DB into a SQL object in updating all his attribute
|
||||
* @param $p_array
|
||||
* @return void
|
||||
*/
|
||||
public function to_row($p_array) {
|
||||
foreach ($this->name as $name) {
|
||||
$this->$name=$p_array[$name];
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @brief retrieve array of object thanks a condition
|
||||
* @param $cond condition (where clause) (optional by default all the rows are fetched)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue