Example #1
0
 /**
  * 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()));
 }
Example #2
0
 /**
  * @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));
 }