protected function getAccessControlLists($type) { return array(AccessControlList::factory(AccessControlList::RULE_ACTION_ALLOW, AccessControlList::RULE_TYPE_EVERYONE, AccessControlList::RULE_VALUE_ALL)); }
/** * Returns an access control list based on a string * @param string Should be in format ACTION:RULE:VALUE * @return AccessControlList or false if the string is invalid */ public static function createFromString($aclString) { $values = explode(':', $aclString); if (count($values)==3) { return AccessControlList::factory($values[0], $values[1], $values[2]); } else { return false; } }