0){ $row=mysql_fetch_object($result); $this->_firstName=$row->nom; $this->_secondName=$row->prenom; $this->_address=$row->adresse; $this->_tel=$row->telephone; $this->_fax=$row->fax; $this->_site=$row->id_site; $this->_accessLevel=$accesslevel; $this->_id=$catid; /* TODO: remplir l'objet avec les valeurs de la BD */ } else { mysql_error($connexion); } mysql_close($connexion); } } } function getFirstName(){ return $this->_firstName; } function getSecondName(){ return $this->_secondName; } function getID(){ return $this->_id; } function getSite(){ return $this->_site; } function getAccessLevel(){ return $this->_accessLevel; } } } ?>