moved help entries to quota module

This commit is contained in:
Roland Gruber 2004-10-02 17:41:42 +00:00
parent 7138a03fc2
commit 4c30d35826
2 changed files with 50 additions and 49 deletions

View File

@ -206,30 +206,6 @@ $helpArray = array (
"variables" => array('user', 'group')), "variables" => array('user', 'group')),
"438" => array ("ext" => "FALSE", "Headline" => _("Domain"), "438" => array ("ext" => "FALSE", "Headline" => _("Domain"),
"Text" => _("Windows-Domain of user."). ' '. _("Can be left empty.")), "Text" => _("Windows-Domain of user."). ' '. _("Can be left empty.")),
"439" => array ("ext" => "FALSE", "Headline" => _("Mountpoint"),
"Text" => _("Mountpoint of device with enabled quotas.")),
"440" => array ("ext" => "FALSE", "Headline" => _("Used blocks"),
"Text" => _("Used blocks. 1000 blocks are usually 1MB")),
"441" => array ("ext" => "FALSE", "Headline" => _("Soft block limit"),
"Text" => _("Soft block limit."), "SeeAlso" => '<a href="http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Quota.html#ss4.4">'.
'Quota How-To</a>'),
"442" => array ("ext" => "FALSE", "Headline" => _("Hard block limit"),
"Text" => _("Hard block limit").'.', "SeeAlso" => '<a href="http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Quota.html#ss4.5">'.
'Quota How-To</a>'),
"443" => array ("ext" => "FALSE", "Headline" => _("Grace block period"),
"Text" => _("Grace block period. Most filesystems use a fixed maximum value of 7 days."), "SeeAlso" => '<a href="http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Quota.html#ss4.6">'.
'Quota How-To</a>'),
"444" => array ("ext" => "FALSE", "Headline" => _("Used inodes"),
"Text" => _("Used inodes (files)").'.'),
"445" => array ("ext" => "FALSE", "Headline" => _("Soft inode limit"),
"Text" => _("Soft inode (files) limit."), "SeeAlso" => '<a href="http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Quota.html#ss4.4">'.
'Quota How-To</a>'),
"446" => array ("ext" => "FALSE", "Headline" => _("Hard inode limit"),
"Text" => _("Hard inode (files) limit").'.', "SeeAlso" => '<a href="http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Quota.html#ss4.5">'.
'Quota How-To</a>'),
"447" => array ("ext" => "FALSE", "Headline" => _("Grace inode period"),
"Text" => _("Grace inode (files) period. Most filesystems use a fixed maximum value of 7 days."), "SeeAlso" => '<a href="http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Quota.html#ss4.6">'.
'Quota How-To</a>'),
"448" => array ("ext" => "FALSE", "Headline" => _("Title"), "448" => array ("ext" => "FALSE", "Headline" => _("Title"),
"Text" => _("Title of user, Mr., Ms., ...")), "Text" => _("Title of user, Mr., Ms., ...")),
"449" => array ("ext" => "FALSE", "Headline" => _("Employee type"), "449" => array ("ext" => "FALSE", "Headline" => _("Employee type"),

View File

@ -23,14 +23,6 @@ $Id$
class quota extends baseModule { class quota extends baseModule {
/**
* Creates a new quota object.
*/
function quota($scope) {
// call parent constructor
parent::baseModule($scope);
}
/** this functin fills the error message array with messages /** this functin fills the error message array with messages
**/ **/
function load_Messages() { function load_Messages() {
@ -64,6 +56,51 @@ class quota extends baseModule {
} }
// available PDF fields // available PDF fields
$return['PDF_fields'] = array( 'quotas'); $return['PDF_fields'] = array( 'quotas');
// help entries
$return['help'] = array(
"Mountpoint" => array(
"ext" => "FALSE",
"Headline" => _("Mountpoint"),
"Text" => _("Mountpoint of device with enabled quotas.")),
"UsedBlocks" => array(
"ext" => "FALSE",
"Headline" => _("Used blocks"),
"Text" => _("Used blocks. 1000 blocks are usually 1MB")),
"SoftBlockLimit" => array(
"ext" => "FALSE",
"Headline" => _("Soft block limit"),
"Text" => _("Soft block limit."), "SeeAlso" => '<a href="http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Quota.html#ss4.4">'.
'Quota How-To</a>'),
"HardBlockLimit" => array(
"ext" => "FALSE",
"Headline" => _("Hard block limit"),
"Text" => _("Hard block limit").'.', "SeeAlso" => '<a href="http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Quota.html#ss4.5">'.
'Quota How-To</a>'),
"GraceBlockPeriod" => array(
"ext" => "FALSE",
"Headline" => _("Grace block period"),
"Text" => _("Grace block period. Most filesystems use a fixed maximum value of 7 days."), "SeeAlso" => '<a href="http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Quota.html#ss4.6">'.
'Quota How-To</a>'),
"UsedInodes" => array(
"ext" => "FALSE",
"Headline" => _("Used inodes"),
"Text" => _("Used inodes (files)").'.'),
"SoftInodeLimit" => array(
"ext" => "FALSE",
"Headline" => _("Soft inode limit"),
"Text" => _("Soft inode (files) limit."), "SeeAlso" => '<a href="http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Quota.html#ss4.4">'.
'Quota How-To</a>'),
"HardInodeLimit" => array(
"ext" => "FALSE",
"Headline" => _("Hard inode limit"),
"Text" => _("Hard inode (files) limit").'.', "SeeAlso" => '<a href="http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Quota.html#ss4.5">'.
'Quota How-To</a>'),
"GraceInodePeriod" => array(
"ext" => "FALSE",
"Headline" => _("Grace inode period"),
"Text" => _("Grace inode (files) period. Most filesystems use a fixed maximum value of 7 days."), "SeeAlso" => '<a href="http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Quota.html#ss4.6">'.
'Quota How-To</a>'),
);
return $return; return $return;
} }
@ -125,18 +162,6 @@ class quota extends baseModule {
return array('attributes'); return array('attributes');
} }
/*
*/
function get_help($id,$scope) {
switch ($id) {
case "description":
return array ("ext" => "FALSE", "Headline" => _("Description"),
"Text" => _("Host Description."));
break;
}
return false;
}
/* This function returns all ldap attributes /* This function returns all ldap attributes
* which are part of quota and returns * which are part of quota and returns
* also their values. * also their values.
@ -329,11 +354,11 @@ class quota extends baseModule {
4 => array('kind' => 'text', 'text' => '<b>' . _('Hard inode limit') . '&nbsp;&nbsp;</b>', 'align' => 'center'), 4 => array('kind' => 'text', 'text' => '<b>' . _('Hard inode limit') . '&nbsp;&nbsp;</b>', 'align' => 'center'),
); );
$return[] = array ( $return[] = array (
0 => array('kind' => 'help', 'value' => 'TODO', 'align' => 'center'), 0 => array('kind' => 'help', 'value' => 'Mountpoint', 'align' => 'center'),
1 => array('kind' => 'help', 'value' => 'TODO', 'align' => 'center'), 1 => array('kind' => 'help', 'value' => 'SoftBlockLimit', 'align' => 'center'),
2 => array('kind' => 'help', 'value' => 'TODO', 'align' => 'center'), 2 => array('kind' => 'help', 'value' => 'HardBlockLimit', 'align' => 'center'),
3 => array('kind' => 'help', 'value' => 'TODO', 'align' => 'center'), 3 => array('kind' => 'help', 'value' => 'SoftInodeLimit', 'align' => 'center'),
4 => array('kind' => 'help', 'value' => 'TODO', 'align' => 'center'), 4 => array('kind' => 'help', 'value' => 'HardInodeLimit', 'align' => 'center'),
); );
for ($i = 0; $i < sizeof($dirs); $i++) { for ($i = 0; $i < sizeof($dirs); $i++) {
$return[] = array( $return[] = array(