protected function get_post($postid) {
        if (empty($this->postsdata[$postid])) {
            $this->postsdata[$postid] = forum_get_post_full($postid);
            if (!$this->postsdata[$postid]) {
                throw new \dml_missing_record_exception('forum_posts');
            }
        }
        return $this->postsdata[$postid];
    }
protected function get_post($postid) {
        if (empty($this->postsdata[$postid])) {
            $this->postsdata[$postid] = forum_get_post_full($postid);
            if (!$this->postsdata[$postid]) {
                throw new \dml_missing_record_exception('forum_posts');
            }
        }
        return $this->postsdata[$postid];
    }
protected function get_post ( $ postid ) { if ( empty ( $ this -> postsdata [ $ postid ] ) ) { $ this -> postsdata [ $ postid ] = forum_get_post_full ( $ postid ) ; if ( ! $ this -> postsdata [ $ postid ] ) { throw new \ dml_missing_record_exception ( 'forum_posts' ) ; } } return $ this -> postsdata [ $ postid ] ; }
Returns the specified forum post from its internal cache.

@throws \dml_missing_record_exception
@param int $postid
@return stdClass
Returns the specified forum post from its internal cache .