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

Class: Net_UserAgent_Mobile_Willcom

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

Class Overview

Net_UserAgent_Mobile_Common
   |
   --Net_UserAgent_Mobile_Willcom

AirH"PHONE implementation


Author(s):

Version:

  • Release: 1.0.0

Copyright:

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

Variables

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::getError()
Gets a Net_UserAgent_Mobile_Error object.
Net_UserAgent_Mobile_Common::getHeader()
returns a specified HTTP header
Net_UserAgent_Mobile_Common::getModel()
Returns the model name of the user agent.
Net_UserAgent_Mobile_Common::getName()
returns User-Agent name like 'DoCoMo'
Net_UserAgent_Mobile_Common::getRawModel()
Returns the raw model name of the user agent.
Net_UserAgent_Mobile_Common::getUID()
Gets the UID of a subscriber.
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::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::isSoftBank()
Returns whether the agent is SoftBank or not.
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::isWillcom()
Returns whether the agent is Willcom or not.
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()
Parses HTTP_USER_AGENT string.

Class Details

[line 77]
AirH"PHONE implementation

Net_UserAgent_Mobile_Willcom is a subclass of Net_UserAgent_Mobile_Common, which implements Willcom's user agents.

SYNOPSIS:

  1.  require_once 'Net/UserAgent/Mobile.php';
  2.  
  3.  $_SERVER['HTTP_USER_AGENT'=
  4.      'Mozilla/3.0(DDIPOCKET;JRC/AH-J3001V,AH-J3002V/1.0/0100/c50)CNF/2.0';
  5.  $agent &Net_UserAgent_Mobile::factory();
  6.  
  7.  printf("Name: %s\n"$agent->getName())// 'DDIPOCKET'
  8.  printf("Verdor: %s\n"$agent->getVendor())// 'JRC'
  9.  printf("Model: %s\n"$agent->getModel())// 'AH-J3001V,AH-J3002V'
  10.  printf("Model Version: %s\n"$agent->getModelVersion())// '1.0'
  11.  printf("Browser Version: %s\n"$agent->getBrowserVersion())// '0100'
  12.  printf("Cache Size: %s\n"$agent->getCacheSize())// 50



[ Top ]


Class Variables

$name =  'WILLCOM'

[line 90]

User-Agent name
  • Access: public

Type:   string
Overrides:   Array


[ Top ]



Method Detail

getBrowserVersion   [line 213]

string getBrowserVersion( )

returns version number of the browser
  • Access: public

[ Top ]

getCacheSize   [line 226]

integer getCacheSize( )

returns cache size as killobytes unit
  • Access: public

[ Top ]

getCarrierLongName   [line 252]

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

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 ]

getModelVersion   [line 200]

string getModelVersion( )

returns version number of the model
  • Access: public

[ Top ]

getVendor   [line 187]

string getVendor( )

returns vendor name
  • Access: public

[ Top ]

isAirHPhone   [line 136]

boolean isAirHPhone( )

returns true
  • Access: public

Overrides Net_UserAgent_Mobile_Common::isAirHPhone() (returns true if the agent is AirH"PHONE)
[ Top ]

isWillcom   [line 266]

boolean isWillcom( )

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

Overrides Net_UserAgent_Mobile_Common::isWillcom() (Returns whether the agent is Willcom or not.)
[ Top ]

makeDisplay   [line 174]

Net_UserAgent_Mobile_Display makeDisplay( )

create a new Net_UserAgent_Mobile_Display class instance
  • Access: public

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

parse   [line 149]

void parse( string $userAgent)

Parses HTTP_USER_AGENT string.
  • Access: public

Overrides Net_UserAgent_Mobile_Common::parse() (Parses HTTP_USER_AGENT string.)

Parameters:

string   $userAgent     User-Agent string

[ Top ]


Documentation generated on Tue, 23 Jun 2009 10:00:06 +0000 by phpDocumentor 1.4.2. PEAR Logo Copyright © PHP Group 2004.