Exemple #1
0
 /**
  * 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;
 }
Exemple #2
0
 /**
  * Returns global navigation object.
  *
  * @return OW_Navigation
  */
 public static function getNavigation()
 {
     return OW_Navigation::getInstance();
 }
Exemple #3
0
 /**
  * Deletes menu item.
  *
  * @param string $prefix
  * @param string $key
  */
 public function deleteMenuItem($prefix, $key)
 {
     $this->navigation->deleteMenuItem($prefix, $key);
 }