Net_UserAgent_Mobile
[ class tree: Net_UserAgent_Mobile ] [ index: Net_UserAgent_Mobile ] [ all elements ]

Class: Net_UserAgent_Mobile_EZweb

Source Location: /Net_UserAgent_Mobile-0.30.0/Mobile/EZweb.php

Class Overview

PEAR
   |
   --Net_UserAgent_Mobile_Common
      |
      --Net_UserAgent_Mobile_EZweb

EZweb implementation


Author(s):

Version:

  • Release: 0.30.0

Copyright:

  • 2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net>

Methods


Inherited Variables

Inherited Methods

Class: Net_UserAgent_Mobile_Common

Net_UserAgent_Mobile_Common::Net_UserAgent_Mobile_Common()
constructor
Net_UserAgent_Mobile_Common::getCarrierLongName()
returns the long name of the carrier
Net_UserAgent_Mobile_Common::getCarrierShortName()
returns the short name of the carrier
Net_UserAgent_Mobile_Common::getDisplay()
returns Net_UserAgent_Mobile_Disply object
Net_UserAgent_Mobile_Common::getHeader()
returns a specified HTTP header
Net_UserAgent_Mobile_Common::getName()
returns User-Agent name like 'DoCoMo'
Net_UserAgent_Mobile_Common::getUserAgent()
returns User-Agent string
Net_UserAgent_Mobile_Common::getVersion()
returns User-Agent version number like '1.0'
Net_UserAgent_Mobile_Common::isAirHPhone()
returns true if the agent is AirH"PHONE
Net_UserAgent_Mobile_Common::isDoCoMo()
returns true if the agent is DoCoMo
Net_UserAgent_Mobile_Common::isError()
Returns/set an error when the instance couldn't initialize properly
Net_UserAgent_Mobile_Common::isEZweb()
returns true if the agent is EZweb
Net_UserAgent_Mobile_Common::isJPhone()
returns true if the agent is J-PHONE
Net_UserAgent_Mobile_Common::isNonMobile()
returns true if the agent is NonMobile
Net_UserAgent_Mobile_Common::isTUKa()
returns true if the agent is TU-Ka
Net_UserAgent_Mobile_Common::isVodafone()
returns true if the agent is Vodafone
Net_UserAgent_Mobile_Common::isWAP1()
returns true if the agent can speak WAP1 protocol
Net_UserAgent_Mobile_Common::isWAP2()
returns true if the agent can speak WAP2 protocol
Net_UserAgent_Mobile_Common::makeDisplay()
create a new Net_UserAgent_Mobile_Display class instance (should be implemented in subclasses)
Net_UserAgent_Mobile_Common::noMatch()
generates a warning message for new variants
Net_UserAgent_Mobile_Common::parse()
parse HTTP_USER_AGENT string (should be implemented in subclasses)
Net_UserAgent_Mobile_Common::raiseError()
This method is used to communicate an error and invoke error callbacks etc. Basically a wrapper for PEAR::raiseError without the message string.

Class Details

[line 69]
EZweb implementation

Net_UserAgent_Mobile_EZweb is a subclass of Net_UserAgent_Mobile_Common, which implements EZweb (WAP1.0/2.0) user agents.

SYNOPSIS:

  1.  require_once 'Net/UserAgent/Mobile.php';
  2.  
  3.  $_SERVER['HTTP_USER_AGENT''UP.Browser/3.01-HI02 UP.Link/3.2.1.2';
  4.  $agent &Net_UserAgent_Mobile::factory();
  5.  
  6.  printf("Name: %s\n"$agent->getName())// 'UP.Browser'
  7.  printf("Version: %s\n"$agent->getVersion())// 3.01
  8.  printf("DeviceID: %s\n"$agent->getDeviceID())// 'HI02'
  9.  printf("Server: %s\n"$agent->getServer())// 'UP.Link/3.2.1.2'
  10.  
  11.  e.g.'UP.Browser/3.01-HI02 UP.Link/3.2.1.2 (Google WAP Proxy/1.0)'
  12.  printf("Comment: %s\n"$agent->getComment())// 'Google WAP Proxy/1.0'
  13.  
  14.  e.g.'KDDI-TS21 UP.Browser/6.0.2.276 (GUI) MMP/1.1'
  15.  if ($agent->isXHTMLCompliant()) {
  16.      print "XHTML compliant!\n"// true
  17.  }



[ Top ]


Method Detail

getCarrierLongName   [line 306]

string getCarrierLongName( )

returns the long name of the carrier
  • Access: public

Overrides Net_UserAgent_Mobile_Common::getCarrierLongName() (returns the long name of the carrier)
[ Top ]

getCarrierShortName   [line 293]

string getCarrierShortName( )

returns the short name of the carrier
  • Access: public

Overrides Net_UserAgent_Mobile_Common::getCarrierShortName() (returns the short name of the carrier)
[ Top ]

getComment   [line 267]

boolean getComment( )

returns comment like 'Google WAP Proxy/1.0'. returns null if nothinng.
  • Access: public

[ Top ]

getDeviceID   [line 241]

string getDeviceID( )

returns device ID like 'TS21'
  • Access: public

[ Top ]

getModel   [line 228]

string getModel( )

returns name of the model (device ID) like 'TS21'
  • Access: public

[ Top ]

getServer   [line 254]

string getServer( )

returns server string like 'UP.Link/3.2.1.2'
  • Access: public

[ Top ]

isEZweb   [line 128]

boolean isEZweb( )

returns true
  • Access: public

Overrides Net_UserAgent_Mobile_Common::isEZweb() (returns true if the agent is EZweb)
[ Top ]

isTUKa   [line 141]

boolean isTUKa( )

returns true if the agent is TU-Ka
  • Access: public

Overrides Net_UserAgent_Mobile_Common::isTUKa() (returns true if the agent is TU-Ka)
[ Top ]

isWIN   [line 319]

boolean isWIN( )

Returns whether the agent is CDMA 1X WIN or not.
  • Access: public

[ Top ]

isXHTMLCompliant   [line 280]

boolean isXHTMLCompliant( )

returns whether it's XHTML compliant or not
  • Access: public

[ Top ]

makeDisplay   [line 202]

object a makeDisplay( )

create a new Net_UserAgent_Mobile_Display class instance

Overrides Net_UserAgent_Mobile_Common::makeDisplay() (create a new Net_UserAgent_Mobile_Display class instance (should be implemented in subclasses))
[ Top ]

parse   [line 163]

void parse( )

parse HTTP_USER_AGENT string
  • Access: public

Overrides Net_UserAgent_Mobile_Common::parse() (parse HTTP_USER_AGENT string (should be implemented in subclasses))
[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:56:48 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.