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

Class: Net_UserAgent_Mobile_Common

Source Location: /Net_UserAgent_Mobile-0.14.1/Mobile/Common.php

Class Overview

PEAR
   |
   --Net_UserAgent_Mobile_Common

Base class that is extended by each user agents implementor


Author(s):

Version:

  • $Revision: 1.7 $

Variables

Methods


Child classes:

Net_UserAgent_Mobile_AirHPhone
AirH"PHONE implementation
Net_UserAgent_Mobile_DoCoMo
NTT DoCoMo implementation
Net_UserAgent_Mobile_EZweb
EZweb implementation
Net_UserAgent_Mobile_JPhone
J-PHONE implementation
Net_UserAgent_Mobile_NonMobile
Non-Mobile Agent implementation

Inherited Variables

Inherited Methods


Class Details

[line 35]
Base class that is extended by each user agents implementor

Net_UserAgent_Mobile_Common is a class for mobile user agent abstraction layer on Net_UserAgent_Mobile.



[ Top ]


Class Variables

$name =  ''

[line 48]

User-Agent name like 'DoCoMo'
  • Access: public

Type:   string


[ Top ]

$version =  ''

[line 54]

User-Agent version number like '1.0'
  • Access: public

Type:   string


[ Top ]



Method Detail

Net_UserAgent_Mobile_Common (Constructor)   [line 85]

Net_UserAgent_Mobile_Common Net_UserAgent_Mobile_Common( object $request)

constructor

Parameters:

object   $request     a Net_UserAgent_Mobile_Request_Env object

[ Top ]

getDisplay   [line 186]

object a getDisplay( )

returns Net_UserAgent_Mobile_Disply object

[ Top ]

getHeader   [line 158]

string getHeader( string $header)

returns a specified HTTP header
  • Access: public

Parameters:

string   $header     

[ Top ]

getName   [line 171]

string getName( )

returns User-Agent name like 'DoCoMo'
  • Access: public

[ Top ]

getUserAgent   [line 144]

string getUserAgent( )

returns User-Agent string
  • Access: public

[ Top ]

getVersion   [line 202]

string getVersion( )

returns User-Agent version number like '1.0'
  • Access: public

[ Top ]

isAirHPhone   [line 297]

boolean isAirHPhone( )

returns true if the agent is AirH"PHONE
  • Access: public

Overridden in child classes as:

Net_UserAgent_Mobile_AirHPhone::isAirHPhone()
returns true

[ Top ]

isDoCoMo   [line 258]

boolean isDoCoMo( )

returns true if the agent is DoCoMo
  • Access: public

Overridden in child classes as:

Net_UserAgent_Mobile_DoCoMo::isDoCoMo()
returns true

[ Top ]

isEZweb   [line 284]

boolean isEZweb( )

returns true if the agent is EZweb
  • Access: public

Overridden in child classes as:

Net_UserAgent_Mobile_EZweb::isEZweb()
returns true

[ Top ]

isJPhone   [line 271]

boolean isJPhone( )

returns true if the agent is J-PHONE
  • Access: public

Overridden in child classes as:

Net_UserAgent_Mobile_JPhone::isJPhone()
returns true

[ Top ]

isNonMobile   [line 336]

boolean isNonMobile( )

returns true if the agent is NonMobile
  • Access: public

Overridden in child classes as:

Net_UserAgent_Mobile_NonMobile::isNonMobile()
returns true

[ Top ]

isWAP1   [line 310]

boolean isWAP1( )

returns true if the agent can speak WAP1 protocol
  • Access: public

[ Top ]

isWAP2   [line 323]

boolean isWAP2( )

returns true if the agent can speak WAP2 protocol
  • Access: public

[ Top ]

makeDisplay   [line 245]

void makeDisplay( )

create a new Net_UserAgent_Mobile_Display class instance (should be implemented in subclasses)
  • Abstract:
  • Access: public

Overridden in child classes as:

Net_UserAgent_Mobile_AirHPhone::makeDisplay()
create a new Net_UserAgent_Mobile_Display class instance
Net_UserAgent_Mobile_DoCoMo::makeDisplay()
create a new Net_UserAgent_Mobile_Display class instance
Net_UserAgent_Mobile_EZweb::makeDisplay()
create a new Net_UserAgent_Mobile_Display class instance
Net_UserAgent_Mobile_JPhone::makeDisplay()
create a new Net_UserAgent_Mobile_Display class instance

[ Top ]

noMatch   [line 215]

object a noMatch( )

generates a warning message for new variants
  • Return: PEAR error object
  • Access: public

[ Top ]

parse   [line 231]

void parse( )

parse HTTP_USER_AGENT string (should be implemented in subclasses)
  • Abstract:
  • Access: public

Overridden in child classes as:

Net_UserAgent_Mobile_AirHPhone::parse()
parse HTTP_USER_AGENT string
Net_UserAgent_Mobile_DoCoMo::parse()
parse HTTP_USER_AGENT string
Net_UserAgent_Mobile_EZweb::parse()
parse HTTP_USER_AGENT string
Net_UserAgent_Mobile_JPhone::parse()
parse HTTP_USER_AGENT string
Net_UserAgent_Mobile_NonMobile::parse()
parse HTTP_USER_AGENT string

[ Top ]

raiseError   [line 119]

object a &raiseError( [mixed $code = NET_USERAGENT_MOBILE_ERROR], [int $mode = null], [mixed $options = null], [string $userinfo = null])

This method is used to communicate an error and invoke error callbacks etc. Basically a wrapper for PEAR::raiseError without the message string.
  • Return: PEAR error object
  • See: PEAR_Error
  • Access: public

Parameters:

mixed   $code     integer error code, or a PEAR error object (all other parameters are ignored if this parameter is an object
int   $mode     error mode, see PEAR_Error docs
mixed   $options     If error mode is PEAR_ERROR_TRIGGER, this is the error level (E_USER_NOTICE etc). If error mode is PEAR_ERROR_CALLBACK, this is the callback function, either as a function name, or as an array of an object and method name. For other error modes this parameter is ignored.
string   $userinfo     Extra debug information. Defaults to the last query and native error code.

[ Top ]


Documentation generated on Sat, 1 May 2004 00:47:07 +0200 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.