API Documentation

Zend/Http/UserAgent/Mobile.php

Show: inherited
Table of Contents

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Http  
Subpackage
UserAgent  

\Zend_Http_UserAgent_Mobile

Package: Zend\Http\UserAgent

Mobile browser type matcher

Parent(s)
\Zend_Http_UserAgent_AbstractDevice
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Constants

Constant  DEFAULT_FEATURES_ADAPTER_CLASSNAME = 'Zend_Http_UserAgent_Features_Adapter_WurflApi'
Constant  DEFAULT_FEATURES_ADAPTER_PATH = 'Zend/Http/UserAgent/Features/Adapter/WurflApi.php'

Properties

Propertyprotectedarray  $_haTerms= 'array( 'midp''
static

Default valuearray( 'midp'Details
Type
array
Propertyprotectedarray  $_uaBegin= 'array( 'w3c ''
static

first 4 letters of mobile User Agent chains

Default valuearray( 'w3c 'Details
Type
array
Propertyprotectedarray  $_uaSignatures= 'array( 'iphone''
static

User Agent Signatures

Default valuearray( 'iphone'Details
Type
array

Methods

methodpublic__construct(  $userAgent = null,  $server = array(),  $config = array() ) : void

Constructor

Parameters
Name Type Description
$userAgent
$server
$config
methodprotected_defineFeatures( ) : string

Look for features

Returns
Type Description
string
methodpublicgetImageFormatSupport( ) : array

Determine image format support

Returns
Type Description
array
methodpublicgetMarkupLanguage(  $preferredMarkup = null ) : \__TYPE__

Determine markup language expected

Parameters
Name Type Description
$preferredMarkup
Returns
Type Description
\__TYPE__
Details
Access
public  
methodpublicgetMaxImageHeight( ) : int

Determine maximum image height supported

Returns
Type Description
int
methodpublicgetMaxImageWidth( ) : int

Determine maximum image width supported

Returns
Type Description
int
methodpublicgetPhysicalScreenHeight( ) : int

Determine physical screen height

Returns
Type Description
int
methodpublicgetPhysicalScreenWidth( ) : int

Determine physical screen width

Returns
Type Description
int
methodpublicgetPreferredMarkup( ) : string

Determine preferred markup

Returns
Type Description
string
methodpublicgetType( ) : string

Gives the current browser type

Returns
Type Description
string
methodpublicgetXhtmlSupportLevel( ) : int

Determine X/HTML support level

Returns
Type Description
int
methodpublichasFlashSupport( ) : bool

Does the device support Flash?

Returns
Type Description
bool
methodpublichasPdfSupport( ) : bool

Does the device support PDF?

Returns
Type Description
bool
methodpublichasPhoneNumber( ) : bool

Does the device have an associated phone number?

Returns
Type Description
bool
methodpublichttpsSupport( ) : bool

Does the device support HTTPS?

Returns
Type Description
bool
methodpublicmatch( string $userAgent, array $server ) : bool
static

Comparison of the UserAgent chain and User Agent signatures

Parameters
Name Type Description
$userAgent string

User Agent chain

$server array

$_SERVER like param

Returns
Type Description
bool
methodpublicuserAgentStart( string $userAgent ) : string
static

Retrieve beginning clause of user agent

Parameters
Name Type Description
$userAgent string
Returns
Type Description
string
Documentation was generated by DocBlox 0.15.1.