1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- declare(strict_types=1);
- namespace OC\Activity;
- use OCP\Activity\ActivitySettings;
- use OCP\Activity\ISetting;
- use OCP\IL10N;
- class ActivitySettingsAdapter extends ActivitySettings {
- public function __construct(
- private ISetting $oldSettings,
- private IL10N $l10n,
- ) {
- }
- public function getIdentifier() {
- return $this->oldSettings->getIdentifier();
- }
- public function getName() {
- return $this->oldSettings->getName();
- }
- public function getGroupIdentifier() {
- return 'other';
- }
- public function getGroupName() {
- return $this->l10n->t('Other activities');
- }
- public function getPriority() {
- return $this->oldSettings->getPriority();
- }
- public function canChangeMail() {
- return $this->oldSettings->canChangeMail();
- }
- public function isDefaultEnabledMail() {
- return $this->oldSettings->isDefaultEnabledMail();
- }
- }
|