dummy implemenation of get_pdfEntries added for each module class;account,inetOrgPerson and posixAccount partially implemented

This commit is contained in:
duergner 2004-05-24 21:39:57 +00:00
parent dad40a8a14
commit e9b6dfc519
11 changed files with 79 additions and 17 deletions

View File

@ -3,24 +3,25 @@
<text name="User" /> <text name="User" />
<section name="Personal User Infos"> <section name="Personal User Infos">
<entry name="Title" /> <entry name="Title" />
<entry name="Surname" /> <entry name="givenName" />
<entry name="Given name" /> <entry name="sn" />
<entry name="Street" /> <entry name="street" />
<entry name="Postal code" /> <entry name="postalCode" />
<entry name="Postal address" /> <entry name="postalAddress" />
<entry name="E-Mail" /> <entry name="mail" />
<entry name="Phone" /> <entry name="telephoneNumber" />
<entry name="Cellular phone" /> <entry name="mobileTelephoneNumber" />
<entry name="Facsimile" /> <entry name="facsimileTelephoneNumber" />
</section> </section>
<section name="Unix User Settings"> <section name="Unix User Settings">
<entry name="Username" /> <entry name="uid" />
<entry name="Unix password" /> <entry name="userPassword" />
<entry name="Group(s)" /> <entry name="primaryGroup" />
<entry name="Home directory" /> <entry name="additionalGroups" />
<entry name="Login shell" /> <entry name="homeDirectory" />
<entry name="loginShell" />
<entry name="Password expire" /> <entry name="Password expire" />
<entry name="Login at host(s)" /> <entry name="host" />
</section> </section>
<section name="Windows User Settings"> <section name="Windows User Settings">
<entry name="Username" /> <entry name="Username" />
@ -38,7 +39,7 @@
</pdf> </pdf>
<pdf type="Group"> <pdf type="Group">
<section name="_name"> <section name="_name">
<entry name="Description" /> <entry name="description" />
<entry name="Display name" /> <entry name="Display name" />
<entry name="GID" /> <entry name="GID" />
<entry name="Domain" /> <entry name="Domain" />
@ -48,7 +49,7 @@
</pdf> </pdf>
<pdf type="Host"> <pdf type="Host">
<section name="_name"> <section name="_name">
<entry name="Description" /> <entry name="description" />
<entry name="UID" /> <entry name="UID" />
<entry name="Primary group" /> <entry name="Primary group" />
<entry name="Domain" /> <entry name="Domain" />

View File

@ -209,6 +209,10 @@ class account {
return array(); return array();
} }
function get_pdfEntries($account_type = "User") {
return array('description' => array('<block><key>' . _('Description') . '</key><value>' . $this->attributes['description'][0] . '</value></block>'));
}
} }
?> ?>

View File

@ -314,6 +314,22 @@ class inetOrgPerson {
return array(); return array();
} }
function get_pdfEntries($account_type = "User") {
return array( 'description' => array('<block><key>' . _('Description') . '</key><value>' . $this->attributes['description'][0] . '</value></block>'),
'host' => array('<block><key>' . _('Unix workstations') . '</key><value>' . $this->attributes['host'][0] . '</value></block>'),
'title' => array('<block><key>' . _('Title') . '</key><value>' . $this->attributes['title'][0] . '</value></block>'),
'givenName' => array('<block><key>' . _('First name') . '</key><value>' . $this->attributes['givenName'][0] . '</value></block>'),
'sn' => array('<block><key>' . -_('Last name') . '</key><value>' . $this->attributes['sn'][0] . '</value></block>'),
'employeeType' => array('<block><key>' . _('Employee type') . '</key><value>' . $this->attributes['employeeType'][0]),
'street' => array('<block><key>' . _('Street') . '</key><value>' . $this->attributes['street'] . '</value></block>'),
'postalCode' => array('<block><key>' . _('Postal code') . '</key><value>' . $this->attributes['postalCode'][0] . '</value></block>'),
'postalAddress' => array('<block><key>' . _('Postal address') . '</key><value>' . $this->attributes['postalAddress'][0] . '</value></block>'),
'telephoneNumber' => array('<block><key>' . _('Telephone number') . '</key><value>' . $this->attributes['telephoneNumber'][0] . '</value></block>'),
'mobileTelephoneNumber' => array('<block><key>' . _('Mobile number') . '</key><value>' . $this->attributes['mobileTelephoneNumber'][0] . '</value></block>'),
'facimileTelefonNumber' => array('<block><key>' . _('Fax number') . '</key><value>' . $this->attributes['facsimileTelephoneNumber'][0] . '</value></block>'),
'mail' => array('<block><key>' . _('eMail address') . '</key><value>' . $this->attributes['mail'][0] . '</value></block>'));
}
} }
?> ?>

View File

@ -302,6 +302,10 @@ class main {
return $return; return $return;
} }
function get_pdfEntries($account_type = "User") {
return array();
}
} }
?> ?>

View File

@ -710,6 +710,19 @@ class posixAccount {
return array(); return array();
} }
function get_pdfEntries($account_type = "User") {
return array( 'uid' => array('<block><key>' . _('Username') . '</key><value>' . $this->attributes['uid'][0] . '</value></block>'),
'uidNumber' => array('<block><key>' . _('UID number') . '</key><value>' . $this->attributes['uidNumber'][0] . '</value></block>'),
'gidNumber' => array('<block><key>' . _('GID number') . '</key><value>' . $this->attributes['gidNumber'][0] . '</value></block>'),
'gecos' => array('<block><key>' . _('Gecos') . '</key><value>' . $this->attributes['gecos'][0] . '</value></block>'),
'primaryGroup' => array('<block><key>' . _('Primary group') . '</key><value>' . $_SESSION[$_SESSION[$this->base]->cache]->getgrnam($this->attributes['gidNumber'][0]) . '</value></block>'),
'additionalGroups' => array('<block><key>' . _('Additional groups') . '</key><value>' . '</value></block>'),
'homeDirectory' => array('<block><key>' . _('Home directory') . '</key><value>' . $this->attributes['homeDirectory'][0] . '</value></block>'),
'userPassword' => array('<block><key>' . _('Password') . '</key><value>' . $this->attributes['userPassword'][0] . '</value></block>'),
'loginShell' => array('<block><key>' . _('Login Shell') . '</key><value>' . $this->attributes['loginShell'][0] . '</value></block>'),
);
}
} }
?> ?>

View File

@ -597,6 +597,10 @@ class posixGroup {
return array(); return array();
} }
function get_pdfEntries($account_type = "User") {
return array();
}
} }
?> ?>

View File

@ -305,6 +305,10 @@ class quota {
return array(); return array();
} }
function get_pdfEntries($account_type = "User") {
return array();
}
} }
?> ?>

View File

@ -690,6 +690,10 @@ class sambaAccount {
return array(); return array();
} }
function get_pdfEntries($account_type = "User") {
return array();
}
} }
?> ?>

View File

@ -329,6 +329,10 @@ class sambaGroupMapping {
return array(); return array();
} }
function get_pdfEntries($account_type = "User") {
return array();
}
} }
?> ?>

View File

@ -715,6 +715,10 @@ class sambaSamAccount {
return array(); return array();
} }
function get_pdfEntries($account_type = "User") {
return array();
}
} }
?> ?>

View File

@ -302,6 +302,10 @@ class shadowAccount {
return array(); return array();
} }
function get_pdfEntries($account_type = "User") {
return array();
}
} }
?> ?>