コード例 #1
0
ファイル: comment_list.php プロジェクト: uralmax89/onxshop
 /**
  * get list
  */
 public function getList()
 {
     require_once 'models/common/common_comment.php';
     $Comment = new common_comment();
     $list = $Comment->getCommentList(false, 'id DESC');
     return $list;
 }
コード例 #2
0
ファイル: wordpress.php プロジェクト: AppChecker/onxshop
 /**
  * insert node
  */
 public function insertComment($data)
 {
     $Comment = new common_comment();
     //print_r($data);
     //return 1;
     if ($id = $Comment->insert($data)) {
         return $id;
     } else {
         msg("Cannot insert comment " . print_r($data, true), 'error');
         return false;
     }
 }