function set_system_tabs($tabs) { $administration = new Administration(); $serialized = base64_encode(serialize($tabs)); $administration->saveSetting('MySettings', 'tab', $serialized); self::$isCacheValid = false; }
function set_system_tabs($tabs) { $administration = BeanFactory::getBean('Administration'); // TODO: encode in JSON rather than base64 $serialized = base64_encode(serialize($tabs)); $administration->saveSetting('MySettings', 'tab', $serialized); self::$isCacheValid = false; }