本文整理汇总了PHP中class_module_system_module::getModuleIdByNr方法的典型用法代码示例。如果您正苦于以下问题:PHP class_module_system_module::getModuleIdByNr方法的具体用法?PHP class_module_system_module::getModuleIdByNr怎么用?PHP class_module_system_module::getModuleIdByNr使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类class_module_system_module
的用法示例。
在下文中一共展示了class_module_system_module::getModuleIdByNr方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: actionList
/**
* Returns a list of the current level
*
* @return string
* @autoTestable
* @permissions view
*/
protected function actionList()
{
$strReturn = "";
//Decide, whether to return the list of navigation or the layer of a navigation
if ($this->getSystemid() == "" || $this->getSystemid() == $this->getObjModule()->getSystemid()) {
$objIterator = new class_array_section_iterator(class_module_navigation_tree::getObjectCount(class_module_system_module::getModuleIdByNr(_navigation_modul_id_)));
$objIterator->setPageNumber($this->getParam("pv"));
$objIterator->setArraySection(class_module_navigation_tree::getObjectList("", $objIterator->calculateStartPos(), $objIterator->calculateEndPos()));
return $this->renderList($objIterator);
} else {
$objIterator = new class_array_section_iterator(class_module_navigation_point::getObjectCount($this->getSystemid()));
$objIterator->setPageNumber($this->getParam("pv"));
$objIterator->setArraySection(class_module_navigation_point::getNaviLayer($this->getSystemid(), false, $objIterator->calculateStartPos(), $objIterator->calculateEndPos()));
$strReturn .= $this->renderList($objIterator, true, "naviPoints", true);
if ($this->strPeAddon == "") {
$strReturn = $this->generateTreeView($strReturn);
}
return $strReturn;
}
}
示例2: getNavigationByName
/**
* Looks up a navigation by its name
*
* @param string $strName
*
* @return class_module_navigation_tree
* @static
*/
public static function getNavigationByName($strName)
{
$objOrm = new class_orm_objectlist();
$objOrm->addWhereRestriction(new class_orm_objectlist_property_restriction("strName", class_orm_comparator_enum::Equal(), $strName));
$arrRows = $objOrm->getObjectList("class_module_navigation_tree", class_module_system_module::getModuleIdByNr(_navigation_modul_id_));
if (count($arrRows) == 1) {
return $arrRows[0];
}
return null;
}