本文整理匯總了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';