. */ /* */ /*************************************************************************************/ require_once __DIR__ . "/../fonctions/autoload.php"; class Caracteristique extends Baseobjclassable { public $id; public $affiche; public $classement; const TABLE = "caracteristique"; public $table = self::TABLE; public $bddvars = array( "id", "affiche", "classement"); public function __construct($id = 0) { parent::__construct(); if ($id > 0) $this->charger($id); } public function charger($id) { return $this->getVars("select * from $this->table where id=\"$id\""); } public function delete() { if (! empty($this->id)) { $this->delete_cascade('Caracteristiquedesc', 'caracteristique', $this->id); $this->delete_cascade('Caracdisp', 'caracteristique', $this->id); $this->delete_cascade('Rubcaracteristique', 'caracteristique', $this->id); parent::delete(); } } } ?>