當前位置: 首頁>>代碼示例>>PHP>>正文


PHP QApplication::InitializeRequestUri方法代碼示例

本文整理匯總了PHP中QApplication::InitializeRequestUri方法的典型用法代碼示例。如果您正苦於以下問題:PHP QApplication::InitializeRequestUri方法的具體用法?PHP QApplication::InitializeRequestUri怎麽用?PHP QApplication::InitializeRequestUri使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在QApplication的用法示例。


在下文中一共展示了QApplication::InitializeRequestUri方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: Initialize

 /**
  * This should be the first call to initialize all the static variables
  * The application object also has static methods that are miscellaneous web
  * development utilities, etc.
  * 
  * It also will make a call to InitializeDatabaseConnections()
  *
  * @return void
  */
 public static function Initialize()
 {
     // Basic Initailization Routines
     QApplication::InitializeEnvironment();
     QApplication::InitializeScriptInfo();
     // Next, Initialize PHP AutoLoad Functionality
     spl_autoload_extensions('.php,.inc,.class.php');
     spl_autoload_register(array('QApplication', 'Autoload'));
     // Perform Initialization for CLI
     if (QApplication::$CliMode) {
         QCli::InitializeForCli();
     } else {
         QApplication::InitializeErrorHandling();
         QApplication::InitializeOutputBuffering();
         QApplication::InitializeServerAddress();
         QApplication::InitializeRequestUri();
         QApplication::InitializeServerSignature();
         QApplication::InitializePhpSession();
     }
     // Next, Initialize the Database Connections
     QApplication::InitializeDatabaseConnections();
     // Finally, go through any other auto_includes that this application requires
     QApplication::InitializeAutoIncludes();
 }
開發者ID:klucznik,項目名稱:qcodo,代碼行數:33,代碼來源:QApplicationBase.class.php

示例2: Initialize

 /**
  * This should be the first call to initialize all the static variables
  * The application object also has static methods that are miscellaneous web
  * development utilities, etc.
  * 
  * It also will make a call to InitializeDatabaseConnections()
  *
  * @return void
  */
 public static function Initialize()
 {
     // Basic Initailization Routines
     QApplication::InitializeEnvironment();
     QApplication::InitializeScriptInfo();
     QApplication::InitializeErrorHandling();
     // Perform Initialization for CLI
     if (QApplication::$CliMode) {
         QApplication::InitializeForCli();
         // *OR* Perform Initializations for WebApp
     } else {
         QApplication::InitializeOutputBuffering();
         QApplication::InitializeServerAddress();
         QApplication::InitializeRequestUri();
         QApplication::InitializeBrowserType();
         QApplication::InitializeServerSignature();
         QApplication::InitializePhpSession();
     }
     // Next, Initialize PHP AutoLoad Functionality
     QApplication::InitializeAutoload();
     // Next, Initialize the Database Connections
     QApplication::InitializeDatabaseConnections();
     // Then Preload all required "Prepload" Class Files
     foreach (QApplication::$PreloadedClassFile as $strClassFile) {
         require $strClassFile;
     }
     // Finally, go through any other auto_includes that this application requires
     QApplication::InitializeAutoIncludes();
 }
開發者ID:alcf,項目名稱:chms,代碼行數:38,代碼來源:QApplicationBase.class.php

示例3: Initialize

 /**
  * This should be the first call to initialize all the static variables
  * The application object also has static methods that are miscellaneous web
  * development utilities, etc.
  * 
  * It also will make a call to InitializeDatabaseConnections()
  *
  * @return void
  */
 public static function Initialize()
 {
     // Basic Initailization Routines
     QApplication::InitializeCliMode();
     QApplication::InitializeErrorHandling();
     QApplication::InitializeServerAddress();
     QApplication::InitializeScriptInfo();
     QApplication::InitializeRequestUri();
     QApplication::InitializeBrowserType();
     // Preload all required "Prepload" Class Files
     foreach (QApplication::$PreloadedClassFile as $strClassFile) {
         require $strClassFile;
     }
     // Perform initialize routine for CLI calls (if applicable)
     if (QApplication::$CliMode) {
         QApplication::InitializeForCli();
     }
     // Finally, Initialize the Database Connections
     QApplication::InitializeDatabaseConnections();
 }
開發者ID:kmcelhinney,項目名稱:qcodo,代碼行數:29,代碼來源:QApplicationBase.class.php


注:本文中的QApplication::InitializeRequestUri方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。