/**
  * Generate the event name column.
  *
  * @param stdClass $event event data.
  * @return string HTML for the event name column
  */
 public function col_eventname($event)
 {
     // Event name.
     if ($this->filterparams->logreader instanceof logstore_legacy\log\store) {
         // Hack for support of logstore_legacy.
         $eventname = $event->eventname;
     } else {
         $eventname = $event->get_name();
     }
     if ($url = $event->get_url()) {
         $eventname = $this->action_link($url, $eventname, 'action');
     }
     return $eventname;
 }
Пример #2
0
 /**
  * Generate the event name column.
  *
  * @param stdClass $event event data.
  * @return string HTML for the event name column
  */
 public function col_eventname($event)
 {
     // Event name.
     if ($this->filterparams->logreader instanceof logstore_legacy\log\store) {
         // Hack for support of logstore_legacy.
         $eventname = $event->eventname;
     } else {
         $eventname = $event->get_name();
     }
     // Only encode as an action link if we're not downloading.
     if (($url = $event->get_url()) && empty($this->download)) {
         $eventname = $this->action_link($url, $eventname, 'action');
     }
     return $eventname;
 }