* $ua = new Browser_imode($_SERVER['HTTP_USER_AGENT']);
*
* @param string $input The user agent to match.
+ *
+ * @throws Horde_Browser_Exception
*/
public function __construct($input)
{
- $_error = 0;
$temp = explode('/', $input);
$this->_user_agent = $input;
$this->_extra = $matches[3];
if (!($this->_data[$this->_model])) {
- $_error = PEAR::raiseError('Unknown User Agent');
+ throw new Horde_Browser_Exception('Unknown User Agent');
}
}
<api>beta</api>
</stability>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL</license>
- <notes>* Remove Horde_Browser::escapeJSCode().
+ <notes>* Remove PEAR dependency.
+ * Remove Horde_Browser::escapeJSCode().
* Add Horde_Browser_Exception::.
* Initial Horde 4 package.</notes>
<contents>
<min>1.5.0</min>
</pearinstaller>
<package>
- <name>Util</name>
+ <name>Exception</name>
<channel>pear.horde.org</channel>
</package>
- </required>
- <optional>
<package>
- <name>PEAR</name>
- <channel>pear.php.net</channel>
+ <name>Util</name>
+ <channel>pear.horde.org</channel>
</package>
- </optional>
+ </required>
</dependencies>
<phprelease>
<filelist>