本文整理汇总了PHP中CustomProperties::countVisibleCustomPropertiesByObjectType方法的典型用法代码示例。如果您正苦于以下问题:PHP CustomProperties::countVisibleCustomPropertiesByObjectType方法的具体用法?PHP CustomProperties::countVisibleCustomPropertiesByObjectType怎么用?PHP CustomProperties::countVisibleCustomPropertiesByObjectType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CustomProperties
的用法示例。
在下文中一共展示了CustomProperties::countVisibleCustomPropertiesByObjectType方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: require_javascript
<?php
require_javascript('og/modules/addMessageForm.js');
$genid = gen_id();
$object = $company;
if ($company->isNew()) {
$form_action = get_url('contact', 'add_company');
} else {
$form_action = $company->getEditUrl();
}
$renderContext = has_context_to_render($company->manager()->getObjectTypeId());
$visible_cps = CustomProperties::countVisibleCustomPropertiesByObjectType($object->getObjectTypeId());
?>
<form onsubmit="return og.handleMemberChooserSubmit('<?php
echo $genid;
?>
', <?php
echo $company->manager()->getObjectTypeId();
?>
);"style="height:100%;background-color:white" class="internalForm" action="<?php
echo $form_action;
?>
" method="post">
<div class="adminAddCompany">
<div class="adminHeader">
<div class="adminHeaderUpperRow">
<div class="adminTitle"><table style="width:535px"><tr><td>
<?php
echo $company->isNew() ? lang('new company') : lang('edit company');