/** * Name * @return string */ public function name() { $comment = $this->Activity->comment(); if ($comment) { return $comment; } return __('noname'); }
/** * Title with comment * @return string */ public function titleWithComment() { if ($this->Activity->comment() != '') { return $this->titleByTypeOrSport() . ': ' . $this->Activity->comment(); } return $this->titleByTypeOrSport(); }
/** * Get link with comment as text * @return string HTML-link to this training */ public function linkWithComment() { if ($this->Activity->comment() != '') { return $this->link($this->Activity->comment()); } return $this->link('<em>' . __('unknown') . '</em>'); }