/** * diaplay the result of the changed files check * * @return html HTML */ public function fileSystem() { if (isset($_REQUEST['destinationBuild'])) { $tobuild = $_REQUEST['destinationBuild']; $access_token = $_REQUEST['access_token']; $frombuild = Yii::app()->getConfig("buildnumber"); $updateModel = new UpdateForm(); $changedFiles = $updateModel->getChangedFiles($tobuild); if ($changedFiles->result) { //TODO : clean that $aData = $updateModel->getFileStatus($changedFiles->files); $aData['html_from_server'] = isset($changedFiles->html) ? $changedFiles->html : ''; $aData['datasupdateinfo'] = $this->_parseToView($changedFiles->files); $aData['destinationBuild'] = $tobuild; $aData['updateinfo'] = $changedFiles->files; $aData['access_token'] = $access_token; return $this->controller->renderPartial('update/updater/steps/_fileSystem', $aData, false, false); } return $this->_renderError($changedFiles); } return $this->_renderErrorString("unknown_destination_build"); }