/** * Runs the notification widget */ public function run() { if (Yii::$app->user->isGuest) { return; } return $this->render('overview', array('update' => \humhub\modules\notification\controllers\ListController::getUpdates())); }
/** * @inheritdoc */ public function run() { if (Yii::$app->user->isGuest) { return; } return $this->render('overview', array('update' => \humhub\modules\notification\controllers\ListController::getUpdates(), 'updateInterval' => Yii::$app->getModule('notification')->pollClientUpdateInterval)); }