Exemple #1
0
 /**
  * this function render the update buttons
  * @param object $serverAnswer the update server answer (getInfo)
  */
 private function _getButtons($crosscheck)
 {
     $updateModel = new UpdateForm();
     $serverAnswer = $updateModel->getUpdateInfo($crosscheck);
     // TODO : if no update available, set session about  it...
     if ($serverAnswer->result) {
         unset($serverAnswer->result);
         return $this->controller->renderPartial('//admin/update/check_updates/update_buttons/_updatesavailable', array('updateInfos' => $serverAnswer), false, false);
     }
     // Error : we build the error title and messages
     return $this->controller->renderPartial('//admin/update/check_updates/update_buttons/_updatesavailable_error', array('serverAnswer' => $serverAnswer), false, false);
 }