本文整理汇总了PHP中ca_metadata_elements::getElementCount方法的典型用法代码示例。如果您正苦于以下问题:PHP ca_metadata_elements::getElementCount方法的具体用法?PHP ca_metadata_elements::getElementCount怎么用?PHP ca_metadata_elements::getElementCount使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ca_metadata_elements
的用法示例。
在下文中一共展示了ca_metadata_elements::getElementCount方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
* the terms of the provided license as published by Whirl-i-Gig
*
* CollectiveAccess is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTIES whatsoever, including any implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* This source code is free and modifiable under the terms of
* GNU General Public License. (http://www.gnu.org/copyleft/gpl.html). See
* the "license.txt" file for details, or visit the CollectiveAccess web site at
* http://www.CollectiveAccess.org
*
* ----------------------------------------------------------------------
*/
$t_item = $this->getVar('t_item');
if (!$t_item->getPrimaryKey()) {
$vn_element_count = ca_metadata_elements::getElementCount(true);
?>
<h3><?php
print _t('Metadata elements');
?>
:
<div><?php
if ($vn_element_count == 1) {
print _t("1 element is defined");
} else {
print _t("%1 elements are defined", $vn_element_count);
}
?>
</div>
</h3><?php
} else {