コード例 #1
0
ファイル: Parser.php プロジェクト: aleksabp/bolt
 /**
  * Start up the parser by importing the data file to $this->regexes
  *
  * @param array $regexes
  */
 public function __construct(array $regexes)
 {
     parent::__construct($regexes);
     $this->deviceParser = new DeviceParser($this->regexes);
     $this->operatingSystemParser = new OperatingSystemParser($this->regexes);
     $this->userAgentParser = new UserAgentParser($this->regexes);
 }
コード例 #2
0
 public function tearDown()
 {
     AbstractParser::$defaultFile = null;
 }