. */ /* */ /*************************************************************************************/ require_once __DIR__ . "/../fonctions/autoload.php"; class Message extends Baseobj{ public $id; public $nom; public $protege; const TABLE="message"; public $table=self::TABLE; public $bddvars = array("id", "nom", "protege"); public function __construct($nom = ""){ parent::__construct(); if($nom != "") $this->charger($nom); } public function charger($nom){ return $this->getVars("select * from $this->table where nom=\"$nom\""); } public function delete(){ if (! empty($this->id)) { $this->delete_cascade('Messagedesc', 'message', $this->id); parent::delete(); } } } ?>