protected static function _runModuleInstall($module) { $moduleLocationDir = BUP_MODULES_DIR; if (!empty($module['ex_plug_dir'])) { $moduleLocationDir = utilsBup::getPluginDir($module['ex_plug_dir']); } if (is_dir($moduleLocationDir . $module['code'])) { importClassBup($module['code'], $moduleLocationDir . $module['code'] . DS . 'mod.php'); $moduleClass = toeGetClassNameBup($module['code']); $moduleObj = new $moduleClass($m); if ($moduleObj) { $moduleObj->install(); } } }
protected static function _runModuleInstall($module, $action = 'install') { $moduleLocationDir = BUP_MODULES_DIR; if (!empty($module['ex_plug_dir'])) { $moduleLocationDir = utilsBup::getPluginDir($module['ex_plug_dir']); } if (is_dir($moduleLocationDir . $module['code'])) { if (!class_exists($module['code'] . strFirstUp(BUP_CODE))) { importClassBup($module['code'], $moduleLocationDir . $module['code'] . DS . 'mod.php'); } $moduleClass = toeGetClassNameBup($module['code']); $moduleObj = new $moduleClass($module); if ($moduleObj) { $moduleObj->{$action}(); } } }
protected function _extractTable($tableName, $tablesDir = BUP_TABLES_DIR) { importClassBup('noClassNameHere', $tablesDir . $tableName . '.php'); $this->_tables[$tableName] = tableBup::_($tableName); //var_dump($tableName, $this->_tables[$tableName]); }
/** * Method to create class of module helper * @return class helperBup */ protected function _createHelper() { if ($this->_helper) { return true; } if (file_exists($this->getModDir() . 'helper.php')) { $helper = $this->getCode() . 'Helper'; importClassBup($helper, $this->getModDir() . 'helper.php'); if (class_exists($helper)) { $this->_helper = new $helper($this->_code); $this->_helper->init(); return true; } } }
importClassBup('dispatcherBup'); importClassBup('fieldBup'); importClassBup('tableBup'); importClassBup('frameBup'); importClassBup('langBup'); importClassBup('reqBup'); importClassBup('uriBup'); importClassBup('htmlBup'); importClassBup('responseBup'); importClassBup('fieldAdapterBup'); importClassBup('validatorBup'); importClassBup('errorsBup'); importClassBup('utilsBup'); importClassBup('modInstallerBup'); importClassBup('wpUpdater'); importClassBup('toeWordpressWidgetBup'); importClassBup('installerDbUpdaterBup'); importClassBup('templateModuleBup'); importClassBup('templateViewBup'); importClassBup('fileuploaderBup'); installerBup::update(); errorsBup::init(); dispatcherBup::doAction('onBeforeRoute'); frameBup::_()->parseRoute(); dispatcherBup::doAction('onAfterRoute'); dispatcherBup::doAction('onBeforeInit'); frameBup::_()->init(); dispatcherBup::doAction('onAfterInit'); dispatcherBup::doAction('onBeforeExec'); frameBup::_()->exec(); dispatcherBup::doAction('onAfterExec');