public function parse() { if (!$this->preMatchOverall()) { return false; } return parent::parse(); }
/** * Parses the current UA and checks whether it contains HbbTv information * * @see televisions.yml for list of detected televisions */ public function parse() { // only parse user agents containing hbbtv fragment if (!$this->isHbbTv()) { return false; } parent::parse(); // always set device type to tv, even if no model/brand could be found $this->deviceType = self::DEVICE_TYPE_TV; return true; }