本文整理汇总了PHP中ca_lists::getChildItemsForList方法的典型用法代码示例。如果您正苦于以下问题:PHP ca_lists::getChildItemsForList方法的具体用法?PHP ca_lists::getChildItemsForList怎么用?PHP ca_lists::getChildItemsForList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ca_lists
的用法示例。
在下文中一共展示了ca_lists::getChildItemsForList方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
//
// Handle AJAX request
//
if ($this->request->isAjax()) {
$vn_item_id = $this->request->getParameter('item_id', pInteger);
$t_list = new ca_lists();
$va_list_sub_items = $t_list->getItemsForList($this->getVar('list_code'), array('directChildrenOnly' => true, 'item_id' => $vn_item_id, 'extractValuesByUserLocale' => true, 'enabledOnly' => true, 'sort' => __CA_LISTS_SORT_BY_RANK__));
$va_resp = array();
if (is_array($va_list_sub_items)) {
foreach ($va_list_sub_items as $vn_i => $va_item) {
$va_list_sub_sub_items = caExtractValuesByUserLocale($t_list->getChildItemsForList($this->getVar('list_code'), $va_item['item_id'], array('directChildrenOnly' => true)));
if (is_array($va_list_sub_sub_items) && sizeof($va_list_sub_sub_items)) {
$va_resp['subList'] .= "<li><a href='#' onClick='\$(\"#tocSubList" . $vn_i . "\").toggle(); return false;'>+ " . $va_item['name_plural'] . "</a></li>\n";
$va_resp['subList'] .= "<ul class='tocSubSubMenu' id='tocSubList" . $vn_i . "'>";
foreach ($va_list_sub_sub_items as $vn_sub_i => $va_subitem) {
#$va_resp['subList'] .= "<li>".caNavLink($this->request, $va_subitem['name_plural'], '', '', 'Browse', 'Objects', array('facet' => 'term_facet', 'id' => $vn_sub_i))."</li>\n";
$va_resp['subList'] .= "<li>" . caNavLink($this->request, $va_subitem['name_plural'], '', '', 'MultiSearch', 'Index', array('search' => 'ca_list_items.item_id:' . $vn_sub_i)) . "</li>\n";
}
$va_resp['subList'] .= "</ul>";
} else {
#$va_resp['subList'] .= "<li>".caNavLink($this->request, $va_item['name_plural'], '', '', 'Browse', 'Objects', array('facet' => 'term_facet', 'id' => $vn_i))."</li>\n";
$va_resp['subList'] .= "<li>" . caNavLink($this->request, $va_item['name_plural'], '', '', 'MultiSearch', 'Index', array('search' => 'ca_list_items.item_id:' . $vn_i)) . "</li>\n";
}
}
}
require_once __CA_MODELS_DIR__ . "/ca_list_items.php";
$t_list_item = new ca_list_items($vn_item_id);
$va_resp['selectedTitle'] = $t_list_item->get('ca_list_items.preferred_labels.name_plural');
$va_resp['selectedDescription'] = $t_list_item->get('ca_list_items.preferred_labels.description') . "<br/><br>" . caNavLink($this->request, _t('View'), '', '', 'MultiSearch', 'Index', array('search' => 'ca_list_items.item_id:' . $vn_item_id));
示例2: array
$va_access_values = $this->getVar('access_values');
JavascriptLoadManager::register('tabUI');
JavascriptLoadManager::register('formUI');
$qr_hits = $this->getVar('browse_results');
$va_items = array();
$va_item_classifications = array();
if ($qr_hits->numHits()) {
while ($qr_hits->nextHit()) {
$va_items[$qr_hits->get("ca_objects.showcase_classification")][] = array("object_id" => $qr_hits->get("ca_objects.object_id"), "label" => join($qr_hits->getDisplayLabels(), "; "), "image" => $qr_hits->getMediaTag('ca_object_representations.media', 'widepreview', array('checkAccess' => $va_access_values)), "classification" => $qr_hits->get("ca_objects.showcase_classification", array('convertCodesToDisplayText' => true)));
}
$va_item_classifications = array_keys($va_items);
}
# -- get the top level showcase classifications to display as tabs containing items with that showcase classification
$o_lists = new ca_lists();
$vn_root_node = $o_lists->getRootItemIDForList("archival_showcase_classification");
$va_classification_for_tabs = caExtractValuesByUserLocale($o_lists->getChildItemsForList("archival_showcase_classification", $vn_root_node, array('directChildrenOnly' => true)));
?>
<div id="collectionDetail"><div style="float:left;">
<div class="maincolimage" style="margin-top:16px;">
<?php
print $t_collection->get("showcase_banner", array("version" => "original", "showMediaInfo" => false));
?>
</div><!-- end mailcolImage -->
<div class="maincol">
<h1><?php
print $vs_title;
?>
</h1>