Esempio n. 1
0
 function set_system_tabs($tabs)
 {
     $administration = new Administration();
     $serialized = base64_encode(serialize($tabs));
     $administration->saveSetting('MySettings', 'tab', $serialized);
     self::$isCacheValid = false;
 }
Esempio n. 2
0
 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;
 }