cloud_bbb/lib/Settings/Personal.php

48 lines
984 B
PHP
Raw Permalink Normal View History

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;
use OCP\IConfig;
2020-09-23 12:33:09 +02:00
use OCP\Settings\ISettings;
2020-04-26 11:36:41 +02:00
class Personal implements ISettings {
2021-02-24 14:59:56 +01:00
/** @var TemplateProvider */
private $templateProvider;
/**
* Admin constructor.
*
* @param IConfig $config
*/
2021-02-24 14:59:56 +01:00
public function __construct(TemplateProvider $templateProvider) {
$this->templateProvider = $templateProvider;
}
2020-04-26 11:36:41 +02:00
/**
* @return TemplateResponse
*/
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'
*/
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
*/
public function getPriority() {
2020-04-26 11:36:41 +02:00
return 50;
}
}