Method |
Description |
|
__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 |
|