This repository has been archived on 2024-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
epubreader/lib/Settings/PersonalSection.php
Michel Roux 7da83b2595
All checks were successful
epubreader / nextcloud-22 (push) Successful in 1m4s
epubreader / nextcloud-27 (push) Successful in 56s
cleanup (again)
2023-08-02 22:04:03 +02:00

62 lines
1.2 KiB
PHP

<?php
/**
* ownCloud - Epubreader App.
*
* @author Frank de Lange
* @copyright 2014,2018 Frank de Lange
*
* This file is licensed under the Affero General Public License version 3 or
* later.
*/
namespace OCA\Epubreader\Settings;
use OCA\Epubreader\AppInfo\Application;
use OCP\IL10N;
use OCP\IURLGenerator;
use OCP\Settings\IIconSection;
class PersonalSection implements IIconSection
{
private IURLGenerator $urlGenerator;
private IL10N $l;
public function __construct(IURLGenerator $urlGenerator, IL10N $l)
{
$this->urlGenerator = $urlGenerator;
$this->l = $l;
}
/**
* returns the relative path to an 16*16 icon describing the section.
*/
public function getIcon(): string
{
return $this->urlGenerator->imagePath(Application::APP_ID, 'app.svg');
}
/**
* returns the ID of the section. It is supposed to be a lower case string,.
*/
public function getID(): string
{
return Application::APP_ID;
}
/**
* returns the translated name as it should be displayed.
*/
public function getName(): string
{
return $this->l->t('EPUB/CBZ/PDF ebook reader');
}
/**
* returns priority for positioning.
*/
public function getPriority(): int
{
return 20;
}
}