Exemplo n.º 1
0
 /**
  * A string representing a link to this object's url.
  * Uses the user-defined object home page and user-defined maximum title length.
  * @param TITLE_FORMATTER $formatter Optional formatter to use.
  * @return string
  */
 public function title_as_link($formatter = null)
 {
     if ($this->id != Non_existent_user_id && $this->login->is_allowed(Privilege_set_user, Privilege_view, $this)) {
         return parent::title_as_link($formatter);
     }
     return $this->title_as_html($formatter);
 }