workspace = $workspace; $this->sql = $sql; $this->isRbac = $isRbac; $this->setCwd(PATH_TRUNK); parent::__construct($this->buildCommand()); } /** * Returns the command to execute. * @return string */ public function buildCommand() { $command = PHP_BINDIR . "/php " . "./processmaker " . "'populate-table' " . "'{$this->workspace}' " . base64_encode($this->sql) . " " . ($this->isRbac ? "'1'" : "'0'"); return $command; } }