Esempio n. 1
0
 /**
  * Retrieves the access control lists 
  * @param string $type the type of acl to evaluate (see AccessControlList::RULE_TYPE_*)
  * @return array of access control list objects
  */
 protected function getAccessControlLists($type)
 {
     $allACLS = array_merge(Kurogo::getSiteAccessControlLists(), $this->getModuleAccessControlLists());
     $acls = array();
     foreach ($allACLS as $acl) {
         if ($acl->getType() == $type) {
             $acls[] = $acl;
         }
     }
     return $acls;
 }