コード例 #1
0
ファイル: 10_TPL.php プロジェクト: ajbm6/raphpframework
 /**
  * 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 <*****@*****.**>
  * @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);
     }
 }