本文整理汇总了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);
}
}