_db = $db; $this->_userGroup = $userGroupId; $this->getAcl(); } /** * */ private function getAcl() { $this->_db->query("SELECT * FROM system_usergroups WHERE guid = :groupId LIMIT 0,1"); $this->_db->bind(':groupId', $this->_userGroup); $this->_acl = $this->_db->single(); } /** * @param $value * @return string */ public function acl($value) { if(isset($this->_acl[$value])) { return $this->_acl[$value]; } else { return 'N/A'; } } }