VuFind API Documentation

Mobile
in package

Mobile Device Detection Wrapper

Tags
category

VuFind

author

Andrew S. Nagy vufind-tech@lists.sourceforge.net

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

MobileESP Project

Table of Contents

$detector  : uagent_info
Mobile detection object
$enabled  : bool
Are mobile themes enabled?
__construct()  : mixed
Constructor
detect()  : bool
Function to detect if a mobile device is being used.
enable()  : void
Function to set enabled status of mobile themes.
enabled()  : bool
Function to check whether mobile theme is configured.

Properties

$detector

Mobile detection object

protected uagent_info $detector

$enabled

Are mobile themes enabled?

protected bool $enabled = false

Methods

__construct()

Constructor

public __construct([uagent_info $detector = null ]) : mixed
Parameters
$detector : uagent_info = null

Detector object to wrap (null to create one)

Return values
mixed

detect()

Function to detect if a mobile device is being used.

public detect() : bool
Return values
bool

enable()

Function to set enabled status of mobile themes.

public enable([bool $enabled = true ]) : void
Parameters
$enabled : bool = true

Are mobile themes enabled?

Return values
void

enabled()

Function to check whether mobile theme is configured.

public enabled() : bool
Return values
bool

Search results