* @copyright 2003-2007 KUBO Atsuhiro * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version CVS: $Id$ * @see Net_UserAgent_Mobile_Common * @since File available since Release 0.1.0 */ require_once(dirname(__FILE__) . '/Common.php'); require_once(dirname(__FILE__) . '/Display.php'); // {{{ Net_UserAgent_Mobile_NonMobile /** * Non-Mobile Agent implementation * * Net_UserAgent_Mobile_NonMobile is a subclass of * {@link Net_UserAgent_Mobile_Common}, which implements non-mobile or * unimplemented user agents. * * SYNOPSIS: * * require_once 'Net/UserAgent/Mobile.php'; * * $_SERVER['HTTP_USER_AGENT'] = 'Mozilla/4.0'; * $agent = &Net_UserAgent_Mobile::factory(); * * * @category Networking * @package Net_UserAgent_Mobile * @author KUBO Atsuhiro * @copyright 2003-2007 KUBO Atsuhiro * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: 0.30.0 * @see Net_UserAgent_Mobile_Common * @since Class available since Release 0.1.0 */ class Net_UserAgent_Mobile_NonMobile extends Net_UserAgent_Mobile_Common { // {{{ properties /**#@+ * @access public */ /**#@-*/ /**#@+ * @access private */ /**#@-*/ /**#@+ * @access public */ // }}} // {{{ isNonMobile() /** * returns true * * @return boolean */ function isNonMobile() { return true; } // }}} // {{{ parse() /** * parse HTTP_USER_AGENT string */ function parse() { @list($this->name, $this->version) = explode('/', $this->getUserAgent()); } // }}} // {{{ makeDisplay() /** * create a new {@link Net_UserAgent_Mobile_Display} class instance * * @return object a newly created {@link Net_UserAgent_Mobile_Display} * object * @see Net_UserAgent_Mobile_Display */ function makeDisplay() { return new Net_UserAgent_Mobile_Display(null); } // }}} // {{{ getModel() /** * returns name of the model * * @return string */ function getModel() { return ''; } // }}} // {{{ getDeviceID() /** * returns device ID * * @return string */ function getDeviceID() { return ''; } // }}} // {{{ getCarrierShortName() /** * returns the short name of the carrier * * @return string */ function getCarrierShortName() { return 'N'; } // }}} // {{{ getCarrierLongName() /** * returns the long name of the carrier * * @return string */ function getCarrierLongName() { return 'NonMobile'; } /**#@-*/ /**#@+ * @access private */ /**#@-*/ // }}} } // }}} /* * Local Variables: * mode: php * coding: iso-8859-1 * tab-width: 4 * c-basic-offset: 4 * c-hanging-comment-ender-p: nil * indent-tabs-mode: nil * End: */ ?>