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


PHP DevblocksPlatform::processRequest方法代碼示例

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


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

示例1: processRequest

 static function processRequest(DevblocksHttpRequest $request, $is_ajax = false)
 {
     /**
      * Override the 'update' URI since we can't count on the database 
      * being populated from XML beforehand when /update loads it.
      */
     if (!$is_ajax && isset($request->path[0]) && 0 == strcasecmp($request->path[0], 'update')) {
         if (null != ($update_controller = new FegUpdateController(null))) {
             $update_controller->handleRequest($request);
         }
     } else {
         // Hand it off to the platform
         DevblocksPlatform::processRequest($request, $is_ajax);
     }
 }
開發者ID:rmiddle,項目名稱:feg,代碼行數:15,代碼來源:Application.class.php

示例2: die

 * 
 * - Jeff Standen, Mike Fogg, Brenan Cavish, Darren Sugita, Dan Hildebrandt
 * 		and Joe Geck.
 *   WEBGROUP MEDIA LLC. - Developers of PortSensor
 */
if (version_compare(PHP_VERSION, "5.1.2", "<")) {
    die("This project requires PHP 5.1.2 or later.");
}
require getcwd() . '/framework.config.php';
require DEVBLOCKS_PATH . 'Devblocks.class.php';
// If this is our first run, redirect to the installer
if ('' == APP_DB_DRIVER || '' == APP_DB_HOST || '' == APP_DB_DATABASE || null == ($db = DevblocksPlatform::getDatabaseService()) || DevblocksPlatform::isDatabaseEmpty()) {
    header('Location: ' . dirname($_SERVER['PHP_SELF']) . '/install/index.php');
    // [TODO] change this to a meta redirect
    exit;
}
// [TODO] We could also put a temporary lock mode for upgrades here
require APP_PATH . '/api/Application.class.php';
// [JAS]: [TODO] Is an explicit init() really required?  No anonymous static blocks?
DevblocksPlatform::init();
// Request
$request = DevblocksPlatform::readRequest();
// Patches (if not on the patch page)
if (@0 != strcasecmp(@$request->path[0], "update") && !DevblocksPlatform::versionConsistencyCheck()) {
    DevblocksPlatform::redirect(new DevblocksHttpResponse(array('update', 'locked')));
}
//DevblocksPlatform::readPlugins();
$session = DevblocksPlatform::getSessionService();
// [JAS]: HTTP Request
DevblocksPlatform::processRequest($request);
exit;
開發者ID:sluther,項目名稱:portsensor,代碼行數:31,代碼來源:index.php


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