move list labels to modules

This commit is contained in:
Roland Gruber 2022-07-27 07:59:17 +02:00
parent 6aea0181d3
commit 08b0d159d1
5 changed files with 78 additions and 22 deletions

View file

@ -1331,4 +1331,45 @@ class asteriskAccount extends baseModule implements passwordService {
return false;
}
/**
* @inheritDoc
*/
public function getListAttributeDescriptions(): array {
return array(
'AstAccountCallerID' => _('Caller ID'),
'AstAccountContext' => _('Account context'),
'AstAccountHost' => _('Host'),
'AstAccountType' => _('Account type'),
'AstAccountUserAgent' => _('User agent'),
'AstAccountAMAFlags' => _('AMA flags'),
'AstAccountCallGroup' => _('Call groups'),
'AstAccountDTMFMode' => _('DTFM flags'),
'AstAccountFromUser' => _('From user'),
'AstAccountFromDomain' => _('From domain'),
'AstAccountFullContact'=> _('Full contact'),
'AstAccountInsecure' => _('Insecure'),
'AstAccountMailbox' => _('Mailbox'),
'AstAccountNAT' => _('NAT'),
'AstAccountDeny' => _('Deny'),
'AstAccountPermit' => _('Permit'),
'AstAccountPickupGroup' => _('Pickup group'),
'AstAccountPort' => _('Port'),
'AstAccountQualify' => _('Qualify'),
'AstAccountRestrictCID' => _('Restrict caller ID'),
'AstAccountRTPTimeout' => _('RTP timeout'),
'AstAccountRTPHoldTimeout' => _('RTP hold timeout'),
'AstAccountDisallowedCodec' => _('Disallowed codec'),
'AstAccountAllowedCodec' => _('Allowed codec'),
'AstAccountMusicOnHold' => _('Music on hold'),
'AstAccountExpirationTimestamp' => _('Expiration timestamp'),
'AstAccountRegistrationContext' => _('Registration context'),
'AstAccountRegistrationExten' => _('Registration extension'),
'AstAccountCanCallForward' => _('Can call forward'),
'AstAccountIPAddress' => _('IP address'),
'AstAccountDefaultUser' => _('Default user'),
'AstAccountRegistrationServer' => _('Registration server'),
'AstAccountLastQualifyMilliseconds' => _('Last qualify milliseconds'),
);
}
}

View file

@ -972,6 +972,15 @@ class asteriskExtension extends baseModule {
return array();
}
}
/**
* @inheritDoc
*/
public function getListAttributeDescriptions(): array {
return array(
'AstContext' => _('Account context'),
'AstExtension' => _('Extension name'),
"member" => _("Owner"),
);
}
?>
}

View file

@ -3,7 +3,7 @@
This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
Copyright (C) 2010 Pavel Pozdnyak
2010 - 2021 Roland Gruber
2010 - 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
@ -604,4 +604,19 @@ class asteriskVoicemail extends baseModule implements passwordService {
return false;
}
/**
* @inheritDoc
*/
public function getListAttributeDescriptions(): array {
return array(
'AstContext' => _('Account context'),
'AstVoicemailMailbox' => _('Mailbox'),
'AstVoicemailFullname' => _('Full name'),
'AstVoicemailEmail' => _('Email address'),
'AstVoicemailPager' => _('Pager'),
'AstVoicemailOptions' => _('Options'),
'AstVoicemailContext' => _('Voicemail context')
);
}
}

View file

@ -257,6 +257,13 @@ class authorizedServiceObject extends baseModule {
return $configContainer;
}
}
/**
* @inheritDoc
*/
public function getListAttributeDescriptions(): array {
return array(
'authorizedService' => _('Authorized Services')
);
}
?>
}

View file

@ -4,7 +4,7 @@
This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
Copyright (C) 2009 - 2012 Pozdnyak Pavel
2010 - 2018 Roland Gruber
2010 - 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
@ -84,22 +84,6 @@ class asteriskExt extends baseType {
return "#AstExtension;#AstContext;#member";
}
/**
* Returns a list of attributes which have a translated description.
* This is used for the head row in the list view.
*
* @return array list of descriptions
*/
function getListAttributeDescriptions() {
return array_merge(
parent::getListAttributeDescriptions(),
array(
"astextension" => _("Extension name"),
"astcontext" => _("Account context"),
"member" => _("Owner"),
));
}
/**
* Returns the the title text for the title bar on the new/edit page.
*