mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-30 15:52:17 +09:00
댓글에 대해서도 추천, 비추천
This commit is contained in:
parent
c2b78f4468
commit
6f1066d3b9
9 changed files with 150 additions and 5 deletions
|
|
@ -281,6 +281,29 @@ class commentItem extends Object
|
|||
return htmlspecialchars($this->get('nick_name'), ENT_COMPAT | ENT_HTML401, 'UTF-8', false);
|
||||
}
|
||||
|
||||
function getVote()
|
||||
{
|
||||
if(!$this->comment_srl) return false;
|
||||
if($_SESSION['voted_comment'][$this->comment_srl])
|
||||
{
|
||||
return $_SESSION['voted_comment'][$this->comment_srl];
|
||||
}
|
||||
|
||||
$logged_info = Context::get('logged_info');
|
||||
|
||||
$args = new stdClass();
|
||||
$args->member_srl = $logged_info->member_srl;
|
||||
$args->comment_srl = $this->comment_srl;
|
||||
$output = executeQuery('comment.getCommentVotedLog', $args);
|
||||
|
||||
if($output->data->point)
|
||||
{
|
||||
return $output->data->point;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return content with htmlspecialchars
|
||||
* @return string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue