42 lines
770 B
PHP
42 lines
770 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace OCA\Memories\Settings;
|
|
|
|
use OCA\Memories\AppInfo\Application;
|
|
use OCA\Memories\Controller\PageController;
|
|
use OCP\AppFramework\Http\TemplateResponse;
|
|
use OCP\Settings\ISettings;
|
|
|
|
class Admin implements ISettings
|
|
{
|
|
public function __construct() {}
|
|
|
|
/**
|
|
* @return TemplateResponse
|
|
*/
|
|
public function getForm()
|
|
{
|
|
\OCP\Util::addScript(Application::APPNAME, 'memories-admin');
|
|
|
|
return new TemplateResponse('memories', 'main', PageController::getMainParams());
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getSection()
|
|
{
|
|
return Application::APPNAME;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getPriority()
|
|
{
|
|
return 50;
|
|
}
|
|
}
|