2020-04-26 11:36:41 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace OCA\BigBlueButton\Settings;
|
|
|
|
|
2021-02-24 14:59:56 +01:00
|
|
|
use OCA\BigBlueButton\TemplateProvider;
|
2020-04-26 11:36:41 +02:00
|
|
|
use OCP\AppFramework\Http\TemplateResponse;
|
2020-05-17 12:29:44 +02:00
|
|
|
use OCP\IConfig;
|
2020-09-23 12:33:09 +02:00
|
|
|
use OCP\Settings\ISettings;
|
2020-04-26 11:36:41 +02:00
|
|
|
|
2020-06-19 09:28:58 +02:00
|
|
|
class Personal implements ISettings {
|
2021-02-24 14:59:56 +01:00
|
|
|
/** @var TemplateProvider */
|
|
|
|
private $templateProvider;
|
2020-05-17 12:29:44 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Admin constructor.
|
|
|
|
*
|
|
|
|
* @param IConfig $config
|
|
|
|
*/
|
2021-02-24 14:59:56 +01:00
|
|
|
public function __construct(TemplateProvider $templateProvider) {
|
|
|
|
$this->templateProvider = $templateProvider;
|
2020-05-17 12:29:44 +02:00
|
|
|
}
|
|
|
|
|
2020-04-26 11:36:41 +02:00
|
|
|
/**
|
|
|
|
* @return TemplateResponse
|
|
|
|
*/
|
2020-06-19 09:28:58 +02:00
|
|
|
public function getForm() {
|
2021-02-24 14:59:56 +01:00
|
|
|
return $this->templateProvider->getManager();
|
2020-04-26 11:36:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string the section ID, e.g. 'sharing'
|
|
|
|
*/
|
2020-06-19 09:28:58 +02:00
|
|
|
public function getSection() {
|
2020-04-26 13:26:34 +02:00
|
|
|
return 'bbb';
|
2020-04-26 11:36:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return int whether the form should be rather on the top or bottom of
|
|
|
|
* the admin section. The forms are arranged in ascending order of the
|
|
|
|
* priority values. It is required to return a value between 0 and 100.
|
|
|
|
*
|
|
|
|
* E.g.: 70
|
|
|
|
*/
|
2020-06-19 09:28:58 +02:00
|
|
|
public function getPriority() {
|
2020-04-26 11:36:41 +02:00
|
|
|
return 50;
|
|
|
|
}
|
|
|
|
}
|