memories/lib/Settings/Admin.php

37 lines
632 B
PHP

<?php
namespace OCA\Memories\Settings;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\Settings\ISettings;
class Admin implements ISettings
{
protected $appName;
public function __construct(string $AppName)
{
$this->appName = $AppName;
}
/**
* @return TemplateResponse
*/
public function getForm()
{
\OCP\Util::addScript($this->appName, 'memories-admin');
return new TemplateResponse('memories', 'main', []);
}
public function getSection()
{
return $this->appName;
}
public function getPriority()
{
return 50;
}
}