本文整理汇总了PHP中CustomProperties::countHiddenCustomPropertiesByObjectType方法的典型用法代码示例。如果您正苦于以下问题:PHP CustomProperties::countHiddenCustomPropertiesByObjectType方法的具体用法?PHP CustomProperties::countHiddenCustomPropertiesByObjectType怎么用?PHP CustomProperties::countHiddenCustomPropertiesByObjectType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CustomProperties
的用法示例。
在下文中一共展示了CustomProperties::countHiddenCustomPropertiesByObjectType方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: label_tag
<div>
<?php
echo label_tag(lang('display name'), 'profileFormDisplayName');
?>
<?php
echo text_field('user[display_name]', array_var($user_data, 'display_name'), array('id' => 'profileFormDisplayName', 'tabindex' => '1000', 'class' => 'title'));
?>
</div>
<?php
$categories = array();
Hook::fire('object_edit_categories', $object, $categories);
?>
<?php
$cps = CustomProperties::countHiddenCustomPropertiesByObjectType('Users');
?>
<div style="padding-top:5px">
<?php
if (logged_user()->isAdministrator()) {
?>
<a href="#" class="option" tabindex=1010 onclick="og.toggleAndBolden('<?php
echo $genid;
?>
update_profile_administrator_options',this)"><?php
echo lang('administrator options');
?>
</a> -
<?php
}
示例2: label_tag
</script>
<!-- user type -->
<div>
<?php
echo label_tag(lang('user type'), null, true);
$permission_groups=array();
foreach($groups as $group){
$permission_groups[] = array($group->getId(), lang($group->getName()));
}
echo simple_select_box('user[type]', $permission_groups, null, array('onchange' => "og.addUserTypeChange('$genid', this.value)", 'tabindex' => "300"));
?>
</div>
<?php $categories = array(); Hook::fire('object_add_categories', $object, $categories); ?>
<?php $cps = CustomProperties::countHiddenCustomPropertiesByObjectType(Contacts::getObjectTypeId()); ?>
<div style="padding-top:5px">
<a href="#" class="option" onclick="og.toggleAndBolden('<?php echo $genid ?>add_user_advanced', this)"><?php echo lang('advanced') ?></a> -
<a href="#" class="option" onclick="og.toggleAndBolden('<?php echo $genid ?>add_user_permissions', this)"><?php echo lang('permissions') ?></a>
<?php if ($cps > 0) { ?>
- <a href="#" class="option <?php echo $visible_cps>0 ? 'bold' : ''?>" onclick="og.toggleAndBolden('<?php echo $genid ?>add_custom_properties_div',this)"><?php echo lang('custom properties') ?></a>
<?php } ?>
<?php foreach ($categories as $category) { ?>
- <a href="#" class="option" onclick="og.toggleAndBolden('<?php echo $genid . $category['name'] ?>', this)"><?php echo lang($category['name'])?></a>
<?php } ?>
</div>
</div>
<div class="adminSeparator"></div>
<div class="adminMainBlock">