本文整理匯總了PHP中TPL::objApacheReqHeaders方法的典型用法代碼示例。如果您正苦於以下問題:PHP TPL::objApacheReqHeaders方法的具體用法?PHP TPL::objApacheReqHeaders怎麽用?PHP TPL::objApacheReqHeaders使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類TPL
的用法示例。
在下文中一共展示了TPL::objApacheReqHeaders方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getApacheRequestHeaders
/**
* Will memorize the browser request headers sent to the server, if PHP is an Apache module. This method is used by the core
* developers to determine the headers received from the client so they can automatically detect what the client supports and
* act accordingly;
*
* @return B Will store the Apache Request Headers (so they can be later checked)
* @author Catalin Z. Alexandru <catalin.zamfir@raphpframework.ro>
* @copyright Under the terms of the GNU General Public License v3
* @version $Id: 10_TPL.php 315 2009-10-11 07:11:31Z catalin.zamfir $
* @since Version 1.0
* @access private
* @static
* @final
*/
private static final function getApacheRequestHeaders()
{
if (self::$objApacheReqHeaders == NULL) {
// Determine if we're an APACHE module ...
if (function_exists('apache_request_headers')) {
// Get the Apache Client Request HDR ...
self::$objApacheReqHeaders = new A(apache_request_headers());
return new B(TRUE);
} else {
// Do return ...
return new B(FALSE);
}
} else {
// Do return ...
return new B(TRUE);
}
}