Esempio n. 1
0
 public function flushCache()
 {
     if ($this->menuLinkID) {
         $menuLink = new MenuLink($this->menuLinkID);
         $menuLink->setElement('Page', $this);
         $menuLink->flushCache();
     }
 }
Esempio n. 2
0
 public function flushCache()
 {
     $menuLinkID = DB::query("SELECT `ID` FROM `" . MenuLink::TABLE . "` WHERE `URL`='/project'")->fetchFirstField();
     $menuLink = new MenuLink($menuLinkID);
     $menuLink->flushCache();
 }