-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotification.admin.model.php
34 lines (31 loc) · 1.11 KB
/
notification.admin.model.php
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
<?php
/**
* vi:set sw=4 ts=4 noexpandtab fileencoding=utf8:
* @class notificationAdminModel
* @author diver([email protected])
* @brief notificationAdminModel
*/
class notificationAdminModel extends notification {
function getNotificationAdminDelete() {
// load notification info
$args->notification_srl = Context::get('notification_srl');
$output = executeQuery("notification.getNotiComInfo", $args);
$id_list = $output->data->id_list;
$group_srl_list = $output->data->group_srl_list;
$notification_info = $output->data;
$args->notification_srls = Context::get('notification_srl');
$output = executeQueryArray("notification.getModuleInfoByNotificationSrl", $args);
$mid_list = array();
if ($output->data) {
foreach ($output->data as $no => $val) {
$mid_list[] = $val->mid;
}
}
$notification_info->mid_list = join(',', $mid_list);
Context::set('notification_info', $notification_info);
$oTemplate = &TemplateHandler::getInstance();
$tpl = $oTemplate->compile($this->module_path.'tpl', 'delete');
$this->add('tpl', str_replace("\n"," ",$tpl));
}
}
?>