/** * Load the ACL to the Registry if is not there * * This function takes care about generating the acl from the db * if the info is not in the registry and/or cache. * * If the acl is inside the cache we load it from there. * * @return void */ public static function load() { if (!App_FlagFlippers_Manager::_checkIfExist()) { if (!($acl = App_FlagFlippers_Manager::_getFromCache())) { $acl = App_FlagFlippers_Manager::_generateFromDb(); App_FlagFlippers_Manager::_storeInCache($acl); } App_FlagFlippers_Manager::_storeInRegistry($acl); } }