Example #1
0
 /**
  * Name
  * @return string
  */
 public function name()
 {
     $comment = $this->Activity->comment();
     if ($comment) {
         return $comment;
     }
     return __('noname');
 }
Example #2
0
 /**
  * Title with comment
  * @return string
  */
 public function titleWithComment()
 {
     if ($this->Activity->comment() != '') {
         return $this->titleByTypeOrSport() . ': ' . $this->Activity->comment();
     }
     return $this->titleByTypeOrSport();
 }
Example #3
0
 /**
  * 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>');
 }