. */ /* */ /*************************************************************************************/ require_once __DIR__ . "/../fonctions/autoload.php"; class Contenuassoc extends Baseobjclassable { public $id; public $objet; public $type; public $contenu; public $classement; const TABLE="contenuassoc"; public $table=self::TABLE; public $bddvars=array("id", "objet", "type", "contenu", "classement"); public function __construct($id = 0){ parent::__construct("produit"); if($id > 0) $this->charger($id); } public function charger($id){ return $this->getVars("select * from $this->table where id=\"$id\""); } public function existe($objet, $type, $contenu){ return $this->getVars("select * from $this->table where objet=\"$objet\" and type=\"$type\" and contenu=\"$contenu\""); } } ?>