DataBase = $PDataBase; $this->Id = $pId; $cadena = "select perfil from #__comprofiler WHERE user_id = " . $this->Id; $this->DataBase->setQuery($cadena); $row = $this->DataBase->loadObjectList(); $this->Perfil = $row[0]->perfil; } function esTesorero() { return ($this->Perfil == $this->CONS_PERFIL_1); } function esDirectivo() { return ($this->Perfil == $this->CONS_PERFIL_2); } //function isAdmin() { if ($this->id >= "25") { //25 for Super Admin 24 For Administrators group return true; } else { return false; }} } ?>