mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-22 03:42:18 +09:00
referer module (#279)
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3106 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
74ad4fc4a7
commit
ae357bceb0
18 changed files with 384 additions and 0 deletions
43
modules/referer/referer.model.php
Normal file
43
modules/referer/referer.model.php
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
<?php
|
||||
/**
|
||||
* @class refererModel
|
||||
* @author haneul (haneul0318@gmail.com)
|
||||
* @brief referer 모듈의 Model class
|
||||
**/
|
||||
|
||||
class refererModel extends referer {
|
||||
function init()
|
||||
{
|
||||
}
|
||||
|
||||
function isInsertedHost($host) {
|
||||
$args->host = $host;
|
||||
$output = executeQuery('referer.getHostStatus', $args);
|
||||
return $output->data->count?true:false;
|
||||
}
|
||||
|
||||
function getLogList($obj)
|
||||
{
|
||||
$query_id = 'referer.getRefererLogList';
|
||||
|
||||
$args->sort_index = 'regdate';
|
||||
$args->page = $obj->page?$obj->page:1;
|
||||
$args->list_count = $obj->list_count?$obj->list_count:20;
|
||||
$args->page_count = $obj->page_count?$obj->page_count:10;
|
||||
|
||||
$output = executeQuery($query_id, $args);
|
||||
|
||||
// 결과가 없거나 오류 발생시 그냥 return
|
||||
if(!$output->toBool()||!count($output->data)) return $output;
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
function getRefererStatus()
|
||||
{
|
||||
$args->sort_index = 'count';
|
||||
return executeQuery("referer.getRefererStatistics", $args);
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue