This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/plugins/provision/_rrad/hUsageInfo.php
2008-11-26 14:50:40 -08:00

30 lines
654 B
PHP

<?
class hUsageInfo extends hInfo
{
var $startMonth;
var $endMonth;
function hUsageInfo($startMonth, $endMonth, $domaincon)
{
$this->startMonth = $startMonth;
$this->endMonth = $endMonth;
$this->fields = array ("Month", "Bandwidth", "Diskusage",
"MailboxesUsed", "Mailboxes");
$this->RRADRetrieveCommand = &new hCommand("I RU","",$domaincon);
}
function getRRADRetrieveCommand()
{
if (strlen($this->startMonth)>0 )
$this->RRADRetrieveCommand->suffix .= $this->startMonth;
if (strlen($this->endMonth)>0 )
$this->RRADRetrieveCommand->suffix .= " ".$this->endMonth;
return $this->RRADRetrieveCommand;
}
}
?>