EGOCMS
24.0
EGOTEC Content-Managament-System
Ego_Mobile.php
gehe zur Dokumentation dieser Datei
1
<?php
7
require_once(
'PEAR/Mobile_Detect.php'
);
8
9
class
Ego_Mobile
{
15
private
$detect;
16
17
public
function
__construct
() {
18
$this->detect =
new
Mobile_Detect();
19
}
20
26
public
function
isMobile
() {
27
return
(
bool
) $this->detect->isMobile();
28
}
29
35
public
function
isTablet
() {
36
return
(
bool
) $this->detect->isTablet();
37
}
38
}
39
?>
Ego_Mobile
Definition:
Ego_Mobile.php:9
Ego_Mobile\__construct
__construct()
Definition:
Ego_Mobile.php:17
Ego_Mobile\isTablet
isTablet()
Definition:
Ego_Mobile.php:35
Ego_Mobile\isMobile
isMobile()
Definition:
Ego_Mobile.php:26
lib
base
Ego_Mobile.php
Erzeugt am Mit Feb 14 2024 12:03:43 für EGOCMS von
1.9.1