本文整理汇总了PHP中WebserviceRequest::ws_current_classname方法的典型用法代码示例。如果您正苦于以下问题:PHP WebserviceRequest::ws_current_classname方法的具体用法?PHP WebserviceRequest::ws_current_classname怎么用?PHP WebserviceRequest::ws_current_classname使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WebserviceRequest
的用法示例。
在下文中一共展示了WebserviceRequest::ws_current_classname方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: while
while ($putData = fread($putresource, 1024)) {
$input_xml .= $putData;
}
fclose($putresource);
}
}
$params = $_GET;
unset($params['url']);
$class_name = WebserviceKey::getClassFromKey($key);
$bad_class_name = false;
if (!class_exists($class_name)) {
$class_name = 'WebserviceRequest';
$bad_class_name = true;
}
// fetch the request
WebserviceRequest::$ws_current_classname = $class_name;
$request = call_user_func(array($class_name, 'getInstance'));
$result = $request->fetch($key, $method, $_GET['url'], $params, $bad_class_name, $input_xml);
// display result
if (ob_get_length() != 0) {
header('Content-Type: application/javascript');
}
// Useful for debug...
// Manage cache
if (isset($_SERVER['HTTP_LOCAL_CONTENT_SHA1']) && $_SERVER['HTTP_LOCAL_CONTENT_SHA1'] == $result['content_sha1']) {
$result['status'] = $_SERVER['SERVER_PROTOCOL'] . ' 304 Not Modified';
}
foreach ($result['headers'] as $param_value) {
header($param_value);
}
if (isset($result['type'])) {