/** * Get all files about the CheckDoc's tools (ToolsCheckDoc's class). */ public function getCheckDocFiles() { if (!AccountManager::getInstance()->isLogged()) { return JsonResponseBuilder::failure(); } $path = $this->getRequestVariable('path'); $errorType = $this->getRequestVariable('errorType'); $ToolsCheckDoc = new ToolsCheckDoc(); $r = $ToolsCheckDoc->getCheckDocFiles($path, $errorType); return JsonResponseBuilder::success(array('files' => $r)); }