Task #0002125: Contact , devrait être refait sur le modèle de Fiche->résumé

This commit is contained in:
sparkyx 2022-09-14 16:27:53 +02:00
parent 42938d09c7
commit 8fdd7be647
12 changed files with 486 additions and 302 deletions

View file

@ -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)