/** * Retrieve text to display * @return string */ public function getTextToDisplay() { $text = parent::getTextToDisplay(); if (substr($text, 0, 1) != '*' && substr($text, -1) != '*') { return '*' . $text . '*'; } else { return $text; } }