Esempio n. 1
0
 /**
  * modify comment
  */
 public function modify($uid, $comment_id, $star, $content)
 {
     $commentModelDb = new CommentModelDB();
     $res = $commentModelDb->modify($uid, $comment_id, $content, $star);
     if ($res) {
         return true;
     } else {
         return false;
     }
 }
Esempio n. 2
0
 /**
  * get list comment
  * http://www.missy-blue.com/comment/get_list/?format=json
  */
 public function getList()
 {
     $commentModelDb = new CommentModelDB();
     $result = $commentModelDb->getList(5);
     if (!empty($result)) {
         Message::showSucc('add comment success', $result);
     } else {
         Message::showError('add comment failed');
     }
 }
Esempio n. 3
0
 public function logicResume()
 {
     $commentDB = new CommentModelDB();
     $updateArr = array('' => 0);
     $whereArr = array();
     $whereArr['id'] = $_GET['id'];
     $rs = $commentDB->update($updateArr, $whereArr);
     Log::write($this->adminUserName, $this->ip, $_GET['id'], self::$controller . "__" . self::$action, $rs);
     $rs ? Message::showSucc('恢复成功') : Message::showError('恢复失败:' . implode(" ", $commentDB->getErrorInfo()));
 }