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.30.0/Mobile/Common.php

Class Overview

PEAR
   |
   --Net_UserAgent_Mobile_Common

Base class that is extended by each user agents implementor


Author(s):

Version:

  • Release: 0.30.0

Copyright:

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

Variables

Methods


Child classes:

Net_UserAgent_Mobile_Vodafone
Vodafone implementation
Net_UserAgent_Mobile_EZweb
EZweb implementation
Net_UserAgent_Mobile_DoCoMo
NTT DoCoMo implementation
Net_UserAgent_Mobile_NonMobile
Non-Mobile Agent implementation
Net_UserAgent_Mobile_AirHPhone
AirH"PHONE implementation

Inherited Variables

Inherited Methods


Class Details

[line 38]
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 51]

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

Type:   string


[ Top ]

$version =  ''

[line 57]

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

Type:   string


[ Top ]



Method Detail

Net_UserAgent_Mobile_Common (Constructor)   [line 99]

Net_UserAgent_Mobile_Common Net_UserAgent_Mobile_Common( object $request)

constructor
  • Access: public

Parameters:

object   $request   —  a Net_UserAgent_Mobile_Request_Env object

[ Top ]

getCarrierLongName   [line 419]

void getCarrierLongName( )

returns the long name of the carrier
  • Abstract:
  • Access: public

Overridden in child classes as:

Net_UserAgent_Mobile_Vodafone::getCarrierLongName()
returns the long name of the carrier
Net_UserAgent_Mobile_EZweb::getCarrierLongName()
returns the long name of the carrier
Net_UserAgent_Mobile_DoCoMo::getCarrierLongName()
returns the long name of the carrier
Net_UserAgent_Mobile_NonMobile::getCarrierLongName()
returns the long name of the carrier
Net_UserAgent_Mobile_AirHPhone::getCarrierLongName()
returns the long name of the carrier

[ Top ]

getCarrierShortName   [line 406]

void getCarrierShortName( )

returns the short name of the carrier
  • Abstract:
  • Access: public

Overridden in child classes as:

Net_UserAgent_Mobile_Vodafone::getCarrierShortName()
returns the short name of the carrier
Net_UserAgent_Mobile_EZweb::getCarrierShortName()
returns the short name of the carrier
Net_UserAgent_Mobile_DoCoMo::getCarrierShortName()
returns the short name of the carrier
Net_UserAgent_Mobile_NonMobile::getCarrierShortName()
returns the short name of the carrier
Net_UserAgent_Mobile_AirHPhone::getCarrierShortName()
returns the short name of the carrier

[ Top ]

getDisplay   [line 217]

object a getDisplay( )

returns Net_UserAgent_Mobile_Disply object

[ Top ]

getHeader   [line 189]

string getHeader( string $header)

returns a specified HTTP header
  • Access: public

Parameters:

string   $header   — 

[ Top ]

getName   [line 202]

string getName( )

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

[ Top ]

getUserAgent   [line 175]

string getUserAgent( )

returns User-Agent string
  • Access: public

[ Top ]

getVersion   [line 233]

string getVersion( )

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

[ Top ]

isAirHPhone   [line 341]

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 289]

boolean isDoCoMo( )

returns true if the agent is DoCoMo
  • Access: public

Overridden in child classes as:

Net_UserAgent_Mobile_DoCoMo::isDoCoMo()
returns true

[ Top ]

isError   [line 118]

object {@link &isError( [object {@link $error = null])

Returns/set an error when the instance couldn't initialize properly
  • Return: Net_UserAgent_Mobile_Error} object
  • Access: public

Parameters:

object {@link   $error   —  Net_UserAgent_Mobile_Error} object when setting an error

[ Top ]

isEZweb   [line 328]

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 302]

boolean isJPhone( )

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

Overridden in child classes as:

Net_UserAgent_Mobile_Vodafone::isJPhone()
returns true

[ Top ]

isNonMobile   [line 354]

boolean isNonMobile( )

returns true if the agent is NonMobile
  • Access: public

Overridden in child classes as:

Net_UserAgent_Mobile_NonMobile::isNonMobile()
returns true

[ Top ]

isTUKa   [line 367]

boolean isTUKa( )

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

Overridden in child classes as:

Net_UserAgent_Mobile_EZweb::isTUKa()
returns true if the agent is TU-Ka

[ Top ]

isVodafone   [line 315]

boolean isVodafone( )

returns true if the agent is Vodafone
  • Access: public

Overridden in child classes as:

Net_UserAgent_Mobile_Vodafone::isVodafone()
returns true

[ Top ]

isWAP1   [line 380]

boolean isWAP1( )

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

[ Top ]

isWAP2   [line 393]

boolean isWAP2( )

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

[ Top ]

makeDisplay   [line 276]

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_Vodafone::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_DoCoMo::makeDisplay()
create a new Net_UserAgent_Mobile_Display class instance
Net_UserAgent_Mobile_NonMobile::makeDisplay()
create a new Net_UserAgent_Mobile_Display class instance
Net_UserAgent_Mobile_AirHPhone::makeDisplay()
create a new Net_UserAgent_Mobile_Display class instance

[ Top ]

noMatch   [line 246]

object a noMatch( )

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

[ Top ]

parse   [line 262]

void parse( )

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

Overridden in child classes as:

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

[ Top ]

raiseError   [line 148]

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 Mon, 11 Mar 2019 14:56:48 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.