public getBlogPostById ( integer $id ) : array | ||
$id | integer | |
Результат | array |
public function getBlogPostById(int $id) : array
{
$post = $this->db->row('SELECT
*
FROM
view_hull_blog_list
WHERE
status
AND published <= current_timestamp
AND postid = ?
', $id);
if (empty($post)) {
throw new EmulatePageNotFound();
}
return $this->getSnippet($this->postProcess($post), true);
}