public function getPostTitle($post, $link = true) { if ($link) { return $this->getPostLink($post, $post['BlogPost']['name']); } else { return $post['BlogPost']['name']; } }