%PDF- %PDF-
Direktori : /home/alliance/domains/congress-intercultural.eu/public_html/inc/classes/ |
Current File : /home/alliance/domains/congress-intercultural.eu/public_html/inc/classes/Profil.php |
<?php class Profil extends Load { var $bd; var $language; function Profil($connection){ //constructor parent::Load(); $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; } } ?>