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/hContactInfo.php
2008-11-26 14:50:40 -08:00

32 lines
706 B
PHP

<?
class hContactInfo extends hInfo
{
var $fields;
function hContactInfo(&$domaincon)
{
$this->fields = array (
"FirstName", "LastName", "Company", "Address1",
"Address2", "City", "State", "PostalCode", "Country",
"Email", "Phone", "Fax");
$this->RRADRetrieveCommand = &new hCommand("I RC","",$domaincon);
$this->RRADUpdateCommand = &new hCommand("I UC","",$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;
}
}
?>