/** * addPost * * @param Post $post post to be added to the thread's array of posts. */ function addPost($post) { $post->setBoard($this->board); $post->setThread($this); $this->posts[] = $post; $this->postIds[] = $post->getNo(); $this->parseQuotes($post->com, $post->no); }