コード例 #1
0
ファイル: feedback.php プロジェクト: vBulleteen/oxwall
 /**
  * Returns an instance of class (singleton pattern implementation).
  *
  * @return OW_Feedback
  */
 public static function getInstance()
 {
     if (self::$classInstance === null) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
コード例 #2
0
ファイル: themes.php プロジェクト: ZyXelP/oxwall
 private function getThemeDtoByKeyInParamsArray($params)
 {
     if (!empty($params["key"])) {
         $themeDto = $this->themeService->findThemeByKey(trim($params["key"]));
     }
     if (!empty($themeDto)) {
         return $themeDto;
     }
     $this->feedback->error(OW::getLanguage()->text("admin", "manage_themes_theme_not_found"));
     $this->redirect(OW::getRouter()->urlForRoute("admin_themes_choose"));
 }
コード例 #3
0
ファイル: ow.php プロジェクト: hardikamutech/hammu
 /**
  * Returns global feedback object.
  *
  * @return OW_Feedback
  */
 public static function getFeedback()
 {
     return OW_Feedback::getInstance();
 }