本文整理汇总了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 -->