36 lines
630 B
PHP
36 lines
630 B
PHP
<?php
|
|
namespace OCA\Registration\Settings;
|
|
|
|
use OCP\AppFramework\Http\TemplateResponse;
|
|
use OCP\Settings\ISettings;
|
|
|
|
use OCA\Registration\Controller\SettingsController;
|
|
|
|
class RegistrationSettings implements ISettings {
|
|
public function getForm() {
|
|
$controller = \OC::$server->query(SettingsController::class);
|
|
return $controller->displayPanel();
|
|
}
|
|
|
|
public function getSection() {
|
|
return 'additional';
|
|
}
|
|
|
|
public function getPriority() {
|
|
return 50;
|
|
}
|
|
|
|
/*
|
|
* Below for ownCloud
|
|
*/
|
|
public function getPanel() {
|
|
return $this->getForm();
|
|
}
|
|
|
|
public function getSectionID() {
|
|
return $this->getSection();
|
|
}
|
|
}
|
|
|
|
?>
|