XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
Mobile Class Reference

Public Member Functions

getInstance ()
 
 isFromMobilePhone ()
 
 _isFromMobilePhone ()
 
 isMobileCheckByAgent ()
 
 isMobilePadCheckByAgent ()
 
 setMobile ($ismobile)
 
 isMobileEnabled ()
 

Public Attributes

 $ismobile = NULL
 

Detailed Description

Mobile class

Author
NAVER (devel.nosp@m.oper.nosp@m.s@xpr.nosp@m.esse.nosp@m.ngine.nosp@m..com)

Definition at line 9 of file Mobile.class.php.

Member Function Documentation

Mobile::_isFromMobilePhone ( )

Get current mobile mode

Returns
bool

Definition at line 49 of file Mobile.class.php.

& Mobile::getInstance ( )

Get instance of Mobile class(for singleton)

Returns
Mobile

Definition at line 23 of file Mobile.class.php.

Mobile::isFromMobilePhone ( )

Get current mobile mode

Returns
bool If mobile mode returns true or false

Definition at line 38 of file Mobile.class.php.

Mobile::isMobileCheckByAgent ( )

Detect mobile device by user agent

Returns
bool Returns true on mobile device or false.

Definition at line 146 of file Mobile.class.php.

Mobile::isMobileEnabled ( )

Definition at line 235 of file Mobile.class.php.

Mobile::isMobilePadCheckByAgent ( )

Check if user-agent is a tablet PC as iPad or Andoid tablet.

Returns
bool TRUE for tablet, and FALSE for else.

Definition at line 180 of file Mobile.class.php.

Mobile::setMobile (   $ismobile)

Set mobile mode

Parameters
bool$ismobile
Returns
void

Definition at line 229 of file Mobile.class.php.

Member Data Documentation

Mobile::$ismobile = NULL

Definition at line 16 of file Mobile.class.php.


The documentation for this class was generated from the following file: