/** * @param array $arguments * @return bool */ protected function extractCommand($arguments) { if (count($arguments) !== 2) { return $this->helpCommand('extract'); } $controller = new \etobi\extensionUtils\Controller\T3xController(); $success = $controller->extractAction($arguments[0], $arguments[1]); return $success; }
/** * @param array $arguments * @return bool */ protected function listFilesCommand($arguments) { if (count($arguments) !== 1 && count($arguments) !== 2) { return $this->helpCommand('listfiles'); } $controller = new \etobi\extensionUtils\Controller\T3xController(); $success = $controller->listFilesAction($arguments[0], isset($arguments[1]) ? TRUE : FALSE); return $success; }
/** * @param array $arguments * @return bool */ protected function showMetaDataCommand($arguments) { if (count($arguments) !== 1) { return $this->helpCommand('showmetadata'); } $controller = new \etobi\extensionUtils\Controller\T3xController(); $success = $controller->showMetaDataAction($arguments[0]); return $success; }