本文整理汇总了PHP中JUDirectoryHelper::getCustomListById方法的典型用法代码示例。如果您正苦于以下问题:PHP JUDirectoryHelper::getCustomListById方法的具体用法?PHP JUDirectoryHelper::getCustomListById怎么用?PHP JUDirectoryHelper::getCustomListById使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JUDirectoryHelper
的用法示例。
在下文中一共展示了JUDirectoryHelper::getCustomListById方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: build
//.........这里部分代码省略.........
} else {
if (isset($query['layout'])) {
unset($query['layout']);
}
}
JUDirectoryHelperRoute::seoPagination($query, $params, $segments);
unset($query['view']);
}
if (isset($query['view']) && $query['view'] == 'topcomments') {
if (!$hasActiveMenu) {
if (isset($query['Itemid']) && $query['Itemid'] == $homeItemId) {
$sefRootCategory = 'root';
$segments[] = JApplication::stringURLSafe($sefRootCategory);
}
$segments[] = JApplication::stringURLSafe('top-comments');
JUDirectoryHelperRoute::seoLayout($query, $segments, $params);
} else {
if (isset($query['layout'])) {
unset($query['layout']);
}
}
JUDirectoryHelperRoute::seoPagination($query, $params, $segments);
unset($query['view']);
}
if (isset($query['view']) && $query['view'] == 'customlist') {
if (!$hasActiveMenu) {
if (isset($query['Itemid']) && $query['Itemid'] == $homeItemId) {
$sefRootCategory = 'root';
$segments[] = JApplication::stringURLSafe($sefRootCategory);
}
$segments[] = JApplication::stringURLSafe('custom-list');
if (isset($query['id'])) {
if ($query['id']) {
$customListObject = JUDirectoryHelper::getCustomListById($query['id']);
$segments[] = $query['id'] . ':' . (isset($customListObject->alias) ? $customListObject->alias : '');
}
unset($query['id']);
}
JUDirectoryHelperRoute::seoLayout($query, $segments, $params);
} else {
if (isset($query['id'])) {
unset($query['id']);
}
if (isset($query['layout'])) {
unset($query['layout']);
}
}
JUDirectoryHelperRoute::seoFormat($query, $params, $segments);
JUDirectoryHelperRoute::seoPagination($query, $params, $segments);
unset($query['view']);
}
if (isset($query['view']) && $query['view'] == 'compare') {
if (!$hasActiveMenu) {
if (isset($query['Itemid']) && $query['Itemid'] == $homeItemId) {
$sefRootCategory = 'root';
$segments[] = JApplication::stringURLSafe($sefRootCategory);
}
$segments[] = JApplication::stringURLSafe('compare');
JUDirectoryHelperRoute::seoLayout($query, $segments, $params);
} else {
if (isset($query['layout'])) {
unset($query['layout']);
}
}
JUDirectoryHelperRoute::seoPagination($query, $params, $segments);
unset($query['view']);