예제 #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;
 }
예제 #2
0
파일: ow.php 프로젝트: hardikamutech/hammu
 /**
  * Returns global navigation object.
  *
  * @return OW_Navigation
  */
 public static function getNavigation()
 {
     return OW_Navigation::getInstance();
 }
예제 #3
0
 /**
  * Deletes menu item.
  *
  * @param string $prefix
  * @param string $key
  */
 public function deleteMenuItem($prefix, $key)
 {
     $this->navigation->deleteMenuItem($prefix, $key);
 }