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

Class: MobileDetector

Source Location: /MobileDetector.php

Class Overview


Mobile detector class


Variables

Constants

Methods



Class Details

[line 22]
Mobile detector class



[ Top ]


Class Variables

$_accept =

[line 129]

Accept string



Tags:

access:  protected

Type:   string


[ Top ]

$_isMobile =  false

[line 79]

Flag to know if the agent is mobile



Tags:

access:  protected

Type:   boolean


[ Top ]

$_mobileType =

[line 86]

Mobile type



Tags:

access:  protected

Type:   string


[ Top ]

$_patterns = array(...)

[line 93]

Match patterns



Tags:

access:  protected

Type:   array


[ Top ]

$_userAgent =

[line 122]

User agent



Tags:

access:  protected

Type:   string


[ Top ]



Class Methods


constructor __construct [line 138]

void __construct( [string $userAgent = null], [string $accept = null])

Constructor



Tags:

access:  public


Parameters:

string   $userAgent   User agent
string   $accept   Accept string

[ Top ]

method getMobileType [line 174]

mixed getMobileType( )

Get mobile type



Tags:

return:  Returns mobile type or null if mobile is not detected
access:  public


[ Top ]

method getUserAgent [line 184]

string getUserAgent( )

Get user agent



Tags:

access:  public


[ Top ]

method isMobile [line 164]

boolean isMobile( )

Check if the agent is mobile



Tags:

return:  Returns true if mobile device was detected
access:  public


[ Top ]

method _checkAccept [line 205]

void _checkAccept( )

Check accept string



Tags:

access:  protected


[ Top ]

method _checkPatterns [line 219]

void _checkPatterns( )

Check patterns



Tags:

access:  protected


[ Top ]

method _detect [line 194]

void _detect( )

Detect mobile device



Tags:

access:  protected


[ Top ]


Class Constants

TYPE_ANDROID =  'android'

[line 27]

Mobile type Android


[ Top ]

TYPE_BLACKBERRY =  'blackberry'

[line 32]

Mobile type Blackberry


[ Top ]

TYPE_GENERIC =  'generic'

[line 67]

Mobile type generic


[ Top ]

TYPE_IPAD =  'ipad'

[line 52]

Mobile type iPad


[ Top ]

TYPE_IPHONE =  'iphone'

[line 57]

Mobile type iPhone


[ Top ]

TYPE_IPOD =  'ipod'

[line 47]

Mobile type iPod


[ Top ]

TYPE_NONE =  null

[line 72]

Mobile type none


[ Top ]

TYPE_PALM =  'palm'

[line 37]

Mobile type Palm OS


[ Top ]

TYPE_SYMBIAN =  'symbian'

[line 62]

Mobile type Symbian


[ Top ]

TYPE_WINDOWS =  'windows'

[line 42]

Mobile type Windows Mobile


[ Top ]



Documentation generated on Thu, 10 Feb 2011 23:35:33 +0200 by phpDocumentor 1.4.3