mirror of
https://github.com/LDAPAccountManager/lam.git
synced 2025-10-06 03:49:56 +02:00
move list labels to modules
This commit is contained in:
parent
08b0d159d1
commit
ad062fb49a
3 changed files with 29 additions and 6 deletions
|
@ -106,7 +106,7 @@ class baseType {
|
|||
$module = moduleCache::getModule($moduleName, $this->getScope());
|
||||
$descriptions = array_merge($descriptions, $module->getListAttributeDescriptions());
|
||||
}
|
||||
return array_unique($descriptions);
|
||||
return $descriptions;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -3,7 +3,7 @@ use \LAM\TYPES\TypeManager;
|
|||
/*
|
||||
* This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
||||
* Copyright (C) 2017 Lars Althof
|
||||
* 2017 - 2021 Roland Gruber
|
||||
* 2017 - 2022 Roland Gruber
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -590,6 +590,19 @@ class courierMailAccount extends baseModule {
|
|||
return !in_array('posixAccount', $modules);
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getListAttributeDescriptions(): array {
|
||||
return array(
|
||||
'mailbox' => _('Mailbox'),
|
||||
'mailhost' => _('Mailbox home server'),
|
||||
'quota' => _('Mailbox quota'),
|
||||
'disableimap' => _('Disable IMAP access'),
|
||||
'disablepop3' => _('Disable POP3 access'),
|
||||
'disablewebmail' => _('Disable webmail access'),
|
||||
'disableshared' => _('Disable shared folder access')
|
||||
);
|
||||
}
|
||||
|
||||
?>
|
||||
}
|
||||
|
|
|
@ -220,6 +220,16 @@ class courierMailAlias extends baseModule {
|
|||
return $messages;
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getListAttributeDescriptions(): array {
|
||||
return array(
|
||||
'mail' => _('Email address'),
|
||||
'maildrop' => _('Recipient address'),
|
||||
'mailsource' => _('Mail source'),
|
||||
'description' => _('Description')
|
||||
);
|
||||
}
|
||||
|
||||
?>
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue