示例#1
0
 public function move(Wall $dest, $user)
 {
     CommentsIndex::changeParent(0, $dest->getId(), $this->mThreadId);
     $wallHistory = new WallHistory($this->mCityId);
     $wallHistory->moveThread($this->mThreadId, $dest->getId());
     $main = $this->getThreadMainMsg();
     $main->load();
     // this is use to build a history in contribiution page
     $main->markAsMove($user);
     $this->invalidateCache();
 }