PHP 클래스 Pop\Web\Mobile

저자: Nick Sagona, III ([email protected])
파일 보기 프로젝트 열기: nicksagona/PopPHP 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$android boolean Android flag
$apple boolean Apple flag
$blackberry boolean Blackberry flag
$desktopUrl string Desktop website destination URL
$device string Mobile Device
$force integer Force flag
$mobile boolean Mobile detect flag
$mobileUrl string Mobile website destination URL
$opera boolean Opera flag
$pre boolean Pre flag
$tablet boolean Tablet detect flag
$ua string User agent property
$windows boolean Windows flag

공개 메소드들

메소드 설명
__construct ( string $mobile = null, string $desktop = null, integer $force ) : Mobile Constructor
getDesktopUrl ( ) : string Method to get desktop URL
getDevice ( ) : string Method to get device name
getForce ( ) : integer Method to get force flag
getMobileDevice ( ) : string Static method to only get the mobile device.
getMobileUrl ( ) : string Method to get mobile URL
getUa ( ) : string Method to get user-agent
goToDesktop ( ) : void Method to go to the desktop site.
goToMobile ( ) : void Method to go to the mobile site.
goToURL ( string $url ) : void Method to go to a specific URL.
isAndroid ( ) : boolean Method to get Android flag
isApple ( ) : boolean Method to get Apple flag
isBlackberry ( ) : boolean Method to get Blackberry flag
isMobile ( ) : boolean Method to get is mobile flag
isMobileDevice ( ) : boolean Static method to only detect a mobile device or not.
isOpera ( ) : boolean Method to get Opera flag
isPre ( ) : boolean Method to get Pre flag
isTablet ( ) : boolean Method to get is tablet flag
isTabletDevice ( ) : boolean Static method to only detect a tablet device or not.
isWindows ( ) : boolean Method to get Windows flag
route ( ) : void Method to route to the appropriate URL
setDesktopUrl ( string $url ) : Mobile Method to set desktop URL
setForce ( integer $force ) : Mobile Method to set force flag
setMobileUrl ( string $url ) : Mobile Method to set mobile URL

보호된 메소드들

메소드 설명
detect ( ) : boolean Method to detect whether or not the device is a mobile device or not.

메소드 상세

__construct() 공개 메소드

Instantiate the mobile session object.
public __construct ( string $mobile = null, string $desktop = null, integer $force ) : Mobile
$mobile string
$desktop string
$force integer
리턴 Mobile

detect() 보호된 메소드

Method to detect whether or not the device is a mobile device or not.
protected detect ( ) : boolean
리턴 boolean

getDesktopUrl() 공개 메소드

Method to get desktop URL
public getDesktopUrl ( ) : string
리턴 string

getDevice() 공개 메소드

Method to get device name
public getDevice ( ) : string
리턴 string

getForce() 공개 메소드

Method to get force flag
public getForce ( ) : integer
리턴 integer

getMobileDevice() 공개 정적인 메소드

Static method to only get the mobile device.
public static getMobileDevice ( ) : string
리턴 string

getMobileUrl() 공개 메소드

Method to get mobile URL
public getMobileUrl ( ) : string
리턴 string

getUa() 공개 메소드

Method to get user-agent
public getUa ( ) : string
리턴 string

goToDesktop() 공개 메소드

Method to go to the desktop site.
public goToDesktop ( ) : void
리턴 void

goToMobile() 공개 메소드

Method to go to the mobile site.
public goToMobile ( ) : void
리턴 void

goToURL() 공개 메소드

Method to go to a specific URL.
public goToURL ( string $url ) : void
$url string
리턴 void

isAndroid() 공개 메소드

Method to get Android flag
public isAndroid ( ) : boolean
리턴 boolean

isApple() 공개 메소드

Method to get Apple flag
public isApple ( ) : boolean
리턴 boolean

isBlackberry() 공개 메소드

Method to get Blackberry flag
public isBlackberry ( ) : boolean
리턴 boolean

isMobile() 공개 메소드

Method to get is mobile flag
public isMobile ( ) : boolean
리턴 boolean

isMobileDevice() 공개 정적인 메소드

Static method to only detect a mobile device or not.
public static isMobileDevice ( ) : boolean
리턴 boolean

isOpera() 공개 메소드

Method to get Opera flag
public isOpera ( ) : boolean
리턴 boolean

isPre() 공개 메소드

Method to get Pre flag
public isPre ( ) : boolean
리턴 boolean

isTablet() 공개 메소드

Method to get is tablet flag
public isTablet ( ) : boolean
리턴 boolean

isTabletDevice() 공개 정적인 메소드

Static method to only detect a tablet device or not.
public static isTabletDevice ( ) : boolean
리턴 boolean

isWindows() 공개 메소드

Method to get Windows flag
public isWindows ( ) : boolean
리턴 boolean

route() 공개 메소드

Method to route to the appropriate URL
public route ( ) : void
리턴 void

setDesktopUrl() 공개 메소드

Method to set desktop URL
public setDesktopUrl ( string $url ) : Mobile
$url string
리턴 Mobile

setForce() 공개 메소드

Method to set force flag
public setForce ( integer $force ) : Mobile
$force integer
리턴 Mobile

setMobileUrl() 공개 메소드

Method to set mobile URL
public setMobileUrl ( string $url ) : Mobile
$url string
리턴 Mobile

프로퍼티 상세

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

Android flag
protected bool $android
리턴 boolean

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

Apple flag
protected bool $apple
리턴 boolean

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

Blackberry flag
protected bool $blackberry
리턴 boolean

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

Desktop website destination URL
protected string $desktopUrl
리턴 string

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

Mobile Device
protected string $device
리턴 string

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

Force flag
protected int $force
리턴 integer

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

Mobile detect flag
protected bool $mobile
리턴 boolean

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

Mobile website destination URL
protected string $mobileUrl
리턴 string

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

Opera flag
protected bool $opera
리턴 boolean

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

Pre flag
protected bool $pre
리턴 boolean

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

Tablet detect flag
protected bool $tablet
리턴 boolean

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

User agent property
protected string $ua
리턴 string

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

Windows flag
protected bool $windows
리턴 boolean