From e9b6dfc519ffaa0e6e1846f87b1ab3286d54e01c Mon Sep 17 00:00:00 2001 From: duergner Date: Mon, 24 May 2004 21:39:57 +0000 Subject: [PATCH] dummy implemenation of get_pdfEntries added for each module class;account,inetOrgPerson and posixAccount partially implemented --- lam/config/pdf-structure.xml | 35 ++++++++++++++------------- lam/lib/modules/account.inc | 4 +++ lam/lib/modules/inetOrgPerson.inc | 16 ++++++++++++ lam/lib/modules/main.inc | 4 +++ lam/lib/modules/posixAccount.inc | 13 ++++++++++ lam/lib/modules/posixGroup.inc | 4 +++ lam/lib/modules/quota.inc | 4 +++ lam/lib/modules/sambaAccount.inc | 4 +++ lam/lib/modules/sambaGroupMapping.inc | 4 +++ lam/lib/modules/sambaSamAccount.inc | 4 +++ lam/lib/modules/shadowAccount.inc | 4 +++ 11 files changed, 79 insertions(+), 17 deletions(-) diff --git a/lam/config/pdf-structure.xml b/lam/config/pdf-structure.xml index c9cce703..291943b8 100644 --- a/lam/config/pdf-structure.xml +++ b/lam/config/pdf-structure.xml @@ -3,24 +3,25 @@
- - - - - - - - - + + + + + + + + +
- - - - - + + + + + + - +
@@ -38,7 +39,7 @@
- + @@ -48,7 +49,7 @@
- + diff --git a/lam/lib/modules/account.inc b/lam/lib/modules/account.inc index a231c52b..da7ad6b6 100644 --- a/lam/lib/modules/account.inc +++ b/lam/lib/modules/account.inc @@ -208,6 +208,10 @@ class account { function check_profileOptions($scope, $options) { return array(); } + + function get_pdfEntries($account_type = "User") { + return array('description' => array('' . _('Description') . '' . $this->attributes['description'][0] . '')); + } } diff --git a/lam/lib/modules/inetOrgPerson.inc b/lam/lib/modules/inetOrgPerson.inc index 3c3c0d7f..1da4ae9c 100644 --- a/lam/lib/modules/inetOrgPerson.inc +++ b/lam/lib/modules/inetOrgPerson.inc @@ -313,6 +313,22 @@ class inetOrgPerson { function check_profileOptions($scope, $options) { return array(); } + + function get_pdfEntries($account_type = "User") { + return array( 'description' => array('' . _('Description') . '' . $this->attributes['description'][0] . ''), + 'host' => array('' . _('Unix workstations') . '' . $this->attributes['host'][0] . ''), + 'title' => array('' . _('Title') . '' . $this->attributes['title'][0] . ''), + 'givenName' => array('' . _('First name') . '' . $this->attributes['givenName'][0] . ''), + 'sn' => array('' . -_('Last name') . '' . $this->attributes['sn'][0] . ''), + 'employeeType' => array('' . _('Employee type') . '' . $this->attributes['employeeType'][0]), + 'street' => array('' . _('Street') . '' . $this->attributes['street'] . ''), + 'postalCode' => array('' . _('Postal code') . '' . $this->attributes['postalCode'][0] . ''), + 'postalAddress' => array('' . _('Postal address') . '' . $this->attributes['postalAddress'][0] . ''), + 'telephoneNumber' => array('' . _('Telephone number') . '' . $this->attributes['telephoneNumber'][0] . ''), + 'mobileTelephoneNumber' => array('' . _('Mobile number') . '' . $this->attributes['mobileTelephoneNumber'][0] . ''), + 'facimileTelefonNumber' => array('' . _('Fax number') . '' . $this->attributes['facsimileTelephoneNumber'][0] . ''), + 'mail' => array('' . _('eMail address') . '' . $this->attributes['mail'][0] . '')); + } } diff --git a/lam/lib/modules/main.inc b/lam/lib/modules/main.inc index 3504454b..f110bd59 100644 --- a/lam/lib/modules/main.inc +++ b/lam/lib/modules/main.inc @@ -301,6 +301,10 @@ class main { ); return $return; } + + function get_pdfEntries($account_type = "User") { + return array(); + } } diff --git a/lam/lib/modules/posixAccount.inc b/lam/lib/modules/posixAccount.inc index 977fd902..9b54c4ec 100644 --- a/lam/lib/modules/posixAccount.inc +++ b/lam/lib/modules/posixAccount.inc @@ -709,6 +709,19 @@ class posixAccount { function check_profileOptions($scope, $options) { return array(); } + + function get_pdfEntries($account_type = "User") { + return array( 'uid' => array('' . _('Username') . '' . $this->attributes['uid'][0] . ''), + 'uidNumber' => array('' . _('UID number') . '' . $this->attributes['uidNumber'][0] . ''), + 'gidNumber' => array('' . _('GID number') . '' . $this->attributes['gidNumber'][0] . ''), + 'gecos' => array('' . _('Gecos') . '' . $this->attributes['gecos'][0] . ''), + 'primaryGroup' => array('' . _('Primary group') . '' . $_SESSION[$_SESSION[$this->base]->cache]->getgrnam($this->attributes['gidNumber'][0]) . ''), + 'additionalGroups' => array('' . _('Additional groups') . '' . ''), + 'homeDirectory' => array('' . _('Home directory') . '' . $this->attributes['homeDirectory'][0] . ''), + 'userPassword' => array('' . _('Password') . '' . $this->attributes['userPassword'][0] . ''), + 'loginShell' => array('' . _('Login Shell') . '' . $this->attributes['loginShell'][0] . ''), + ); + } } diff --git a/lam/lib/modules/posixGroup.inc b/lam/lib/modules/posixGroup.inc index 48be8d27..ee24c1f1 100644 --- a/lam/lib/modules/posixGroup.inc +++ b/lam/lib/modules/posixGroup.inc @@ -596,6 +596,10 @@ class posixGroup { function check_profileOptions($scope, $options) { return array(); } + + function get_pdfEntries($account_type = "User") { + return array(); + } } diff --git a/lam/lib/modules/quota.inc b/lam/lib/modules/quota.inc index 0f73eea8..fe63e39e 100644 --- a/lam/lib/modules/quota.inc +++ b/lam/lib/modules/quota.inc @@ -304,6 +304,10 @@ class quota { function check_profileOptions($scope, $options) { return array(); } + + function get_pdfEntries($account_type = "User") { + return array(); + } } diff --git a/lam/lib/modules/sambaAccount.inc b/lam/lib/modules/sambaAccount.inc index b0d5c60f..cfeaa107 100644 --- a/lam/lib/modules/sambaAccount.inc +++ b/lam/lib/modules/sambaAccount.inc @@ -689,6 +689,10 @@ class sambaAccount { function check_profileOptions($scope, $options) { return array(); } + + function get_pdfEntries($account_type = "User") { + return array(); + } } diff --git a/lam/lib/modules/sambaGroupMapping.inc b/lam/lib/modules/sambaGroupMapping.inc index 6d372556..74a3ca88 100644 --- a/lam/lib/modules/sambaGroupMapping.inc +++ b/lam/lib/modules/sambaGroupMapping.inc @@ -328,6 +328,10 @@ class sambaGroupMapping { function check_profileOptions($scope, $options) { return array(); } + + function get_pdfEntries($account_type = "User") { + return array(); + } } diff --git a/lam/lib/modules/sambaSamAccount.inc b/lam/lib/modules/sambaSamAccount.inc index 38bfe51b..1f07228d 100644 --- a/lam/lib/modules/sambaSamAccount.inc +++ b/lam/lib/modules/sambaSamAccount.inc @@ -714,6 +714,10 @@ class sambaSamAccount { function check_profileOptions($scope, $options) { return array(); } + + function get_pdfEntries($account_type = "User") { + return array(); + } } diff --git a/lam/lib/modules/shadowAccount.inc b/lam/lib/modules/shadowAccount.inc index cca000d1..fd9a10e8 100644 --- a/lam/lib/modules/shadowAccount.inc +++ b/lam/lib/modules/shadowAccount.inc @@ -301,6 +301,10 @@ class shadowAccount { function check_profileOptions($scope, $options) { return array(); } + + function get_pdfEntries($account_type = "User") { + return array(); + } }