diff --git a/lam/lib/modules/ddns.inc b/lam/lib/modules/ddns.inc
index 192ab441..72396d71 100644
--- a/lam/lib/modules/ddns.inc
+++ b/lam/lib/modules/ddns.inc
@@ -421,11 +421,11 @@ class ddns extends baseModule {
if (isset($zones[1])) {
$revzone = $zones[1];
}
- return array(
- get_class($this) . '_DNSserver' => array('' . _('IP address of the DNS server') . '' . $this->getDNSServer() . ''),
- get_class($this) . '_zone' => array('' . _('Zone name') . '' . $zone . ''),
- get_class($this) . '_reverseZone' => array('' . _('Reverse zone name') . '' . $revzone . ''),
- );
+ $result = array();
+ $this->addPDFKeyValue($result, 'DNSserver', _('IP address of the DNS server'), $this->getDNSServer());
+ $this->addPDFKeyValue($result, 'zone', _('Zone name'), $zone);
+ $this->addPDFKeyValue($result, 'reverseZone', _('Reverse zone name'), $revzone);
+ return $result;
}
/**
diff --git a/lam/lib/modules/dhcp_settings.inc b/lam/lib/modules/dhcp_settings.inc
index ac3cfe89..7e98be54 100644
--- a/lam/lib/modules/dhcp_settings.inc
+++ b/lam/lib/modules/dhcp_settings.inc
@@ -671,17 +671,16 @@ By default, the nodes are configured as H-Nodes which fits for small networks. I
if (!empty($unknownClientsVal)) {
$unknownClients = $this->allowDenyOptions[$unknownClientsVal];
}
- $return = array(
- get_class($this) . '_domainName' => array('' . _('Domain name') . '' . $this->getDHCPOption('domain-name') . ''),
- get_class($this) . '_leaseTime' => array('' . _('Lease time') . '' . $this->getDefaultLeaseTime() . ''),
- get_class($this) . '_maxLeaseTime' => array('' . _('Maximum lease time') . '' . $this->getMaxLeaseTime() . ''),
- get_class($this) . '_DNSserver' => array('' . _('DNS') . '' . $this->getDHCPOption('domain-name-servers') . ''),
- get_class($this) . '_gateway' => array('' . _('Default gateway') . '' . $this->getDHCPOption('routers') . ''),
- get_class($this) . '_netbiosServer' => array('' . _('Netbios name servers') . '' . $this->getDHCPOption('netbios-name-servers') . ''),
- get_class($this) . '_netbiosType' => array('' . _('Netbios node type') . '' . $nodeTypeValue . ''),
- get_class($this) . '_subnetMask' => array('' . _('Subnet mask') . '' . $this->getDHCPOption('subnet-mask') . ''),
- get_class($this) . '_unknownClients' => array('' . _('Unknown clients') . '' . $unknownClients . ''),
- );
+ $return = array();
+ $this->addPDFKeyValue($return, 'domainName', _('Domain name'), $this->getDHCPOption('domain-name'));
+ $this->addPDFKeyValue($return, 'leaseTime', _('Lease time'), $this->getDefaultLeaseTime());
+ $this->addPDFKeyValue($return, 'maxLeaseTime', _('Maximum lease time'), $this->getMaxLeaseTime());
+ $this->addPDFKeyValue($return, 'DNSserver', _('DNS'), $this->getDHCPOption('domain-name-servers'));
+ $this->addPDFKeyValue($return, 'gateway', _('Default gateway'), $this->getDHCPOption('routers'));
+ $this->addPDFKeyValue($return, 'netbiosServer', _('Netbios name servers'), $this->getDHCPOption('netbios-name-servers'));
+ $this->addPDFKeyValue($return, 'netbiosType', _('Netbios node type'), $nodeTypeValue);
+ $this->addPDFKeyValue($return, 'subnetMask', _('Subnet mask'), $this->getDHCPOption('subnet-mask'));
+ $this->addPDFKeyValue($return, 'unknownClients', _('Unknown clients'), $unknownClients);
$this->addSimplePDFField($return, 'description', _('Description'), 'dhcpComments');
$this->addSimplePDFField($return, 'subnet', _('Subnet'), 'cn');
$this->addSimplePDFField($return, 'netMask', _('Net mask'), 'dhcpNetMask');
diff --git a/lam/lib/modules/freeRadius.inc b/lam/lib/modules/freeRadius.inc
index b5e568b0..2dbea2fd 100644
--- a/lam/lib/modules/freeRadius.inc
+++ b/lam/lib/modules/freeRadius.inc
@@ -699,14 +699,14 @@ class freeRadius extends baseModule {
$this->addSimplePDFField($return, 'radiusIdleTimeout', _('Idle timeout'));
$this->addSimplePDFField($return, 'radiusProfileDn', _('Profile'));
if (isset($this->attributes['radiusExpiration'][0])) {
- $return[get_class($this) . '_radiusExpiration'][0] = '' . _('Expiration date') . '' . $this->formatExpirationDate($this->attributes['radiusExpiration'][0]) . '';
+ $this->addPDFKeyValue($return, 'radiusExpiration', _('Expiration date'), $this->formatExpirationDate($this->attributes['radiusExpiration'][0]));
}
if (isset($this->attributes['dialupAccess'][0])) {
$enabled = _('Yes');
if (in_array($this->attributes['dialupAccess'][0], array('false', 'FALSE'))) {
$enabled = _('No');
}
- $return[get_class($this) . '_dialupAccess'][0] = '' . _('Enabled') . '' . $enabled . '';
+ $this->addPDFKeyValue($return, 'dialupAccess', _('Enabled'), $enabled);
}
return $return;
}
diff --git a/lam/lib/modules/kolabSharedFolder.inc b/lam/lib/modules/kolabSharedFolder.inc
index 2b290b16..49e622dc 100644
--- a/lam/lib/modules/kolabSharedFolder.inc
+++ b/lam/lib/modules/kolabSharedFolder.inc
@@ -571,7 +571,7 @@ class kolabSharedFolder extends baseModule { // TODO folder type
if (isset($typeList[$type])) {
$type = $typeList[$type];
}
- $return[get_class($this) . '_kolabFolderType'] = array('' . _('Type') . '' . $type . '');
+ $this->addPDFKeyValue($return, 'kolabFolderType', _('Type'), $type);
}
return $return;
}