Activity.class.php
4.11 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<?php
class Facade_Activity
{
/**
* 服务
*/
private static $service = null;
/**
*
* @return Service_News
*/
private static function service ()
{
if (! isset(self::$service))
{
self::$service = new Service_Activity();
}
return self::$service;
}
/**
* 获取活动详情
*
* @return array
*/
public static function getActivityInfo()
{
return self::service()->getActivityInfo();
}
/**
* 获取活动详情
*
* @param int $id
* @return array
*/
public static function getActivityInfoById($id)
{
return self::service()->getActivityInfoById($id);
}
/**
* 设置活动详情
*
* @param string $title
* @param string $content
* @param string $client_content
* @return int
*/
public static function setActivityInfo($title, $content, $client_content)
{
return self::service()->setActivityInfo($title, $content, $client_content);
}
/**
* 根据ID设置活动详情
*
* @param int $id
* @param string $title
* @param string $content
* @param string $client_content
* @return array
*/
public static function setActivityInfoById($id, $title, $content, $client_content)
{
return self::service()->setActivityInfoById($id, $title, $content, $client_content);
}
/**
* 删除活动详情
*
* @param string $id
* @return boolean
*/
public static function delActivityInfo($id)
{
return self::service()->delActivityInfo($id);
}
/**
* 获取所有活动计划
*
* @return array
*/
public static function getActivityPlan()
{
return self::service()->getActivityPlan();
}
/**
* 根据parent_id获取活动计划
*
* @param int $parent_id
* @return array
*/
public static function getActivityPlanByParentId($parent_id)
{
return self::service()->getActivityPlanByParentId($parent_id);
}
/**
* 增加活动计划
*
* @param int $parent_id
* @param int $title
* @param string $content
* @param string $pic
* @param string $place
* @param string $start_time
* @param string $end_time
* @return int
*/
public static function setActivityPlan($parent_id, $title, $content, $pic, $place, $start_time, $end_time)
{
return self::service()->setActivityPlan($parent_id, $title, $content, $pic, $place, $start_time, $end_time);
}
/**
* 根据ID更新活动计划
*
* @param int $id
* @param int $parent_id
* @param int $title
* @param string $content
* @param string $pic
* @param string $place
* @param string $start_time
* @param string $end_time
* @return int
*/
public static function setActivityPlanById($id, $parent_id, $title, $content, $pic, $place, $start_time, $end_time)
{
return self::service()->setActivityPlanById($id, $parent_id, $title, $content, $pic, $place, $start_time, $end_time);
}
/**
* 删除活动计划
*
* @param int $id
* @return boolean
*/
public static function delActivityPlan($id)
{
return self::service()->delActivityPlan($id);
}
/**
* 获取所有活动主题
*
* @return array
*/
public static function getActivityTopic()
{
return self::service()->getActivityTopic();
}
/**
* 增加活动主题
*
* @param int $title
* @param string $place
* @param string $start_time
* @param string $end_time
* @return int
*/
public static function setActivityTopic($title, $place, $start_time, $end_time)
{
return self::service()->setActivityTopic($title, $place, $start_time, $end_time);
}
/**
* 根据ID更新活动主题
*
* @param int $id
* @param int $title
* @param string $place
* @param string $start_time
* @param string $end_time
* @return int
*/
public static function setActivityTopicById($id, $title, $place, $start_time, $end_time)
{
return self::service()->setActivityTopicById($id, $title, $place, $start_time, $end_time);
}
/**
* 删除活动主题
*
* @param int $id
* @return boolean
*/
public static function delActivityTopic($id)
{
return self::service()->delActivityTopic($id);
}
/**
* 获取活动主题
*
* @param int $id
* @return array
*/
public static function getActivityTopicId($id)
{
return self::service()->getActivityTopicId($id);
}
}