* @author André Klaßen * @license GPL 2 or later */ namespace Studip\Activity; class SystemContext extends Context { /** * create new user-context * * @param string $user_id */ public function __construct($observer) { $this->observer = $observer; } /** * {@inheritdoc} */ protected function getProvider() { $this->addProvider('Studip\Activity\NewsProvider'); return $this->provider; } /** * {@inheritdoc} */ public function getRangeId() { return 'system'; } /** * {@inheritdoc} */ public function getContextType() { return 'system'; } /** * {@inheritdoc} */ public function getContextFullname($format = 'default') { return _('Stud.IP'); } }