本文整理汇总了PHP中CustomProperties::countAllCustomPropertiesByObjectType方法的典型用法代码示例。如果您正苦于以下问题:PHP CustomProperties::countAllCustomPropertiesByObjectType方法的具体用法?PHP CustomProperties::countAllCustomPropertiesByObjectType怎么用?PHP CustomProperties::countAllCustomPropertiesByObjectType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CustomProperties
的用法示例。
在下文中一共展示了CustomProperties::countAllCustomPropertiesByObjectType方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: render_object_comments_for_print
<?php
if ($task->hasComments() != '') {
?>
<br/>
<?php
echo render_object_comments_for_print($task, $task->getViewUrl());
}
// if
?>
<br/>
<?php
$has_custom_properties = CustomProperties::countAllCustomPropertiesByObjectType($task->getObjectTypeId()) > 0;
if ($has_custom_properties) {
?>
<p><b><?php
echo lang('custom properties');
?>
:</b></p>
<div style="margin-left:14px;padding:6px;border:1px solid #AAA">
<?php
echo str_replace(lang('custom properties'), "", render_custom_properties($task));
?>
</div>
<?php
}
?>
示例2: typeof
$form_url = $task->getEditListUrl();
}
if (!isset($additional_onsubmit)) {
$additional_onsubmit = "";
}
// on submit functions
if (array_var($_REQUEST, 'modal')) {
$on_submit = "og.setDescription(); og.submit_modal_form('" . $genid . "submit-edit-form', og.redrawTemplateObjectsLists); return false;";
} else {
$on_submit = "return App.modules.addTaskForm.checkSubmitAddTask('" . $genid . "','" . $task->manager()->getObjectTypeId() . "') && og.setDescription()" . ($additional_onsubmit != "" ? " && {$additional_onsubmit}" : "") . (array_var($task_data, 'multi_assignment') && Plugins::instance()->isActivePlugin('crpm') ? "&& typeof('og.TaskMultiAssignment')=='function' ? og.TaskMultiAssignment() : true" : "") . ";";
}
$co_type = array_var($task_data, 'object_subtype');
if (config_option('use tasks dependencies')) {
require_javascript('og/tasks/task_dependencies.js');
}
$has_custom_properties = CustomProperties::countAllCustomPropertiesByObjectType(ProjectTasks::instance()->getObjectTypeId()) > 0;
$categories = array();
Hook::fire('object_edit_categories', $task, $categories);
$loc = user_config_option('localization');
if (strlen($loc) > 2) {
$loc = substr($loc, 0, 2);
}
$projectTask = new ProjectTask();
?>
<script>
og.genid = '<?php
echo $genid;
?>
';
og.config.multi_assignment = '<?php
echo config_option('multi_assignment') && Plugins::instance()->isActivePlugin('crpm') ? '1' : '0';