当前位置: 首页>>代码示例>>PHP>>正文


PHP ca_occurrences::getWithTemplate方法代码示例

本文整理汇总了PHP中ca_occurrences::getWithTemplate方法的典型用法代码示例。如果您正苦于以下问题:PHP ca_occurrences::getWithTemplate方法的具体用法?PHP ca_occurrences::getWithTemplate怎么用?PHP ca_occurrences::getWithTemplate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ca_occurrences的用法示例。


在下文中一共展示了ca_occurrences::getWithTemplate方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

        print "<br/>";
    }
}
$va_occurrences = $t_item->get("ca_occurrences", array("returnAsArray" => true, "checkAccess" => $va_access_values));
if (sizeof($va_occurrences)) {
    print "<H6>Related event" . (sizeof($va_occurrences) > 1 ? "s" : "") . "</H6>";
    $t_rel_occurrence = new ca_occurrences();
    foreach ($va_occurrences as $va_occurrence) {
        $t_rel_occurrence->load($va_occurrence["occurrence_id"]);
        $t_object_thumb->load($t_rel_occurrence->get("ca_objects.object_id", array("restrictToRelationshipTypes" => array("cover"), "checkAccess" => $va_access_values)));
        $vs_thumb = $t_object_thumb->get("ca_object_representations.media.icon", array("checkAccess" => $va_access_values));
        if ($vs_thumb) {
            print "<div class='row'><div class='col-sm-3 col-md-3 col-lg-3'>" . $vs_thumb . "</div>\n";
            print "<div class='col-sm-9 col-md-9 col-lg-9'>\n";
        }
        print $t_rel_occurrence->getWithTemplate("<b><l>^ca_occurrences.preferred_labels.name</l></b>");
        if ($vs_brief_description = $t_rel_occurrence->get("ca_occurrences.brief_description")) {
            print "<br/>" . $vs_brief_description;
        }
        if ($vs_thumb) {
            print "</div></div><!-- end row -->";
        } else {
            print "<br/>";
        }
        print "<br/>";
    }
}
?>
				</div><!-- end col -->
			</div><!-- end row -->
		</div><!-- end container -->
开发者ID:ffarago,项目名称:pawtucket2,代码行数:31,代码来源:ca_places_default_html.php


注:本文中的ca_occurrences::getWithTemplate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。