コード例 #1
0
ファイル: navigation_service.php プロジェクト: ZyXelP/oxwall
 /**
  * Returns an instance of class (singleton pattern implementation).
  *
  * @return UPDATE_NavigationService
  */
 public static function getInstance()
 {
     if (self::$classInstance === null) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
コード例 #2
0
ファイル: updater.php プロジェクト: ZyXelP/oxwall
 /**
  * @return UPDATE_NavigationService
  */
 public static function getNavigationService()
 {
     return UPDATE_NavigationService::getInstance();
 }