From a4fe603233202483709db2c636e3362448379d99 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 16 Jul 2005 12:43:48 +0000 Subject: [PATCH] fixed PDF output --- lam/lib/modules/quota.inc | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/lam/lib/modules/quota.inc b/lam/lib/modules/quota.inc index 2324a97b..118ee0a8 100644 --- a/lam/lib/modules/quota.inc +++ b/lam/lib/modules/quota.inc @@ -414,12 +414,32 @@ class quota extends baseModule { } } - /* - * (non-PHPDoc) + /** Returns the PDF entries for this module. + * * @see baseModule#get_pdfEntries + * + * @return array list of possible PDF entries */ function get_pdfEntries($account_type = "user") { - return array( 'quota_quotas' => array('' . _('User quota') . '' . _('Mountpoint') . '' . _('Soft block') . '' . _('Soft inode') . '' . _('Hard block') . '' . _('Hard inode') . '')); + if (sizeof($this->quota) > 0) { + $quotas = array(); + $quotas[] = '' . + '' . _('Mountpoint') . '' . + '' . _('Soft block') . '' . + '' . _('Hard block') . '' . + '' . _('Soft inode') . '' . + '' . _('Hard inode') . ''; + for ($i = 0; $i < sizeof($this->quota); $i++) { + $quotas[] = '' . + '' . $this->quota[$i][0] . '' . + '' . $this->quota[$i][2] . '' . + '' . $this->quota[$i][3] . '' . + '' . $this->quota[$i][6] . '' . + '' . $this->quota[$i][7] . ''; + } + return array( + 'quota_quotas' => $quotas); + } } }