mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 14:52:24 +09:00
spammer manage
mod spammer popup view page mod some code
This commit is contained in:
parent
de30ecfb39
commit
3bedab7e95
15 changed files with 531 additions and 4 deletions
|
|
@ -1054,6 +1054,44 @@ class commentModel extends comment
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the total number of comments in corresponding with member_srl.
|
||||
* @param int $member_srl
|
||||
* @return int
|
||||
*/
|
||||
function getCommentCountByMemberSrl($member_srl)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->member_srl = $member_srl;
|
||||
$output = executeQuery('comment.getCommentCountByMemberSrl', $args);
|
||||
return (int) $output->data->count;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get comment list of the doc in corresponding woth member_srl.
|
||||
* @param int $member_srl
|
||||
* @param array $columnList
|
||||
* @param int $page
|
||||
* @param bool $is_admin
|
||||
* @param int $count
|
||||
* @return object
|
||||
*/
|
||||
function getCommentListByMemberSrl($member_srl, $columnList = array(), $page = 0, $is_admin = FALSE, $count = 0)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->member_srl = $member_srl;
|
||||
$args->list_count = $count;
|
||||
$output = executeQuery('comment.getCommentListByMemberSrl', $args, $columnList);
|
||||
$comment_list = $output->data;
|
||||
|
||||
if(!$comment_list) return array();
|
||||
if(!is_array($comment_list)) $comment_list = array($comment_list);
|
||||
|
||||
return $comment_list;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
/* End of file comment.model.php */
|
||||
/* Location: ./modules/comment/comment.model.php */
|
||||
|
|
|
|||
11
modules/comment/queries/getCommentCountByMemberSrl.xml
Normal file
11
modules/comment/queries/getCommentCountByMemberSrl.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<query id="getCommentCountByMemberSrl" action="select">
|
||||
<tables>
|
||||
<table name="comments" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="count(*)" alias="count" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="member_srl" var="member_srl" filter="number" notnull="notnull" />
|
||||
</conditions>
|
||||
</query>
|
||||
19
modules/comment/queries/getCommentListByMemberSrl.xml
Normal file
19
modules/comment/queries/getCommentListByMemberSrl.xml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<query id="getCommentList" action="select">
|
||||
<tables>
|
||||
<table name="comments" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="comment_srl" />
|
||||
<column name="parent_srl" />
|
||||
<column name="regdate" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="member_srl" var="member_srl" filter="number" notnull="notnull" />
|
||||
</conditions>
|
||||
<navigation>
|
||||
<index var="list_order" default="list_order" order="asc" />
|
||||
<list_count var="list_count" default="20" />
|
||||
<page_count var="page_count" default="10" />
|
||||
<page var="page" default="1" />
|
||||
</navigation>
|
||||
</query>
|
||||
Loading…
Add table
Add a link
Reference in a new issue