2023-04-10 06:24:59 +00:00
|
|
|
<?php
|
|
|
|
|
2023-10-15 02:20:21 +00:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2023-04-10 06:24:59 +00:00
|
|
|
namespace OCA\Memories\Settings;
|
|
|
|
|
2023-10-15 01:51:17 +00:00
|
|
|
use OCA\Memories\AppInfo\Application;
|
2023-05-28 16:59:34 +00:00
|
|
|
use OCA\Memories\Controller\PageController;
|
2023-04-10 06:24:59 +00:00
|
|
|
use OCP\AppFramework\Http\TemplateResponse;
|
|
|
|
use OCP\Settings\ISettings;
|
|
|
|
|
|
|
|
class Admin implements ISettings
|
|
|
|
{
|
2023-10-15 01:51:17 +00:00
|
|
|
public function __construct() {}
|
2023-04-10 06:24:59 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return TemplateResponse
|
|
|
|
*/
|
|
|
|
public function getForm()
|
|
|
|
{
|
2023-10-15 01:51:17 +00:00
|
|
|
\OCP\Util::addScript(Application::APPNAME, 'memories-admin');
|
2023-04-10 06:24:59 +00:00
|
|
|
|
2023-05-28 16:59:34 +00:00
|
|
|
return new TemplateResponse('memories', 'main', PageController::getMainParams());
|
2023-04-10 06:24:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getSection()
|
|
|
|
{
|
2023-10-15 01:51:17 +00:00
|
|
|
return Application::APPNAME;
|
2023-04-10 06:24:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getPriority()
|
|
|
|
{
|
|
|
|
return 50;
|
|
|
|
}
|
|
|
|
}
|