public function get_total_comments() { if (!isset($this->data['total_comments'])) { $this->data['total_comments'] = comment_model::get_total_comments($this->get_id()); } return $this->data['total_comments']; }