-
Notifications
You must be signed in to change notification settings - Fork 0
/
parserlink.admin.view.php
56 lines (51 loc) · 1.8 KB
/
parserlink.admin.view.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
class parserlinkAdminView extends parserlink
{
function init()
{
$this->setTemplatePath($this->module_path . 'tpl');
$this->setTemplateFile(strtolower(str_replace('dispParserlinkAdmin', '', $this->act)));
}
function dispParserlinkAdminConfig()
{
$config = self::getConfig();
/* @var $oModuleModel moduleModel */
$oModuleModel = getModel('module');
$skin_list = $oModuleModel->getSkins($this->module_path);
$mid_list = $oModuleModel->getMidList();
Context::set('mid_list', $mid_list);
Context::set('skin_list', $skin_list);
Context::set('config', $config);
Context::set('object_cache', config('cache.type'));
Context::set('is_rhymix', defined('RX_BASEDIR'));
}
function dispParserlinkAdminDataList()
{
$args = new stdClass();
$args->page = Context::get('page');
$args->list_order = 'update_time';
$args->list_count = '20';
$args->page_count = '10';
$output = executeQueryArray('parserlink.getParserlinkDataList', $args);
Context::set('total_count', $output->page_navigation->total_count);
Context::set('total_page', $output->page_navigation->total_page);
Context::set('page', $output->page);
Context::set('parserlink', $output->data);
Context::set('page_navigation', $output->page_navigation);
}
function dispParserlinkAdminSnsDataList()
{
$args = new stdClass();
$args->page = Context::get('page');
$args->list_order = 'update_time';
$args->list_count = '20';
$args->page_count = '10';
$output = executeQueryArray('parserlink.getParserlinkSnsDataList', $args);
Context::set('total_count', $output->page_navigation->total_count);
Context::set('total_page', $output->page_navigation->total_page);
Context::set('page', $output->page);
Context::set('parserlink', $output->data);
Context::set('page_navigation', $output->page_navigation);
}
}
/* End of file */