public function copyThread(PwTopicDm $topicDm, $newTid)
 {
     $special = $topicDm->getField('special');
     if ($special != 1) {
         return;
     }
     return $this->copyPoll($topicDm->tid, $newTid);
 }
 public function copyThread(PwTopicDm $topicDm, $newTid)
 {
     $ifupload = $topicDm->getField('ifupload');
     if (!$ifupload) {
         return;
     }
     $tid = $topicDm->tid;
     $this->attachs = $this->_getService()->getAttachByTid($tid, array(0));
     if (!$this->attachs) {
         return;
     }
     foreach ($this->attachs as $v) {
         $dm = new PwThreadAttachDm();
         $dm->setFid($v['fid'])->setTid($newTid)->setPid($v['pid'])->setWidth($v['width'])->setHeight($v['height'])->setSpecial($v['special'])->setCost($v['cost'])->setCtype($v['ctype'])->addHits($v['hits'])->setName($v['name'])->setType($v['type'])->setSize($v['size'])->setPath($v['path'])->setIfthumb($v['ifthumb'])->setCreatedUser($v['created_userid'])->setCreatedTime($v['created_time'])->setApp($v['app'])->setDescrip($v['descrip']);
         $this->_getService()->addAttach($dm);
     }
 }