PHP 클래스 Zend_Http_UserAgent_AbstractDevice

상속: implements Zend_Http_UserAgent_Device
파일 보기 프로젝트 열기: dbpatch/dbpatch 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_aFeatures array Browser/Device features
$_aGroup array Browser/Device features groups
$_browser string Browser signature
$_browserVersion string Browser version
$_config array Configuration
$_images array Image types
$_server array Server variable
$_userAgent string User Agent chain

공개 메소드들

메소드 설명
__construct ( null | string | array $userAgent = null, array $server = [], array $config = [] ) : void Constructor
extractFromUserAgent ( string $userAgent ) : array Extract and sets informations from the User Agent chain
getAllFeatures ( ) : array Gets all the browser/device features
getAllGroups ( ) : array Gets all the browser/device features' groups
getBrowser ( ) : string Get the browser type
getBrowserVersion ( ) : string Get the browser version
getFeature ( string $feature ) : string | null Gets the value of the current browser/device feature
getGroup ( string $group ) : array Gets an array of features associated to a group
getImageFormatSupport ( ) : array Retrieve image format support
getImages ( ) : the
getMaxImageHeight ( ) : integer Get maximum image height supported by this device
getMaxImageWidth ( ) : integer Get maximum image width supported by this device
getPhysicalScreenHeight ( ) : integer Get physical screen height of this device
getPhysicalScreenWidth ( ) : integer Get physical screen width of this device
getPreferredMarkup ( ) : string Get preferred markup type
getType ( ) : string Gets the browser type identifier
getUserAgent ( ) : string Get the user agent string
getXhtmlSupportLevel ( ) : integer Get supported X/HTML version
hasFeature ( string $feature ) : boolean Check a feature for the current browser/device.
hasFlashSupport ( ) : boolean Does the device support Flash?
hasPdfSupport ( ) : boolean Does the device support PDF?
hasPhoneNumber ( ) : boolean Does the device have a phone number associated with it?
httpsSupport ( ) : boolean Does the device support HTTPS?
serialize ( ) : string Serialize object
setBrowser ( string $browser )
setBrowserVersion ( string $browserVersion )
setFeature ( string $feature, string $value = false, string $group = '' ) : Zend_Http_UserAgent_AbstractDevice Set a feature for the current browser/device.
setGroup ( string $group, string $feature ) : Zend_Http_UserAgent_AbstractDevice Affects a feature to a group
setImages ( array $_images )
setUserAgent ( string $userAgent )
unserialize ( string $serialized ) : void Unserialize

보호된 메소드들

메소드 설명
_defineFeatures ( ) : array | null Look for features
_getDefaultFeatures ( ) : void Sets all the standard features extracted from the User Agent chain and $this->_server vars
_loadFeaturesAdapter ( ) : array Loads the Features Adapter if it's defined in the $config array Otherwise, nothing is done
_matchAgentAgainstSignatures ( string $userAgent, array $signatures ) : boolean Match a user agent string against a list of signatures
_restoreFromArray ( array $spec ) : void Restore object state from array

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( null | string | array $userAgent = null, array $server = [], array $config = [] ) : void
$userAgent null | string | array If array, restores from serialized version
$server array
$config array
리턴 void

_defineFeatures() 보호된 메소드

Look for features
protected _defineFeatures ( ) : array | null
리턴 array | null

_getDefaultFeatures() 보호된 메소드

Sets all the standard features extracted from the User Agent chain and $this->_server vars
protected _getDefaultFeatures ( ) : void
리턴 void

_loadFeaturesAdapter() 보호된 메소드

Loads the Features Adapter if it's defined in the $config array Otherwise, nothing is done
protected _loadFeaturesAdapter ( ) : array
리턴 array

_matchAgentAgainstSignatures() 보호된 정적인 메소드

Match a user agent string against a list of signatures
protected static _matchAgentAgainstSignatures ( string $userAgent, array $signatures ) : boolean
$userAgent string
$signatures array
리턴 boolean

_restoreFromArray() 보호된 메소드

Restore object state from array
protected _restoreFromArray ( array $spec ) : void
$spec array
리턴 void

extractFromUserAgent() 공개 정적인 메소드

Extract and sets informations from the User Agent chain
public static extractFromUserAgent ( string $userAgent ) : array
$userAgent string User Agent chain
리턴 array

getAllFeatures() 공개 메소드

Gets all the browser/device features
public getAllFeatures ( ) : array
리턴 array

getAllGroups() 공개 메소드

Gets all the browser/device features' groups
public getAllGroups ( ) : array
리턴 array

getBrowser() 공개 메소드

Get the browser type
public getBrowser ( ) : string
리턴 string

getBrowserVersion() 공개 메소드

Get the browser version
public getBrowserVersion ( ) : string
리턴 string

getFeature() 공개 메소드

Gets the value of the current browser/device feature
public getFeature ( string $feature ) : string | null
$feature string Feature to search
리턴 string | null

getGroup() 공개 메소드

Gets an array of features associated to a group
public getGroup ( string $group ) : array
$group string Group param
리턴 array

getImageFormatSupport() 공개 메소드

Retrieve image format support
public getImageFormatSupport ( ) : array
리턴 array

getImages() 공개 메소드

public getImages ( ) : the
리턴 the $_images

getMaxImageHeight() 공개 메소드

Get maximum image height supported by this device
public getMaxImageHeight ( ) : integer
리턴 integer

getMaxImageWidth() 공개 메소드

Get maximum image width supported by this device
public getMaxImageWidth ( ) : integer
리턴 integer

getPhysicalScreenHeight() 공개 메소드

Get physical screen height of this device

getPhysicalScreenWidth() 공개 메소드

Get physical screen width of this device
public getPhysicalScreenWidth ( ) : integer
리턴 integer

getPreferredMarkup() 공개 메소드

Get preferred markup type
public getPreferredMarkup ( ) : string
리턴 string

getType() 추상적인 공개 메소드

Gets the browser type identifier
abstract public getType ( ) : string
리턴 string

getUserAgent() 공개 메소드

Get the user agent string
public getUserAgent ( ) : string
리턴 string

getXhtmlSupportLevel() 공개 메소드

Get supported X/HTML version
public getXhtmlSupportLevel ( ) : integer
리턴 integer

hasFeature() 공개 메소드

Check a feature for the current browser/device.
public hasFeature ( string $feature ) : boolean
$feature string The feature to check.
리턴 boolean

hasFlashSupport() 공개 메소드

Does the device support Flash?
public hasFlashSupport ( ) : boolean
리턴 boolean

hasPdfSupport() 공개 메소드

Does the device support PDF?
public hasPdfSupport ( ) : boolean
리턴 boolean

hasPhoneNumber() 공개 메소드

Does the device have a phone number associated with it?
public hasPhoneNumber ( ) : boolean
리턴 boolean

httpsSupport() 공개 메소드

Does the device support HTTPS?
public httpsSupport ( ) : boolean
리턴 boolean

serialize() 공개 메소드

Serialize object
public serialize ( ) : string
리턴 string

setBrowser() 공개 메소드

public setBrowser ( string $browser )
$browser string

setBrowserVersion() 공개 메소드

public setBrowserVersion ( string $browserVersion )
$browserVersion string

setFeature() 공개 메소드

Set a feature for the current browser/device.
public setFeature ( string $feature, string $value = false, string $group = '' ) : Zend_Http_UserAgent_AbstractDevice
$feature string The feature to set.
$value string (option) feature value.
$group string (option) Group to associate with the feature
리턴 Zend_Http_UserAgent_AbstractDevice

setGroup() 공개 메소드

Affects a feature to a group
public setGroup ( string $group, string $feature ) : Zend_Http_UserAgent_AbstractDevice
$group string Group name
$feature string Feature name
리턴 Zend_Http_UserAgent_AbstractDevice

setImages() 공개 메소드

public setImages ( array $_images )
$_images array

setUserAgent() 공개 메소드

public setUserAgent ( string $userAgent )
$userAgent string

unserialize() 공개 메소드

Unserialize
public unserialize ( string $serialized ) : void
$serialized string
리턴 void

프로퍼티 상세

$_aFeatures 보호되어 있는 프로퍼티

Browser/Device features
protected array $_aFeatures
리턴 array

$_aGroup 보호되어 있는 프로퍼티

Browser/Device features groups
protected array $_aGroup
리턴 array

$_browser 보호되어 있는 프로퍼티

Browser signature
protected string $_browser
리턴 string

$_browserVersion 보호되어 있는 프로퍼티

Browser version
protected string $_browserVersion
리턴 string

$_config 보호되어 있는 프로퍼티

Configuration
protected array $_config
리턴 array

$_images 보호되어 있는 프로퍼티

Image types
protected array $_images
리턴 array

$_server 보호되어 있는 프로퍼티

Server variable
protected array $_server
리턴 array

$_userAgent 보호되어 있는 프로퍼티

User Agent chain
protected string $_userAgent
리턴 string