%PDF- %PDF-
Direktori : /home/alliance/domains/sedl.alnetis.fr/public_html/inc/classes/ |
Current File : /home/alliance/domains/sedl.alnetis.fr/public_html/inc/classes/Profil.php |
<?php class Profil extends Load { var $bd; var $language; var $nom_table="profil"; function __construct($connection) { parent::__construct(); $this->clef_primaire='id_'.$this->nom_table; $this->bd = new BaseOps($connection); $this->language = new Lang($connection); } function getCouleur($profil) { $query = "SELECT couleur FROM `profil` p WHERE id=".$profil; $result = $this->bd->select_array($query); return $result['couleur']; } function getLibelle($profil) { $query = "SELECT libelle FROM `profil_lang` p WHERE profil=".(int)$profil." AND lang=".$this->language->getlangid(); $result = $this->bd->select_array($query); return $result['libelle']; } function getProfils() { $query = "SELECT p.*,pl.libelle FROM `profil` p LEFT JOIN `profil_lang` pl ON p.id=pl.profil WHERE lang=".$this->language->getlangid(); $result = $this->bd->select_arrays($query); return $result; } } ?>