ZBlogPHP::GetPostByID PHP Method

GetPostByID() public method

通过ID获取文章实例
public GetPostByID ( integer $id ) : Post
$id integer
return Post
    public function GetPostByID($id)
    {
        return $this->GetSomeThing('posts', 'ID', $id, 'Post');
    }
ZBlogPHP