diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2017-05-13 21:31:25 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2017-05-13 21:35:17 +0200 |
commit | 53822bb4bc21cadc135d70d3d099c5fd117424b0 (patch) | |
tree | 0fe2e35c648cf5441fb3be7f7412aa11d8cfedc1 /lib/Settings/Section.php | |
parent | 86c39a75f04a42be50b7f685f84dae46e54fc137 (diff) |
add new apis
Diffstat (limited to 'lib/Settings/Section.php')
-rw-r--r-- | lib/Settings/Section.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/Settings/Section.php b/lib/Settings/Section.php new file mode 100644 index 000000000..5e1e47476 --- /dev/null +++ b/lib/Settings/Section.php @@ -0,0 +1,33 @@ +<?php + +namespace OCA\News\Settings; + +use OCP\IL10N; +use OCP\IURLGenerator; +use OCP\Settings\ISection; + +class Section implements ISection { + private $l; + private $url; + + public function __construct(IURLGenerator $url, IL10N $l) { + $this->url = $url; + $this->l = $l; + } + + public function getID() { + return 'news'; + } + + public function getName() { + return $this->l->t('News'); + } + + public function getPriority() { + return 10; + } + + public function getIcon() { + return $this->url->imagePath('news', 'app.svg'); + } +}
\ No newline at end of file |