2023-04-10 06:24:59 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace OCA\Memories\Settings;
|
|
|
|
|
|
|
|
use OCP\AppFramework\Http\TemplateResponse;
|
|
|
|
use OCP\IConfig;
|
|
|
|
use OCP\IL10N;
|
|
|
|
use OCP\Settings\ISettings;
|
|
|
|
|
|
|
|
class Admin implements ISettings
|
|
|
|
{
|
|
|
|
/** @var IConfig */
|
|
|
|
private $config;
|
|
|
|
|
|
|
|
/** @var IL10N */
|
|
|
|
private $l;
|
|
|
|
|
|
|
|
public function __construct(
|
|
|
|
IConfig $config,
|
|
|
|
IL10N $l
|
|
|
|
) {
|
|
|
|
$this->config = $config;
|
|
|
|
$this->l = $l;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return TemplateResponse
|
|
|
|
*/
|
|
|
|
public function getForm()
|
|
|
|
{
|
2023-05-26 16:47:05 +00:00
|
|
|
\OCP\Util::addScript('memories', 'memories-admin');
|
2023-04-10 06:24:59 +00:00
|
|
|
|
2023-05-26 16:47:05 +00:00
|
|
|
return new TemplateResponse('memories', 'main', []);
|
2023-04-10 06:24:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getSection()
|
|
|
|
{
|
|
|
|
return 'memories';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getPriority()
|
|
|
|
{
|
|
|
|
return 50;
|
|
|
|
}
|
|
|
|
}
|