当前位置: 首页>>代码示例>>PHP>>正文


PHP class_module_system_module::getPlainModuleData方法代码示例

本文整理汇总了PHP中class_module_system_module::getPlainModuleData方法的典型用法代码示例。如果您正苦于以下问题:PHP class_module_system_module::getPlainModuleData方法的具体用法?PHP class_module_system_module::getPlainModuleData怎么用?PHP class_module_system_module::getPlainModuleData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在class_module_system_module的用法示例。


在下文中一共展示了class_module_system_module::getPlainModuleData方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: update

 public function update()
 {
     $strReturn = "";
     //check installed version and to which version we can update
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     $strReturn .= "Version found:\n\t Module: " . $arrModule["module_name"] . ", Version: " . $arrModule["module_version"] . "\n\n";
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.0") {
         $strReturn = "Updating 4.0 to 4.1...\n";
         $strReturn .= "Updating module-versions...\n";
         $this->updateModuleVersion("dashboard", "4.1");
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.1") {
         $strReturn .= "Updating 4.1 to 4.2...\n";
         $strReturn .= "Updating module-versions...\n";
         $this->updateModuleVersion("dashboard", "4.2");
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.2") {
         $strReturn .= "Updating 4.2 to 4.3...\n";
         $strReturn .= "Updating module-versions...\n";
         $this->updateModuleVersion("dashboard", "4.3");
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.3") {
         $strReturn .= "Updating 4.3 to 4.4...\n";
         $strReturn .= "Updating module-versions...\n";
         $this->updateModuleVersion("dashboard", "4.4");
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.4") {
         $strReturn .= "Updating 4.4 to 4.5...\n";
         $strReturn .= "Updating module-versions...\n";
         $this->updateModuleVersion("dashboard", "4.5");
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.5") {
         $strReturn .= "Updating 4.5 to 4.6...\n";
         $strReturn .= "Updating module-versions...\n";
         $this->updateModuleVersion("dashboard", "4.6");
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.6") {
         $strReturn .= "Updating to 4.7...\n";
         $strReturn .= "Updating module-versions...\n";
         $this->updateModuleVersion("dashboard", "4.7");
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.7") {
         $strReturn .= $this->update_47_475();
     }
     return $strReturn . "\n\n";
 }
开发者ID:jinshana,项目名称:kajonacms,代码行数:54,代码来源:class_installer_dashboard.php

示例2: update

 public function update()
 {
     $strReturn = "";
     //check installed version and to which version we can update
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     $strReturn .= "Version found:\n\t Module: " . $arrModule["module_name"] . ", Version: " . $arrModule["module_version"] . "\n\n";
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "1.2") {
         $strReturn .= "Updating 1.2 to 1.3...\n";
         $strReturn .= "Updating module-versions...\n";
         $this->updateModuleVersion("votings", "1.3");
         $strReturn .= "Updating element-versions...\n";
         $this->updateElementVersion("votings", "1.3");
         $this->objDB->flushQueryCache();
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "1.3") {
         $strReturn .= "Updating 1.3 to 1.4...\n";
         $strReturn .= "Updating module-versions...\n";
         $this->updateModuleVersion("votings", "1.4");
         $strReturn .= "Updating element-versions...\n";
         $this->updateElementVersion("votings", "1.4");
         $this->objDB->flushQueryCache();
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "1.4") {
         $strReturn .= "Updating 1.4 to 1.5...\n";
         $strReturn .= "Updating module-versions...\n";
         $this->updateModuleVersion("votings", "1.5");
         $strReturn .= "Updating element-versions...\n";
         $this->updateElementVersion("votings", "1.5");
         $this->objDB->flushQueryCache();
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "1.5") {
         $strReturn .= "Updating 1.5 to 1.6...\n";
         $strReturn .= "Updating module-versions...\n";
         $this->updateModuleVersion("votings", "1.6");
         $strReturn .= "Updating element-versions...\n";
         $this->updateElementVersion("votings", "1.6");
         $this->objDB->flushQueryCache();
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "1.6") {
         $strReturn .= "Updating to 1.7...\n";
         $strReturn .= "Updating module-versions...\n";
         $this->updateModuleVersion("votings", "1.7");
         $strReturn .= "Updating element-versions...\n";
         $this->updateElementVersion("votings", "1.7");
         $this->objDB->flushQueryCache();
     }
     return $strReturn . "\n\n";
 }
开发者ID:jinshana,项目名称:kajonacms,代码行数:53,代码来源:class_installer_votings.php

示例3: isVersioningAvailable

 /**
  * Checks if version is enabled in general and for the passed object
  *
  * @param interface_versionable $objSourceModel
  *
  * @return bool
  * @throws class_exception
  */
 private function isVersioningAvailable(interface_versionable $objSourceModel)
 {
     if (self::$bitChangelogEnabled !== null) {
         return self::$bitChangelogEnabled;
     }
     //        if(class_module_system_setting::getConfigValue("_system_changehistory_enabled_") != "true") {
     //            self::$bitChangelogEnabled = false;
     //            return false;
     //        }
     if (!$objSourceModel instanceof interface_versionable) {
         throw new class_exception("object passed to create changelog not implementing interface_versionable", class_logger::$levelWarning);
     }
     //changes require at least kajona 3.4.9
     $arrModul = class_module_system_module::getPlainModuleData("system");
     if (version_compare($arrModul["module_version"], "3.4.9") < 0) {
         self::$bitChangelogEnabled = false;
         return false;
     }
     self::$bitChangelogEnabled = true;
     return true;
 }
开发者ID:jinshana,项目名称:kajonacms,代码行数:29,代码来源:class_module_system_changelog.php

示例4: update

 public function update()
 {
     $strReturn = "";
     //check installed version and to which version we can update
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     $strReturn .= "Version found:\n\t Module: " . $arrModule["module_name"] . ", Version: " . $arrModule["module_version"] . "\n\n";
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.0") {
         $strReturn .= "Updating 4.0 to 4.1...\n";
         $strReturn .= "Updating module-versions...\n";
         $this->updateModuleVersion("search", "4.1");
         $this->updateElementVersion("search", "4.1");
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.1") {
         $strReturn .= "Updating 4.1 to 4.2...\n";
         $strReturn .= "Updating module-versions...\n";
         $this->updateModuleVersion("search", "4.2");
         $this->updateElementVersion("search", "4.2");
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.2") {
         $strReturn .= "Updating 4.2 to 4.3...\n";
         $strReturn .= "Updating module-versions...\n";
         $this->updateModuleVersion("search", "4.3");
         $this->updateElementVersion("search", "4.3");
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.3") {
         $strReturn .= $this->update_43_44();
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.4" || $arrModule["module_version"] == "4.4.1") {
         $strReturn .= $this->update_441_45();
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.5") {
         $strReturn .= $this->update_45_451();
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.5.1") {
         $strReturn .= $this->update_451_452();
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.5.2") {
         $strReturn .= "Updating 4.5.2 to 4.6...\n";
         $strReturn .= "Updating module-versions...\n";
         $this->updateModuleVersion("search", "4.6");
         $this->updateElementVersion("search", "4.6");
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.6") {
         $strReturn .= $this->update_46_461();
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.6.1") {
         $strReturn .= "Updating to 4.7...\n";
         $this->updateModuleVersion("search", "4.7");
         $this->updateElementVersion("search", "4.7");
     }
     if ($this->bitIndexRebuild) {
         $strReturn .= "Rebuilding search index...\n";
         $this->updateIndex();
     }
     return $strReturn . "\n\n";
 }
开发者ID:jinshana,项目名称:kajonacms,代码行数:66,代码来源:class_installer_search.php

示例5: getModuleData

 /**
  * Returns the data for a registered module
  *
  * @param string $strName
  * @param bool $bitCache
  * @return mixed
  * @deprecated
  * @see class_module_system_module::getPlainModuleData($strName, $bitCache)
  */
 public function getModuleData($strName, $bitCache = true)
 {
     return class_module_system_module::getPlainModuleData($strName, $bitCache);
 }
开发者ID:jinshana,项目名称:kajonacms,代码行数:13,代码来源:class_root.php

示例6: update

 public function update()
 {
     $strReturn = "";
     //check installed version and to which version we can update
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     $strReturn .= "Version found:\n\t Module: " . $arrModule["module_name"] . ", Version: " . $arrModule["module_version"] . "\n\n";
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.0") {
         $strReturn .= $this->update_40_401();
         $this->objDB->flushQueryCache();
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.0.1") {
         $strReturn .= $this->update_401_41();
         $this->objDB->flushQueryCache();
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.1") {
         $strReturn .= $this->update_41_411();
         $this->objDB->flushQueryCache();
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.1.1") {
         $strReturn .= $this->update_411_42();
         $this->objDB->flushQueryCache();
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.2") {
         $strReturn .= "Updating 4.2 to 4.3...\n";
         $strReturn .= "Updating module-versions...\n";
         $this->updateModuleVersion("", "4.3");
         $this->objDB->flushQueryCache();
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.3") {
         $strReturn .= $this->update_43_431();
         $this->objDB->flushQueryCache();
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.3.1") {
         $strReturn .= $this->update_431_432();
         $this->objDB->flushQueryCache();
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.3.2") {
         $strReturn .= $this->update_432_44();
         $this->objDB->flushQueryCache();
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.4") {
         $strReturn .= "Updating 4.4 to 4.4.1...\n";
         $this->updateModuleVersion("", "4.4.1");
         $this->objDB->flushQueryCache();
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.4.1") {
         $strReturn .= "Updating 4.4.1 to 4.4.2...\n";
         $this->updateModuleVersion("", "4.4.2");
         $this->objDB->flushQueryCache();
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.4.2") {
         $strReturn .= "Updating 4.4.2 to 4.4.3...\n";
         $this->updateModuleVersion("", "4.4.3");
         $this->objDB->flushQueryCache();
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.4.3") {
         $strReturn .= "Updating 4.4.3 to 4.4.4...\n";
         $this->updateModuleVersion("", "4.4.4");
         $this->objDB->flushQueryCache();
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.4.4") {
         $strReturn .= $this->update_444_45();
         $this->objDB->flushQueryCache();
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.5") {
         $strReturn .= $this->update_45_451();
         $this->objDB->flushQueryCache();
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.5.1") {
         $strReturn .= "Updating 4.5.1 to 4.6...\n";
         $this->updateModuleVersion("", "4.6");
         $this->objDB->flushQueryCache();
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.6") {
         $strReturn .= "Updating 4.6 to 4.6.1...\n";
         $this->updateModuleVersion("", "4.6.1");
         $this->objDB->flushQueryCache();
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.6.1") {
         $strReturn .= "Updating 4.6.1 to 4.6.2...\n";
         $this->updateModuleVersion("", "4.6.2");
         $this->objDB->flushQueryCache();
     }
//.........这里部分代码省略.........
开发者ID:jinshana,项目名称:kajonacms,代码行数:101,代码来源:class_installer_system.php

示例7: update

 public function update()
 {
     $strReturn = "";
     //check installed version and to which version we can update
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     $strReturn .= "Version found:\n\t Module: " . $arrModule["module_name"] . ", Version: " . $arrModule["module_version"] . "\n\n";
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.0") {
         $strReturn .= $this->update_40_401();
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.0.1") {
         $strReturn .= $this->update_401_41();
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.1") {
         $strReturn .= $this->update_41_42();
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.2") {
         $strReturn .= $this->update_42_43();
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.3") {
         $strReturn = "Updating 4.3 to 4.4...\n";
         $this->updateModuleVersion("", "4.4");
         $this->updateElementVersion("row", "4.4");
         $this->updateElementVersion("paragraph", "4.4");
         $this->updateElementVersion("image", "4.4");
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.4") {
         $strReturn = "Updating 4.4 to 4.5...\n";
         $this->updateModuleVersion("", "4.5");
         $this->updateElementVersion("row", "4.5");
         $this->updateElementVersion("paragraph", "4.5");
         $this->updateElementVersion("image", "4.5");
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.5") {
         $strReturn = "Updating 4.5 to 4.6...\n";
         $this->updateModuleVersion("", "4.6");
         $this->updateElementVersion("row", "4.6");
         $this->updateElementVersion("paragraph", "4.6");
         $this->updateElementVersion("image", "4.6");
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.6") {
         $strReturn = "Updating 4.6 to 4.6.1...\n";
         $this->updateModuleVersion("", "4.6.1");
         $this->updateElementVersion("row", "4.6.1");
         $this->updateElementVersion("paragraph", "4.6.1");
         $this->updateElementVersion("image", "4.6.1");
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.6.1") {
         $strReturn = "Updating 4.6.1 to 4.6.2...\n";
         $this->updateModuleVersion("", "4.6.2");
         $this->updateElementVersion("row", "4.6.2");
         $this->updateElementVersion("paragraph", "4.6.2");
         $this->updateElementVersion("image", "4.6.2");
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.6.2") {
         $strReturn = "Updating to 4.7...\n";
         $this->updateModuleVersion("", "4.7");
         $this->updateElementVersion("row", "4.7");
         $this->updateElementVersion("paragraph", "4.7");
         $this->updateElementVersion("image", "4.7");
     }
     $arrModule = class_module_system_module::getPlainModuleData($this->objMetadata->getStrTitle(), false);
     if ($arrModule["module_version"] == "4.7") {
         $strReturn = "Updating to 4.7.1...\n";
         $this->updateModuleVersion("", "4.7.1");
         $this->updateElementVersion("row", "4.7.1");
         $this->updateElementVersion("paragraph", "4.7.1");
         $this->updateElementVersion("image", "4.7.1");
     }
     return $strReturn . "\n\n";
 }
开发者ID:jinshana,项目名称:kajonacms,代码行数:80,代码来源:class_installer_pages.php


注:本文中的class_module_system_module::getPlainModuleData方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。