public function getBlogPosts()
    {
        $blog_posts = BlogPost::get()
            ->filter('ParentID', $this->ID)
            ->where(sprintf('"PublishDate" < \'%s\'', Convert::raw2sql(DBDatetime::now())));

        $this->extend('updateGetBlogPosts', $blog_posts);
        return $blog_posts;
    }
public function getBlogPosts()
    {
        $blog_posts = BlogPost::get()
            ->filter('ParentID', $this->ID)
            ->where(sprintf('"PublishDate" < \'%s\'', Convert::raw2sql(DBDatetime::now())));

        $this->extend('updateGetBlogPosts', $blog_posts);
        return $blog_posts;
    }
public function getBlogPosts ( ) { $ blog_posts = BlogPost :: get ( ) -> filter ( 'ParentID' , $ this -> ID ) -> where ( sprintf ( '"PublishDate" < \'%s\'' , Convert :: raw2sql ( DBDatetime :: now ( ) ) ) ) ; $ this -> extend ( 'updateGetBlogPosts' , $ blog_posts ) ; return $ blog_posts ; }
Return visible blog posts.

@return DataList of BlogPost objects
Return visible blog posts .