r8112 추천 비추천 기능 옵셥 추가

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@8124 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2011-02-25 04:57:04 +00:00
parent 75b34ba9bc
commit 3894734590
4 changed files with 8 additions and 5 deletions

View file

@ -444,13 +444,13 @@
$comment_config = $oModuleModel->getModulePartConfig('comment',$module_srl);
if($point == -1){
if($comment_config->use_vote_down!='S') return new Object(-1, 'msg_invalid_request');
$args->below_point = 0;
}else{
if($comment_config->use_vote_up!='S') return new Object(-1, 'msg_invalid_request');
$args->more_point = 0;
}
$args->comment_srl = $comment_srl;
$args->point = $point;
$output = executeQueryArray('comment.getVotedMemberList',$args);
if(!$output->toBool()) return $output;

View file

@ -9,8 +9,9 @@
</columns>
<conditions>
<condition operation="equal" column="voted_log.comment_srl" var="comment_srl" filter="number" notnull="notnull" />
<condition operation="equal" column="voted_log.point" var="point" notnull="notnull" pipe="and" />
<condition operation="equal" column="voted_log.member_srl" default="member.member_srl" pipe="and" />
<condition operation="more" column="voted_log.point" var="more_point" pipe="and" />
<condition operation="below" column="voted_log.point" var="below_point" pipe="and" />
</conditions>
<navigation>
<index var="sort_index" default="voted_log.regdate" order="desc" />

View file

@ -1054,12 +1054,13 @@
$document_config = $oModuleModel->getModulePartConfig('document',$module_srl);
if($point == -1){
if($document_config->use_vote_down!='S') return new Object(-1, 'msg_invalid_request');
$args->below_point = 0;
}else{
if($document_config->use_vote_up!='S') return new Object(-1, 'msg_invalid_request');
$args->more_point = 0;
}
$args->document_srl = $document_srl;
$args->point = $point;
$output = executeQueryArray('document.getVotedMemberList',$args);
if(!$output->toBool()) return $output;

View file

@ -9,8 +9,9 @@
</columns>
<conditions>
<condition operation="equal" column="voted_log.document_srl" var="document_srl" filter="number" notnull="notnull" />
<condition operation="equal" column="voted_log.point" var="point" notnull="notnull" pipe="and" />
<condition operation="equal" column="voted_log.member_srl" default="member.member_srl" pipe="and" />
<condition operation="more" column="voted_log.point" var="more_point" pipe="and" />
<condition operation="below" column="voted_log.point" var="below_point" pipe="and" />
</conditions>
<navigation>
<index var="sort_index" default="voted_log.regdate" order="desc" />