memories/lib/Settings/Admin.php

34 lines
671 B
PHP
Raw Normal View History

<?php
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());
}
public function getSection()
{
return Application::APPNAME;
}
public function getPriority()
{
return 50;
}
}