Mobile.class.php
619 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
class Facade_Mobile
{
/**
* 服务
*/
private static $service = null;
/**
*
* @return Service_News
*/
private static function service ()
{
if (! isset(self::$service))
{
self::$service = new Service_Mobile();
}
return self::$service;
}
/**
* 获取模块
*
* @return array
*/
public static function getModule()
{
return self::service()->getModule();
}
/**
* 设置模块状态
*
* @param int $id
* @param int $status
* @return boolan
*/
public static function setModuleStatus($id, $status)
{
return self::service()->setModuleStatus($id, $status);
}
}