Свойство | Type | Description | |
---|---|---|---|
$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 |
Méthode | Description | |
---|---|---|
__construct ( string $mobile = null, string $desktop = null, integer $force ) : |
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 ) : |
Method to set desktop URL | |
setForce ( integer $force ) : |
Method to set force flag | |
setMobileUrl ( string $url ) : |
Method to set mobile URL |
Méthode | Description | |
---|---|---|
detect ( ) : boolean | Method to detect whether or not the device is a mobile device or not. |
public getDesktopUrl ( ) : string | ||
Résultat | string |
public static getMobileDevice ( ) : string | ||
Résultat | string |
public getMobileUrl ( ) : string | ||
Résultat | string |
public goToDesktop ( ) : void | ||
Résultat | void |
public goToMobile ( ) : void | ||
Résultat | void |
public isBlackberry ( ) : boolean | ||
Résultat | boolean |
public static isMobileDevice ( ) : boolean | ||
Résultat | boolean |
public static isTabletDevice ( ) : boolean | ||
Résultat | boolean |
public setDesktopUrl ( string $url ) : |
||
$url | string | |
Résultat |
public setMobileUrl ( string $url ) : |
||
$url | string | |
Résultat |
protected string $desktopUrl | ||
Résultat | string |
protected string $mobileUrl | ||
Résultat | string |