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/hCommand.php

26 lines
452 B
PHP
Raw Normal View History

<?
class hCommand
{
var $prefix;
var $suffix;
var $domain;
var $delim = " ";
function assemble()
{
$cmd = $this->prefix.$this->delim.$this->domain;
if (strlen($this->suffix)>0)
$cmd .= $this->delim.$this->suffix;
return $cmd;
}
function hCommand($prefix="",$suffix="", $domaincon=false)
{
$this->prefix = $prefix;
$this->suffix = $suffix;
if (is_object($domaincon))
$this->domain = $domaincon->getName();
}
}
?>