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

View File

@ -208,6 +208,10 @@ class account {
function check_profileOptions($scope, $options) {
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

@ -313,6 +313,22 @@ class inetOrgPerson {
function check_profileOptions($scope, $options) {
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

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

View File

@ -709,6 +709,19 @@ class posixAccount {
function check_profileOptions($scope, $options) {
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

@ -596,6 +596,10 @@ class posixGroup {
function check_profileOptions($scope, $options) {
return array();
}
function get_pdfEntries($account_type = "User") {
return array();
}
}

View File

@ -304,6 +304,10 @@ class quota {
function check_profileOptions($scope, $options) {
return array();
}
function get_pdfEntries($account_type = "User") {
return array();
}
}

View File

@ -689,6 +689,10 @@ class sambaAccount {
function check_profileOptions($scope, $options) {
return array();
}
function get_pdfEntries($account_type = "User") {
return array();
}
}

View File

@ -328,6 +328,10 @@ class sambaGroupMapping {
function check_profileOptions($scope, $options) {
return array();
}
function get_pdfEntries($account_type = "User") {
return array();
}
}

View File

@ -714,6 +714,10 @@ class sambaSamAccount {
function check_profileOptions($scope, $options) {
return array();
}
function get_pdfEntries($account_type = "User") {
return array();
}
}

View File

@ -301,6 +301,10 @@ class shadowAccount {
function check_profileOptions($scope, $options) {
return array();
}
function get_pdfEntries($account_type = "User") {
return array();
}
}