Ejemplo n.º 1
0
 /**
  * Title for an associated history item.
  * Override this function to show other information for an history item's object in the title. The subscriber
  * for whom the title is prepared is also sent, so that any subscriber settings can be used to render the
  * title.
  * @param ENTRY $obj
  * @param SUBSCRIBER $subscriber
  * @return string
  */
 public function title_for_history_item($obj, $subscriber)
 {
     $type_info = $this->type_info();
     $type_info->singular_title;
     $kind = $obj->supported_kind_as_text();
     if ($kind) {
         $Result = $type_info->singular_title . ' ' . $kind;
     } else {
         if ($subscriber->show_history_item_as_subject) {
             $Result = $obj->title_as_plain_text();
         } else {
             $Result = $type_info->singular_title . ' updated';
         }
     }
     $location = $this->object_url_as_text();
     return $Result . " ({$location})";
 }