Initial Commit of AgileBill Open Source
This commit is contained in:
28
plugins/provision/_rrad/hAdminInfo.php
Normal file
28
plugins/provision/_rrad/hAdminInfo.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?
|
||||
class hAdminInfo extends hInfo
|
||||
{
|
||||
var $fields;
|
||||
|
||||
function hAdminInfo(&$domaincon)
|
||||
{
|
||||
$this->fields = array ("SalesRep", "ExternalID");
|
||||
|
||||
$this->RRADRetrieveCommand = &new hCommand("I RA","",$domaincon);
|
||||
$this->RRADUpdateCommand = &new hCommand("I UA","",$domaincon);
|
||||
|
||||
}
|
||||
|
||||
function getRRADUpdateCommand()
|
||||
{
|
||||
for ($i=0; $i<sizeof($this->fields); $i++)
|
||||
{
|
||||
$fn = $this->fields[$i];
|
||||
if ($i > 0)
|
||||
$suffix .= " ";
|
||||
$suffix .= str_replace(" ", chr(31), $this->properties[$fn]);
|
||||
}
|
||||
$this->RRADUpdateCommand->suffix = $suffix;
|
||||
return $this->RRADUpdateCommand;
|
||||
}
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user