示例#1
0
 protected function loadBlogPostDataByCommentId($commentId)
 {
     if (isset($this->blogPostData)) {
         return $this->blogPostData;
     }
     $this->blogPostData = \CBlogPost::getList(array(), array('COMMENT_ID' => (int) $commentId), false, false, array('ID', 'PATH', 'TITLE', 'BLOG_ID', 'AUTHOR_ID', 'HAS_SOCNET_ALL'))->fetch();
     return $this->blogPostData;
 }