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

Class: Net_UserAgent_Mobile_Common

Source Location: /Net_UserAgent_Mobile-1.0.0/Net/UserAgent/Mobile/Common.php

Class Overview


Base class that is extended by each user agents implementor


Author(s):

Version:

  • Release: 1.0.0

Copyright:

  • 2003-2009 KUBO Atsuhiro <kubo@iteman.jp>

Variables

Methods


Child classes:

Net_UserAgent_Mobile_EZweb
EZweb implementation
Net_UserAgent_Mobile_DoCoMo
NTT DoCoMo implementation
Net_UserAgent_Mobile_SoftBank
SoftBank implementation
Net_UserAgent_Mobile_NonMobile
Non-Mobile Agent implementation
Net_UserAgent_Mobile_Willcom
AirH"PHONE implementation

Inherited Variables

Inherited Methods


Class Details

[line 59]
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.

  • Author: KUBO Atsuhiro <kubo@iteman.jp>
  • Version: Release: 1.0.0
  • Copyright: 2003-2009 KUBO Atsuhiro <kubo@iteman.jp>
  • Since: Class available since Release 0.1
  • License: New BSD License


[ Top ]


Class Variables

$name =

[line 72]

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

Type:   string


[ Top ]

$version =

[line 78]

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

Type:   string


[ Top ]



Method Detail

Net_UserAgent_Mobile_Common (Constructor)   [line 135]

Net_UserAgent_Mobile_Common Net_UserAgent_Mobile_Common( string $userAgent)

constructor
  • Access: public

Parameters:

string   $userAgent   —  User-Agent string

[ Top ]

getCarrierLongName   [line 415]

void getCarrierLongName( )

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

Overridden in child classes as:

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_SoftBank::getCarrierLongName()
returns the long name of the carrier
Net_UserAgent_Mobile_NonMobile::getCarrierLongName()
returns the long name of the carrier
Net_UserAgent_Mobile_Willcom::getCarrierLongName()
returns the long name of the carrier

[ Top ]

getCarrierShortName   [line 402]

void getCarrierShortName( )

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

Overridden in child classes as:

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_SoftBank::getCarrierShortName()
returns the short name of the carrier
Net_UserAgent_Mobile_NonMobile::getCarrierShortName()
returns the short name of the carrier
Net_UserAgent_Mobile_Willcom::getCarrierShortName()
returns the short name of the carrier

[ Top ]

getDisplay   [line 213]

Net_UserAgent_Mobile_Display getDisplay( )

returns Net_UserAgent_Mobile_Disply object
  • Access: public

[ Top ]

getError   [line 155]

Net_UserAgent_Mobile_Error &getError( object {@link 0)

Gets a Net_UserAgent_Mobile_Error object.
  • Since: Method available since Release 1.0.0RC2
  • Access: public

Parameters:

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

[ Top ]

getHeader   [line 187]

string getHeader( string $header)

returns a specified HTTP header
  • Access: public

Parameters:

string   $header   — 

[ Top ]

getModel   [line 457]

string getModel( )

Returns the model name of the user agent.
  • Since: Method available since Release 0.31.0
  • Access: public

[ Top ]

getName   [line 200]

string getName( )

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

[ Top ]

getRawModel   [line 475]

string getRawModel( )

Returns the raw model name of the user agent.
  • Since: Method available since Release 0.31.0
  • Access: public

[ Top ]

getUID   [line 489]

string getUID( )

Gets the UID of a subscriber.
  • Since: Method available since Release 1.0.0RC1
  • Access: public

Overridden in child classes as:

Net_UserAgent_Mobile_EZweb::getUID()
Gets the UID of a subscriber.
Net_UserAgent_Mobile_DoCoMo::getUID()
Gets the UID of a subscriber.
Net_UserAgent_Mobile_SoftBank::getUID()
Gets the UID of a subscriber.

[ Top ]

getUserAgent   [line 173]

string getUserAgent( )

returns User-Agent string
  • Access: public

[ Top ]

getVersion   [line 230]

string getVersion( )

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

[ Top ]

isAirHPhone   [line 337]

boolean isAirHPhone( )

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

Overridden in child classes as:

Net_UserAgent_Mobile_Willcom::isAirHPhone()
returns true

[ Top ]

isDoCoMo   [line 285]

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

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

boolean isJPhone( )

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

Overridden in child classes as:

Net_UserAgent_Mobile_SoftBank::isJPhone()
returns true

[ Top ]

isNonMobile   [line 350]

boolean isNonMobile( )

returns true if the agent is NonMobile
  • Access: public

Overridden in child classes as:

Net_UserAgent_Mobile_NonMobile::isNonMobile()
returns true

[ Top ]

isSoftBank   [line 429]

boolean isSoftBank( )

Returns whether the agent is SoftBank or not.
  • Since: Method available since Release 0.31.0
  • Access: public

Overridden in child classes as:

Net_UserAgent_Mobile_SoftBank::isSoftBank()
returns true if the agent is SoftBank.

[ Top ]

isTUKa   [line 363]

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

boolean isVodafone( )

returns true if the agent is Vodafone
  • Access: public

Overridden in child classes as:

Net_UserAgent_Mobile_SoftBank::isVodafone()
returns true

[ Top ]

isWAP1   [line 376]

boolean isWAP1( )

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

[ Top ]

isWAP2   [line 389]

boolean isWAP2( )

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

[ Top ]

isWillcom   [line 443]

boolean isWillcom( )

Returns whether the agent is Willcom or not.
  • Since: Method available since Release 0.31.0
  • Access: public

Overridden in child classes as:

Net_UserAgent_Mobile_Willcom::isWillcom()
Returns whether the agent is Willcom or not.

[ Top ]

makeDisplay   [line 275]

Net_UserAgent_Mobile_Display 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_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_SoftBank::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_Willcom::makeDisplay()
create a new Net_UserAgent_Mobile_Display class instance

[ Top ]

noMatch   [line 243]

void noMatch( )

generates a warning message for new variants
  • Throws: Net_UserAgent_Mobile_Error
  • Access: public

[ Top ]

parse   [line 263]

void parse( string $userAgent)

Parses HTTP_USER_AGENT string.
  • Abstract:
  • Access: public

Overridden in child classes as:

Net_UserAgent_Mobile_EZweb::parse()
Parses HTTP_USER_AGENT string.
Net_UserAgent_Mobile_DoCoMo::parse()
Parses HTTP_USER_AGENT string.
Net_UserAgent_Mobile_SoftBank::parse()
Parses HTTP_USER_AGENT string.
Net_UserAgent_Mobile_NonMobile::parse()
Parses HTTP_USER_AGENT string.
Net_UserAgent_Mobile_Willcom::parse()
Parses HTTP_USER_AGENT string.

Parameters:

string   $userAgent   —  User-Agent string

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:31:59 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.