Client.php
682 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
<?php
/**
* Created by JetBrains PhpStorm.
* User: elkan
* Date: 14-8-5
* Time: 下午6:04
* To change this template use File | Settings | File Templates.
*/
class YHMSupport_Models_Downlog_Client {
/**
*
* @var YHMSupport_Models_Downlog_Dao
*/
private static $dao;
/**
*
* @return YHMSupport_Models_Downlog_Dao
*/
static private function dao() {
if (empty(self::$dao)) {
self::$dao = new YHMSupport_Models_Downlog_Dao();
}
return self::$dao;
}
/**
* 获取搜索的banner
* @return type
*/
static function add() {
return self::dao()->add();
}
}