/** * Sets $this->data['stars'] with an HTML snippet showing the stars */ public function get_stars($rating) { parent::get_stars($rating); $this->data['stars'] .= ' (' . $this->data['numberofratings'] . ')'; }