/** * Parse file * @param string $Filename relative path (from FRONTEND_PATH) to file */ public function parseFile($Filename) { $this->Filename = $Filename . '.temp.tcx'; $Command = new ShellCommand(TTBIN_PATH . ' -t -E < "' . FRONTEND_PATH . $Filename . '" > "' . FRONTEND_PATH . $this->Filename . '"'); $Command->run(); $this->readFile(); }
/** * Parse file * @param string $Filename relative path (from FRONTEND_PATH) to file */ public function parseFile($Filename) { $this->Filename = $Filename . '.temp.tcx'; $Command = new ShellCommand(FRONTEND_PATH . '../call/perl/ttbincnv -t < ' . FRONTEND_PATH . $Filename . ' > ' . FRONTEND_PATH . $this->Filename . ''); $Command->run(); $this->readFile(); }
/** * Run command * @param ShellCommand $Command */ public function runCommand(ShellCommand $Command) { $this->Output = $Command->run(); }