本文整理匯總了PHP中ezcWebdavServer::handle方法的典型用法代碼示例。如果您正苦於以下問題:PHP ezcWebdavServer::handle方法的具體用法?PHP ezcWebdavServer::handle怎麽用?PHP ezcWebdavServer::handle使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ezcWebdavServer
的用法示例。
在下文中一共展示了ezcWebdavServer::handle方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: performTestSetRun
protected function performTestSetRun(array $request)
{
ezcWebdavTestTransportInjector::reset();
ezcWebdavTestTransportInjector::$requestBody = $request['body'];
$_SERVER = $request['server'];
// ini_set( 'xdebug.collect_return', 1 );
// xdebug_start_trace( './traces/' . basename( $testSetName ) );
$this->server->handle($this->backend);
// xdebug_stop_trace();
$response['status'] = ezcWebdavTestTransportInjector::$responseStatus;
$response['headers'] = ezcWebdavTestTransportInjector::$responseHeaders;
$response['body'] = ezcWebdavTestTransportInjector::$responseBody;
return $response;
}
示例2: performTestSetRun
protected function performTestSetRun(array $request)
{
$GLOBALS['EZC_WEBDAV_TRANSPORT_TEST_BODY'] = $request['body'];
$_SERVER = $request['server'];
// ini_set( 'xdebug.collect_return', 1 );
// xdebug_start_trace( './traces/' . basename( $testSetName ) );
$this->server->handle($this->backend);
// xdebug_stop_trace();
$response['body'] = $GLOBALS['EZC_WEBDAV_TRANSPORT_TEST_RESPONSE_BODY'];
$response['headers'] = $GLOBALS['EZC_WEBDAV_TRANSPORT_TEST_RESPONSE_HEADERS'];
$response['status'] = $GLOBALS['EZC_WEBDAV_TRANSPORT_TEST_RESPONSE_STATUS'];
// Reset globals
unset($GLOBALS['EZC_WEBDAV_TRANSPORT_TEST_BODY']);
unset($GLOBALS['EZC_WEBDAV_TRANSPORT_TEST_RESPONSE_BODY']);
unset($GLOBALS['EZC_WEBDAV_TRANSPORT_TEST_RESPONSE_HEADERS']);
unset($GLOBALS['EZC_WEBDAV_TRANSPORT_TEST_RESPONSE_STATUS']);
return $response;
}
示例3: run
/**
* Runs the server.
*
* @return void
*/
public function run()
{
$GLOBALS['EZC_WEBDAV_ERROR'] = array();
set_error_handler(array($this, 'handleErrors'));
try {
$this->server->handle($this->backend);
} catch (Exception $e) {
$this->exceptions[] = $e;
}
restore_error_handler();
}