. */ /* */ /*************************************************************************************/ require_once __DIR__ . "/../fonctions/autoload.php"; class Pays extends Baseobj{ public $id; public $lang; public $zone; public $defaut; public $tva; public $isocode; public $isoalpha2; public $isoalpha3; public $boutique; const TABLE="pays"; public $table=self::TABLE; public $bddvars=array("id", "lang", "zone", "defaut", "tva", "isocode", "isoalpha2", "isoalpha3", "boutique"); 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 charger_defaut(){ return $this->getVars("select * from $this->table where defaut<>0"); } } ?>