git-svn-id: http://xe-core.googlecode.com/svn/trunk@903 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-04-02 09:17:33 +00:00
parent a620eaf236
commit 4d3d4ed9ad
3 changed files with 22 additions and 10 deletions

View file

@ -325,7 +325,21 @@
/**
* @brief request method가 어떤것인지 판단하여 저장 (GET/POST/XMLRPC)
**/
function _setRequestMethod() {
function setRequestMethod($type) {
$oContext = &Context::getInstance();
$oContext->_setRequestMethod($type);
}
/**
* @brief request method가 어떤것인지 판단하여 저장 (GET/POST/XMLRPC)
**/
function _setRequestMethod($type = '') {
if($type) {
$this->request_method = $type;
return;
}
if($GLOBALS['HTTP_RAW_POST_DATA']) $this->request_method = "XMLRPC";
else $this->request_method = $_SERVER['REQUEST_METHOD'];
}