本文整理汇总了PHP中class_module_system_module::getModuleBySystemid方法的典型用法代码示例。如果您正苦于以下问题:PHP class_module_system_module::getModuleBySystemid方法的具体用法?PHP class_module_system_module::getModuleBySystemid怎么用?PHP class_module_system_module::getModuleBySystemid使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类class_module_system_module
的用法示例。
在下文中一共展示了class_module_system_module::getModuleBySystemid方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: actionSaveModuleAspect
/**
* @return string
* @permissions right5
*/
protected function actionSaveModuleAspect()
{
$arrParams = array();
foreach ($this->getAllParams() as $strName => $intValue) {
if (uniStrpos($strName, "aspect_") !== false) {
$arrParams[] = uniSubstr($strName, 7);
}
}
$objModule = class_module_system_module::getModuleBySystemid($this->getSystemid());
$objModule->setStrAspect(implode(",", $arrParams));
$objModule->updateObjectToDb();
$this->adminReload(class_link::getLinkAdminHref($this->getArrModule("modul"), "list", "peClose=1&blockAction=1"));
}
示例2: getAdminSitemap
/**
* The v4 way of generating a backend-navigation.
*
* @param string $strCurrentModule
*
* @return string
*/
public function getAdminSitemap($strCurrentModule = "")
{
$strWrapperID = $this->objTemplate->readTemplate("/elements.tpl", "sitemap_wrapper");
$strModuleID = $this->objTemplate->readTemplate("/elements.tpl", "sitemap_module_wrapper");
$strModuleActiveID = $this->objTemplate->readTemplate("/elements.tpl", "sitemap_module_wrapper_active");
$strActionID = $this->objTemplate->readTemplate("/elements.tpl", "sitemap_action_entry");
$strDividerID = $this->objTemplate->readTemplate("/elements.tpl", "sitemap_divider_entry");
$strModules = "";
if ($strCurrentModule == "elemente") {
$strCurrentModule = "pages";
}
$arrModules = class_module_system_module::getModulesInNaviAsArray(class_module_system_aspect::getCurrentAspectId());
/** @var $arrNaviInstances class_module_system_module[] */
$arrNaviInstances = array();
foreach ($arrModules as $arrModule) {
$objModule = class_module_system_module::getModuleBySystemid($arrModule["module_id"]);
if ($objModule->rightView()) {
$arrNaviInstances[] = $objModule;
}
}
foreach ($arrNaviInstances as $objOneInstance) {
$arrActions = class_admin_helper::getModuleActionNaviHelper($objOneInstance);
$strActions = "";
foreach ($arrActions as $strOneAction) {
if (trim($strOneAction) != "") {
$arrActionEntries = array("action" => $strOneAction);
$strActions .= $this->objTemplate->fillTemplate($arrActionEntries, $strActionID);
} else {
$strActions .= $this->objTemplate->fillTemplate(array(), $strDividerID);
}
}
$arrModuleLevel = array("module" => class_link::getLinkAdmin($objOneInstance->getStrName(), "", "", class_carrier::getInstance()->getObjLang()->getLang("modul_titel", $objOneInstance->getStrName())), "actions" => $strActions, "systemid" => $objOneInstance->getSystemid(), "moduleTitle" => $objOneInstance->getStrName(), "moduleName" => class_carrier::getInstance()->getObjLang()->getLang("modul_titel", $objOneInstance->getStrName()), "moduleHref" => class_link::getLinkAdminHref($objOneInstance->getStrName(), ""));
if ($strCurrentModule == $objOneInstance->getStrName()) {
$strModules .= $this->objTemplate->fillTemplate($arrModuleLevel, $strModuleActiveID);
} else {
$strModules .= $this->objTemplate->fillTemplate($arrModuleLevel, $strModuleID);
}
}
return $this->objTemplate->fillTemplate(array("level" => $strModules), $strWrapperID);
}