EC-CUBE
Public メソッド | Static Public メソッド
クラス Net_UserAgent_Mobile

Public メソッド

singleton ($userAgent=null)
 isError ($value)
 errorMessage ($value)
 isMobile ($userAgent=null)
 isDoCoMo ($userAgent=null)
 isEZweb ($userAgent=null)
 isSoftBank ($userAgent=null)
 isWillcom ($userAgent=null)
 isSmartphone ($userAgent=null)

Static Public メソッド

factory ($userAgent=null)

関数

errorMessage ( value)

return a textual error message for a Net_UserAgent_Mobile error code

引数:
integer$valueerror code
戻り値:
string error message, or null if the error code was not recognized
& factory ( userAgent = null) [static]

#@+ public#@- #@+ private#@- #@+ public create a new Net_UserAgent_Mobile_Common subclass instance

parses HTTP headers and constructs Net_UserAgent_Mobile_Common subclass instance. If no argument is supplied, $_SERVER{'HTTP_*'} is used.

引数:
string$userAgentUser-Agent string
戻り値:
Net_UserAgent_Mobile_Common a newly created or an existing Net_UserAgent_Mobile_Common object
例外:
Net_UserAgent_Mobile_Error
isDoCoMo ( userAgent = null)

Checks whether or not the user agent is DoCoMo by a given user agent string.

引数:
string$userAgent
戻り値:
boolean
から:
Method available since Release 0.31.0
isError ( value)

tell whether a result code from a Net_UserAgent_Mobile method is an error

引数:
integer$valueresult code
戻り値:
boolean whether $value is an Net_UserAgent_Mobile_Error
isEZweb ( userAgent = null)

Checks whether or not the user agent is EZweb by a given user agent string.

引数:
string$userAgent
戻り値:
boolean
から:
Method available since Release 0.31.0
isMobile ( userAgent = null)

Checks whether or not the user agent is mobile by a given user agent string.

引数:
string$userAgent
戻り値:
boolean
から:
Method available since Release 0.31.0
isSmartphone ( userAgent = null)

Checks whether or not the user agent is Smartphone by a given user agent string.

引数:
string$userAgent
戻り値:
boolean
から:
Method available since Release 0.31.0
isSoftBank ( userAgent = null)

Checks whether or not the user agent is SoftBank by a given user agent string.

引数:
string$userAgent
戻り値:
boolean
から:
Method available since Release 0.31.0
isWillcom ( userAgent = null)

Checks whether or not the user agent is Willcom by a given user agent string.

引数:
string$userAgent
戻り値:
boolean
から:
Method available since Release 0.31.0
& singleton ( userAgent = null)

creates a new Net_UserAgent_Mobile_Common subclass instance or returns a instance from existent ones

引数:
string$userAgentUser-Agent string
戻り値:
Net_UserAgent_Mobile_Common a newly created or an existing Net_UserAgent_Mobile_Common object
例外:
Net_UserAgent_Mobile_Error

このクラスの説明は次のファイルから生成されました:
 全て データ構造 ネームスペース 関数 変数