Exemplo n.º 1
0
 /**
  * Returns an instance of the RISMatcher singleton
  * @return WURFL_Handlers_RISMatcher
  */
 public static function INSTANCE()
 {
     if (self::$instance === null) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Exemplo n.º 2
0
 /** 
  * Alias of WURFL_Handlers_Matcher_RISMatcher::match()
  * @param array $collection
  * @param string $needle
  * @param int $tolerance
  * @return string Matched user agent
  * @see WURFL_Handlers_Matcher_RISMatcher::match()
  */
 public static function risMatch($collection, $needle, $tolerance)
 {
     return WURFL_Handlers_Matcher_RISMatcher::INSTANCE()->match($collection, $needle, $tolerance);
 }
Exemplo n.º 3
0
 protected function setUp()
 {
     $this->risMatcher = WURFL_Handlers_Matcher_RISMatcher::INSTANCE();
 }