/** * Return instance of self * * @static * @return Axis_Install_Model_Wizard */ public static function getInstance() { if (null === self::$_instance) { self::$_instance = new self(); } return self::$_instance; }
private function _getConfigContent() { $config = array(); foreach ($this->_session as $key => $value) { $config[$key] = $value; } if (empty($config['store_cryptKey'])) { $config['store_cryptKey'] = md5($this->_install->generateKey()); } $this->view->config = $config; return $this->view->render('index/config.phtml'); }
/** * * @return string */ public function progress() { $install = Axis_Install_Model_Wizard::getInstance(); $steps = $install->getSteps(); $current = $install->getCurrent(); $html = '<ul class=\'install-progress\'>'; foreach ($steps as $id => $step) { if ($current == $id) { $html .= '<li class="active">' . Axis::translate('install')->__($step) . '</li>'; } else { $html .= '<li>' . Axis::translate('install')->__($step) . '</li>'; } } $html .= '</ul>'; return $html; }