16 require_once __DIR__ .
'/../transport/Constants.inc.php';
25 protected $handlerName =\HCE\transport\HANDLER_ADMIN;
30 protected $commandName = CMD_ECHO;
35 protected $commandParameters = array ();
50 $this->handlerName = $handlerName;
59 return $this->handlerName;
70 $this->commandName = $commandName;
79 return $this->commandName;
91 if (is_array ( $commandParameters )) {
92 $this->commandParameters = $commandParameters;
105 return $this->commandParameters;
114 return implode ( $delimiter, $this->getCommandParameters () );
123 return $this->getHandlerName () . CMD_DELIMITER . $this->getCommandName () . CMD_DELIMITER . $this->getParametersData() . CMD_DELIMITER;
134 $this->error = $errorCode;
156 public function __construct($commandName = null, $commandParameters = null, $handlerName = null) {
158 if ($commandName !== null) {
159 $this->setCommandName ( $commandName );
162 if ($commandParameters !== null) {
163 $this->setCommandParameters ( $commandParameters );
165 if ($handlerName !== null) {
166 $this->setHandlerName ( $handlerName );
174 $this->commandParameters = null;