Initial Commit of AgileBill Open Source
This commit is contained in:
29
plugins/provision/_rrad/hUsageInfo.php
Normal file
29
plugins/provision/_rrad/hUsageInfo.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user