public static function getDefaultProviderList() { if (!isset(self::$_defaultProviderList)) { self::$_defaultProviderList = new Kwf_Assets_ProviderList_Maintenance(); } return self::$_defaultProviderList; }
public function indexAction() { $this->view->assetsPackage = Kwf_Assets_Package_Maintenance::getInstance('Maintenance'); $this->view->xtype = 'kwf.maintenance.updateDownloader'; $this->view->defaultLibraryUrl = 'https://github.com/vivid-planet/library/archive/master.tar.gz'; if (Kwf_Config::getValue('updateDownloader.app.github.repository')) { $branch = Kwf_Config::getValue('updateDownloader.app.github.branch'); if (!$branch) { $branch = 'master'; } $ghPath = Kwf_Config::getValue('updateDownloader.app.github.user') . '/' . Kwf_Config::getValue('updateDownloader.app.github.repository'); $kwfBranch = trim(file_get_contents('https://raw.github.com/' . $ghPath . '/' . $branch . '/kwf_branch')); $this->view->defaultAppUrl = "https://github.com/{$ghPath}/archive/{$branch}.tar.gz"; } else { if (!file_exists('kwf_branch')) { $kwfBranch = trim(file_get_contents('kwf_branch')); } else { $kwfBranch = 'master'; } } if (Kwf_Config::getValue('updateDownloader.kwf.github.repository')) { $ghPath = Kwf_Config::getValue('updateDownloader.kwf.github.user') . '/' . Kwf_Config::getValue('updateDownloader.kwf.github.repository'); $this->view->defaultKwfUrl = "https://github.com/{$ghPath}/archive/{$kwfBranch}.tar.gz"; } else { $this->view->defaultKwfUrl = 'https://github.com/vivid-planet/koala-framework/archive/' . $kwfBranch . '.tar.gz'; } }
public function indexAction() { if (!file_exists('build/assets')) { throw new Kwf_Exception_Client("Installation incomplete: 'build' folder does not exist. You can generate it by calling 'php bootstrap.php build' on commandline. On production servers you should upload locally generated build."); } $this->view->typeNames = Kwf_Util_ClearCache::getInstance()->getTypeNames(); $this->view->assetsPackage = Kwf_Assets_Package_Maintenance::getInstance('Maintenance'); $this->view->xtype = 'kwf.maintenance.clearCache'; }
public function indexAction() { $this->view->kwfVersion = Kwf_Config::getValue('application.kwf.name') . ' ' . trlKwf('Version') . ' ' . Kwf_Config::getValue('application.kwf.version'); $this->view->appVersion = Kwf_Config::getValue('application.name'); $this->view->baseUrl = Kwf_Setup::getBaseUrl(); $this->view->defaultDbName = Kwf_Config::getValue('application.id'); $this->view->possibleConfigSections = array(); $cfg = new Kwf_Config_Ini('config.ini'); foreach ($cfg as $k => $i) { $this->view->possibleConfigSections[] = array($k, $k); } $this->view->assetsPackage = Kwf_Assets_Package_Maintenance::getInstance('Maintenance'); $this->view->viewport = 'Kwf.Maintenance.Viewport'; $this->view->xtype = 'kwf.maintenance.setup'; }
public function indexAction() { $this->view->typeNames = Kwf_Util_ClearCache::getInstance()->getTypeNames(); $this->view->assetsPackage = Kwf_Assets_Package_Maintenance::getInstance('Maintenance'); $this->view->xtype = 'kwf.maintenance.fulltext'; }