6 if (!defined('GNUSOCIAL')) { exit(1); }
8 class EventsAction extends ShowstreamAction
10 public function getStream()
12 /* whose events */ /* are these the user's own events? */
13 $stream = new EventsNoticeStream($this->target, $this->scoped);
19 // TRANS: Page title for sample plugin. %s is a user nickname.
20 return sprintf(_m('%s\'s happenings'), $this->target->getNickname());
29 function showEmptyList() {
30 $message = sprintf(_('This is %1$s\'s event stream, but %1$s hasn\'t received any events yet.'), $this->target->getNickname()) . ' ';
32 $this->elementStart('div', 'guide');
33 $this->raw(common_markup_to_html($message));
34 $this->elementEnd('div');
38 * Return true if read only.
40 * Some actions only read from the database; others read and write.
41 * The simple database load-balancer built into StatusNet will
42 * direct read-only actions to database mirrors (if they are configured),
43 * and read-write actions to the master database.
45 * This defaults to false to avoid data integrity issues, but you
46 * should make sure to overload it for performance gains.
48 * @param array $args other arguments, if RO/RW status depends on them.
50 * @return boolean is read only action?
52 function isReadOnly($args)