/** * Constructeur d'archiPersonne * * @param int $id ID * * @return void * */ public function __construct($id) { global $config; parent::__construct(); $resPerson = $config->connexionBdd->requete("SELECT * FROM `personne` WHERE idPersonne='" . mysql_real_escape_string($id) . "'"); foreach (mysql_fetch_object($resPerson) as $key => $value) { $this->{$key} = stripslashes($value); } }
function __construct() { parent::__construct(); //$this->microstart=microtime(true); }