88 public $mTable =
'xoopscomments';
89 public $mPrimary =
'com_id';
90 public $mClass =
'LegacyCommentObject';
95 public $mUpdateSuccess;
100 public $mDeleteSuccess;
104 parent::__construct($db);
110 public function insert(&$comment, $force =
false)
112 if (parent::insert($comment, $force)) {
113 $this->mUpdateSuccess->call($comment);
126 public function delete(&$comment, $force =
false)
128 $criteria =
new Criteria(
'com_pid', $comment->get(
'com_id'));
131 if (parent::delete($comment, $force)) {
132 $this->mDeleteSuccess->call($comment);
149 $sql =
'SELECT DISTINCT com_modid FROM ' . $this->mTable;
150 $res = $this->db->query($sql);
152 while ($row = $this->db->fetchArray($res)) {
153 $ret[] = $row[
'com_modid'];