reduced PDF code
This commit is contained in:
parent
2aa0c4d406
commit
b90000791d
|
@ -3,7 +3,7 @@
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
||||||
Copyright (C) 2011 - 2012 Roland Gruber
|
Copyright (C) 2011 - 2013 Roland Gruber
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -613,24 +613,14 @@ class freeRadius extends baseModule {
|
||||||
*/
|
*/
|
||||||
function get_pdfEntries() {
|
function get_pdfEntries() {
|
||||||
$return = array();
|
$return = array();
|
||||||
if (isset($this->attributes['radiusFramedIPAddress'][0])) {
|
$this->addSimplePDFField($return, 'radiusFramedIPAddress', _('IP address'));
|
||||||
$return[get_class($this) . '_radiusFramedIPAddress'][0] = '<block><key>' . _('IP address') . '</key><value>' . $this->attributes['radiusFramedIPAddress'][0] . '</value></block>';
|
$this->addSimplePDFField($return, 'radiusFramedIPNetmask', _('Net mask'));
|
||||||
}
|
$this->addSimplePDFField($return, 'radiusRealm', _('Realm'));
|
||||||
if (isset($this->attributes['radiusFramedIPNetmask'][0])) {
|
$this->addSimplePDFField($return, 'radiusGroupName', _('Group names'));
|
||||||
$return[get_class($this) . '_radiusFramedIPNetmask'][0] = '<block><key>' . _('Net mask') . '</key><value>' . $this->attributes['radiusFramedIPNetmask'][0] . '</value></block>';
|
$this->addSimplePDFField($return, 'radiusIdleTimeout', _('Idle timeout'));
|
||||||
}
|
|
||||||
if (isset($this->attributes['radiusRealm'][0])) {
|
|
||||||
$return[get_class($this) . '_radiusRealm'][0] = '<block><key>' . _('Realm') . '</key><value>' . $this->attributes['radiusRealm'][0] . '</value></block>';
|
|
||||||
}
|
|
||||||
if (isset($this->attributes['radiusGroupName'][0])) {
|
|
||||||
$return[get_class($this) . '_radiusGroupName'][0] = '<block><key>' . _('Group names') . '</key><value>' . implode(', ', $this->attributes['radiusGroupName']) . '</value></block>';
|
|
||||||
}
|
|
||||||
if (isset($this->attributes['radiusExpiration'][0])) {
|
if (isset($this->attributes['radiusExpiration'][0])) {
|
||||||
$return[get_class($this) . '_radiusExpiration'][0] = '<block><key>' . _('Expiration date') . '</key><value>' . $this->formatExpirationDate($this->attributes['radiusExpiration'][0]) . '</value></block>';
|
$return[get_class($this) . '_radiusExpiration'][0] = '<block><key>' . _('Expiration date') . '</key><value>' . $this->formatExpirationDate($this->attributes['radiusExpiration'][0]) . '</value></block>';
|
||||||
}
|
}
|
||||||
if (isset($this->attributes['radiusIdleTimeout'][0])) {
|
|
||||||
$return[get_class($this) . '_radiusIdleTimeout'][0] = '<block><key>' . _('Idle timeout') . '</key><value>' . $this->attributes['radiusIdleTimeout'][0] . '</value></block>';
|
|
||||||
}
|
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -252,9 +252,7 @@ class hostObject extends baseModule {
|
||||||
*/
|
*/
|
||||||
function get_pdfEntries() {
|
function get_pdfEntries() {
|
||||||
$return = array();
|
$return = array();
|
||||||
if (isset($this->attributes['host'][0])) {
|
$this->addSimplePDFField($return, 'hosts', _('Host list'), 'host');
|
||||||
$return['hostObject_hosts'][0] = '<block><key>' . _('Host list') . '</key><value>' . implode(', ', $this->attributes['host']) . '</value></block>';
|
|
||||||
}
|
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
||||||
Copyright (C) 2004 - 2012 Roland Gruber
|
Copyright (C) 2004 - 2013 Roland Gruber
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -202,9 +202,7 @@ class ieee802Device extends baseModule {
|
||||||
*/
|
*/
|
||||||
function get_pdfEntries() {
|
function get_pdfEntries() {
|
||||||
$return = array();
|
$return = array();
|
||||||
if (sizeof($this->attributes['macAddress']) > 0) {
|
$this->addSimplePDFField($return, 'macAddress', _('MAC addresses'));
|
||||||
$return['ieee802Device_macAddress'][0] = '<block><key>' . _('MAC addresses') . '</key><value>' . implode(', ', $this->attributes['macAddress']) . '</value></block>';
|
|
||||||
}
|
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue