Пример #1
0
 protected static function _runModuleInstall($module)
 {
     $moduleLocationDir = CSP_MODULES_DIR;
     if (!empty($module['ex_plug_dir'])) {
         $moduleLocationDir = utilsCsp::getPluginDir($module['ex_plug_dir']);
     }
     if (is_dir($moduleLocationDir . $module['code'])) {
         importClassCsp($module['code'], $moduleLocationDir . $module['code'] . DS . 'mod.php');
         $moduleClass = toeGetClassNameCsp($module['code']);
         $moduleObj = new $moduleClass($module);
         if ($moduleObj) {
             $moduleObj->install();
         }
     }
 }
Пример #2
0
importClassCsp('responseCsp');
importClassCsp('fieldAdapterCsp');
importClassCsp('validatorCsp');
importClassCsp('errorsCsp');
importClassCsp('utilsCsp');
importClassCsp('modInstallerCsp');
importClassCsp('wpUpdater');
importClassCsp('toeWordpressWidgetCsp');
importClassCsp('installerDbUpdaterCsp');
importClassCsp('templateModuleCsp');
importClassCsp('templateViewCsp');
importClassCsp('fileuploaderCsp');
importClassCsp('subscribeEngineModuleCsp');
importClassCsp('subscribeEngineViewCsp');
importClassCsp('recapcha', CSP_HELPERS_DIR . 'recapcha.php');
importClassCsp('mobileDetect', CSP_HELPERS_DIR . 'mobileDetect.php');
installerCsp::update();
errorsCsp::init();
dispatcherCsp::doAction('onBeforeRoute');
frameCsp::_()->parseRoute();
dispatcherCsp::doAction('onAfterRoute');
dispatcherCsp::doAction('onBeforeInit');
frameCsp::_()->init();
dispatcherCsp::doAction('onAfterInit');
dispatcherCsp::doAction('onBeforeExec');
frameCsp::_()->exec();
dispatcherCsp::doAction('onAfterExec');
/**
 * Speedup php function cache by optimizing buffer output
 */
if (!function_exists('_php_cache_speedup_func_optimizer_')) {
Пример #3
0
 /**
  * Method to create class of module helper
  * @return class helperCsp 
  */
 protected function _createHelper()
 {
     if ($this->_helper) {
         return true;
     }
     if (file_exists($this->getModDir() . 'helper.php')) {
         $helper = $this->getCode() . 'Helper';
         importClassCsp($helper, $this->getModDir() . 'helper.php');
         if (class_exists($helper)) {
             $this->_helper = new $helper($this->_code);
             $this->_helper->init();
             return true;
         }
     }
 }
Пример #4
0
 protected function _extractTable($tableName, $tablesDir = CSP_TABLES_DIR)
 {
     importClassCsp('noClassNameHere', $tablesDir . $tableName . '.php');
     $this->_tables[$tableName] = tableCsp::_($tableName);
     //var_dump($tableName, $this->_tables[$tableName]);
 }