/** * Returns an instance of class (singleton pattern implementation). * * @return OW_Navigation */ public static function getInstance() { if (self::$classInstance === null) { self::$classInstance = new self(); } return self::$classInstance; }
/** * Returns global navigation object. * * @return OW_Navigation */ public static function getNavigation() { return OW_Navigation::getInstance(); }
/** * Deletes menu item. * * @param string $prefix * @param string $key */ public function deleteMenuItem($prefix, $key) { $this->navigation->deleteMenuItem($prefix, $key); }