/** * 添加一条回收站记录(帖子) * * @param PwReplyRecycleDm $dm * return bool */ public function add(PwReplyRecycleDm $dm) { if (($result = $dm->beforeAdd()) !== true) { return $result; } return $this->_getDao()->add($dm->getData()); }
public function gleanData($value) { $dm = new PwReplyRecycleDm(); $dm->setPid($value['pid'])->setTid($value['tid'])->setFid($value['fid'])->setOperateTime(Pw::getTime())->setOperateUsername($this->srv->user->username)->setReason($this->srv->reason); $this->record[] = $dm; if ($value['disabled'] == 0) { $this->tids[$value['tid']]++; } }