Пример #1
0
 /**
  * Sets the FilePath to the phpAgentSniffer plugin we use with RA to detect what kind of browser and what features are activated
  * for that browser so we can determine a couple of things like: what CSS to feed, what features to enable if we can have JS or
  * must we relly on degradeable code. To determine such things we use this external PLUGIN to detect such properties;
  *
  * @param FilePath $pathToUserAgentSniffer Set the path to the user agent sniffer plugin
  * @return B Will return true if the path was set
  * @author Catalin Z. Alexandru <*****@*****.**>
  * @copyright Under the terms of the GNU General Public License v3
  * @version $Id: 02_LOG.php 313 2009-10-09 13:27:52Z catalin.zamfir $
  * @since Version 1.0
  * @access protected
  * @static
  * @final
  */
 protected static final function setRAUserAgentSniffer(FilePath $pathToUserAgentSniffer)
 {
     // Just set the INTERNAL objPHPUserAgentSniffer ...
     if (self::$objPHPUserAgentSniffer = $pathToUserAgentSniffer) {
         // Do return ...
         return new B(TRUE);
     } else {
         // Do return ...
         return new B(FALSE);
     }
 }