Ejemplo n.º 1
0
 function getAllCache()
 {
     $cache = iCache::sysCache();
     $this->menu_array = $cache->get('iCMS/iMenu/menu_array');
     $this->root_array = $cache->get('iCMS/iMenu/root_array');
     $this->child_array = $cache->get('iCMS/iMenu/child_array');
     $this->parent = $cache->get('iCMS/iMenu/parent');
     $this->menu_uri = $cache->get('iCMS/iMenu/menu_uri');
     // iCache::destroy();
 }
Ejemplo n.º 2
0
 function __construct()
 {
     iCache::sysCache();
     $this->menu_array = iCache::get('iCMS/iMenu/menu_array');
     $this->root_array = iCache::get('iCMS/iMenu/root_array');
     $this->child_array = iCache::get('iCMS/iMenu/child_array');
     $this->parent = iCache::get('iCMS/iMenu/parent');
     $this->menu_uri = iCache::get('iCMS/iMenu/menu_uri');
     $app = $_GET['app'] ? $_GET['app'] : 'home';
     $this->app_uri = $this->menu_uri[$app];
     $this->do_uri = $app;
     $_GET['appid'] && ($this->do_uri .= '&appid=' . (int) $_GET['appid']);
     $_GET['do'] && ($this->do_uri .= '&do=' . $_GET['do']);
     $_GET['tab'] && ($this->do_uri .= '&tab=' . $_GET['tab']);
     $this->do_mid = $this->app_uri[$this->do_uri];
     $this->do_mid or $this->do_mid = $this->app_uri[$app];
     $this->do_mid or $this->do_mid = $this->app_uri['#'];
     $this->rootid = $this->rootid($this->do_mid);
     $this->parentid = $this->parent[$this->do_mid];
     $this->menu_array or $this->cache();
 }