當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ca_occurrences::getRelatedItemsForDisplay方法代碼示例

本文整理匯總了PHP中ca_occurrences::getRelatedItemsForDisplay方法的典型用法代碼示例。如果您正苦於以下問題:PHP ca_occurrences::getRelatedItemsForDisplay方法的具體用法?PHP ca_occurrences::getRelatedItemsForDisplay怎麽用?PHP ca_occurrences::getRelatedItemsForDisplay使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ca_occurrences的用法示例。


在下文中一共展示了ca_occurrences::getRelatedItemsForDisplay方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: implode

            print implode($va_related_entities, "\n");
            ?>
				</div><!-- end unit -->
<?php 
        }
    }
    # --- occurrences
    $va_occurrences = array();
    if (sizeof($this->getVar('occurrences'))) {
        $t_occ = new ca_occurrences();
        $va_item_types = $t_occ->getTypeList();
        foreach ($this->getVar('occurrences') as $va_occurrence) {
            $t_occ->load($va_occurrence['occurrence_id']);
            $vs_venue = "";
            $va_venues = array();
            $va_venues = $t_occ->getRelatedItemsForDisplay('ca_entities', array('restrict_to_relationship_types' => array('venue')));
            if (sizeof($va_venues) > 0) {
                $va_venue_name = array();
                foreach ($va_venues as $va_venue_info) {
                    $va_venue_name[] = $va_venue_info["displayname"];
                }
                $vs_venue = implode($va_venue_name, ", ");
            }
            $va_occurrences[$va_occurrence['item_type_id']][$va_occurrence['occurrence_id']] = array("label" => $va_occurrence['label'], "date" => $t_occ->getAttributesForDisplay("date", '^display_date'), "year_published" => $t_occ->getAttributesForDisplay("bib_year_published "), "venue" => $vs_venue, "relationship_type_id" => $va_occurrence['relationship_type_id'], "bib_full_citation" => $t_occ->getAttributesForDisplay("bib_full_citation"));
        }
        $va_occ_rel_types = $t_rel_types->getRelationshipInfo('ca_objects_x_occurrences');
        foreach ($va_occurrences as $vn_occurrence_type_id => $va_occurrence_list) {
            ?>
						<div class="unit"><H3><?php 
            print $va_item_types[$vn_occurrence_type_id]['name_singular'] . (sizeof($va_occurrence_list) > 1 ? "s" : "");
            ?>
開發者ID:guaykuru,項目名稱:pawtucket,代碼行數:31,代碼來源:ca_occurrences_chronology_detail_html.php


注:本文中的ca_occurrences::getRelatedItemsForDisplay方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。