original_string: 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];
      }
code: 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];
      }
code_tokens: 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 ] ; }
docstring: Returns the specified forum post from its internal cache.
  
  @throws \dml_missing_record_exception
  @param int $postid
  @return stdClass
docstring_tokens: Returns the specified forum post from its internal cache .