Exemple #1
0
 /**
  * This method generates all UI of framework setup.
  *
  * @access   private
  * @since    1.0.0-alpha
  * @version  1.0.0-alpha
  */
 private function userView()
 {
     $bMeetsReqs = FALSE;
     $bPHPVersionCheck = version_compare(PHP_VERSION, '5.4.12', '>=');
     $bRegisterGlobals = ini_get('register_globals');
     // @TODO CHECK INITIAL PHP CONDITIONS
     if (TRUE) {
         $bMeetsReqs = TRUE;
     }
     $oViewContent = InstallView::factory('content');
     $oViewContent->set('sAppName', APP_NAME);
     $oViewContent->set('aCached', $this->aCached);
     $oViewContent->bind('bPHPVersionCheck', $bPHPVersionCheck);
     $oViewContent->bind('bRegisterGlobals', $bRegisterGlobals);
     $oViewContent->bind('bMeetsReqs', $bMeetsReqs);
     // check step #3
     $bFilesPrepared = TRUE;
     if (empty($this->aCached) || $this->aCached['step_done'] < 2 || !empty($this->aCached) && static::isDirEmpty($this->getAppPath())) {
         $bFilesPrepared = FALSE;
     }
     $oViewContent->bind('bFilesPrepared', $bFilesPrepared);
     // check step #4
     $bDataBaseUpdated = FALSE;
     if (!empty($this->aCached) && $this->aCached['step_done'] >= 3) {
         $bDataBaseUpdated = TRUE;
     }
     $oViewContent->bind('bDataBaseUpdated', $bDataBaseUpdated);
     // check step #5
     $oViewContent->set('bUserCreated', $this->checkIfAdminCreated());
     // bind View
     $this->oViewBody->bind('oBody', $oViewContent);
 }
Exemple #2
0
 /**
  * Render output of installation system.
  *
  * @access   public
  * @return   string
  * @since    1.0.0-alpha
  * @version  1.0.0-alpha
  */
 public function renderOutput()
 {
     return $this->oViewBody->render();
 }