2016-07-26 08:31:16 -04:00
|
|
|
<?php
|
2020-04-09 05:50:14 -04:00
|
|
|
|
2019-08-22 11:34:27 -04:00
|
|
|
declare(strict_types=1);
|
2021-06-04 15:52:51 -04:00
|
|
|
|
2016-07-26 08:31:16 -04:00
|
|
|
/**
|
2024-05-30 14:13:41 -04:00
|
|
|
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2016-07-26 08:31:16 -04:00
|
|
|
*/
|
2019-08-22 11:34:27 -04:00
|
|
|
namespace OCA\WorkflowEngine\Settings;
|
|
|
|
|
|
2019-08-23 10:56:24 -04:00
|
|
|
use OCP\WorkflowEngine\IManager;
|
|
|
|
|
|
2019-08-22 11:34:27 -04:00
|
|
|
class Personal extends ASettings {
|
2020-04-10 10:51:06 -04:00
|
|
|
public function getScope(): int {
|
2019-08-23 10:56:24 -04:00
|
|
|
return IManager::SCOPE_USER;
|
2019-08-22 11:34:27 -04:00
|
|
|
}
|
2020-03-13 09:36:47 -04:00
|
|
|
|
2021-03-02 13:52:39 -05:00
|
|
|
public function getSection(): ?string {
|
2020-03-13 09:36:47 -04:00
|
|
|
return $this->manager->isUserScopeEnabled() ? 'workflow' : null;
|
|
|
|
|
}
|
2019-08-22 11:34:27 -04:00
|
|
|
}
|