. */ /* */ /*************************************************************************************/ require_once __DIR__ . "/../fonctions/autoload.php"; class Raison extends Baseobj{ var $id; var $defaut; var $classement; const TABLE="raison"; var $table=self::TABLE; var $bddvars = array("id", "defaut", "classement"); function __construct($id = 0){ parent::__construct(); if($id > 0) $this->charger($id); } function charger($id){ return $this->getVars("select * from $this->table where id=\"$id\""); } } ?>