Blame view

sources/apps/notify/personal.php 658 Bytes
42e4f8d60   Kload   add all apps
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  <?php
  OCP\Util::addScript('notify', 'personalSettings');
  OCP\Util::addStyle('notify', 'personalSettings');
  $tmpl = new OCP\Template('notify', 'personalSettings');
  $notificationClasses = OC_Notify::getClasses();
  $classes = array();
  foreach($notificationClasses as $c) {
  	//$l = OCP\Util::getL10N($c['appid'], null); //TODO: put this into notify.php
  	$appInfo = OCP\App::getAppInfo($c['appid']);
  	$classes[$c['id']] = array(
  		'blocked' => $c['blocked'],
  		'summary' => $c['summary'], //FIXME: translate this
  		'name' => $c['name'],
  		'appName' => $appInfo['name'],
  		'appid' => $c['appid']
  	);
  }
  $tmpl->assign('classes', $classes);
  return $tmpl->fetchPage();