本文整理汇总了PHP中Contacts::getUserDisplayName方法的典型用法代码示例。如果您正苦于以下问题:PHP Contacts::getUserDisplayName方法的具体用法?PHP Contacts::getUserDisplayName怎么用?PHP Contacts::getUserDisplayName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Contacts
的用法示例。
在下文中一共展示了Contacts::getUserDisplayName方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: clean
</td>
<td style="padding:4px; width:250px;<?php
echo $isAlt ? 'background-color:#F2F2F2' : '';
?>
"><?php
echo clean($ts->getDescription());
?>
</td>
<?php
if ($showUserCol) {
?>
<td style="padding:4px;<?php
echo $isAlt ? 'background-color:#F2F2F2' : '';
?>
"><?php
echo clean(Contacts::getUserDisplayName($ts->getContactId()));
?>
</td><?php
}
?>
<?php
$lastStop = $ts->getEndTime() != null ? $ts->getEndTime() : ($ts->isPaused() ? $ts->getPausedOn() : DateTimeValueLib::now());
?>
<td style="padding:4px;text-align:right;<?php
echo $isAlt ? 'background-color:#F2F2F2' : '';
?>
"><?php
echo DateTimeValue::FormatTimeDiff($ts->getStartTime(), $lastStop, "hm", 60, $ts->getSubtract());
?>
</td>
<?php
示例2: lang
?><th style="padding:4px;border-bottom:1px solid #666666"><?php echo lang("field ProjectTasks ".$i) ?></th><?php
}
else {
$cp = CustomProperties::getCustomProperty($i);
?><th style="padding:4px;border-bottom:1px solid #666666"><?php echo ($cp->getName()) ?></th><?php
}
}
}//if
} ?></tr><?php
//Print row info
?>
<tr>
<td style="padding:4px;<?php echo $isAlt? 'background-color:#F2F2F2':'' ?>"><?php echo format_datetime($ts->getStartTime(), $date_format)?></td>
<td style="padding:4px; width:250px;<?php echo $isAlt? 'background-color:#F2F2F2':'' ?>"><?php echo clean($ts->getDescription()) ?></td>
<?php if ($showUserCol) { ?><td style="padding:4px;<?php echo $isAlt? 'background-color:#F2F2F2':'' ?>"><?php echo clean(Contacts::getUserDisplayName($ts->getContactId())) ?></td><?php } ?>
<?php $lastStop = $ts->getEndTime() != null ? $ts->getEndTime() : ($ts->isPaused() ? $ts->getPausedOn() : DateTimeValueLib::now()); ?>
<td style="padding:4px;text-align:right;<?php echo $isAlt? 'background-color:#F2F2F2':'' ?>"><?php echo DateTimeValue::FormatTimeDiff($ts->getStartTime(), $lastStop, "hm", 60, $ts->getSubtract()) ?></td>
<?php if ($showBillingCol) { ?><td style="padding:4px;text-align:right;<?php echo $isAlt? 'background-color:#F2F2F2':'' ?>"><?php echo config_option('currency_code', '$') ?> <?php echo $ts->getFixedBilling() ?></td><?php } ?>
<?php if ($showSelCol) {
$cols = get_cols($columns);
foreach ($cols as $k => $i){
if ($ts->getObjectManager() == 'ProjectTasks'){
$task = $ts->getObject();
if (!is_numeric($i)){ //for normal properties
//currently disabled as at the moment the only columns that can be added are custom properties
$value = format_value_to_print_task($task->getColumnValue($i),$task->getColumnType($i));
?><td style="padding:4px;max-width:250px;<?php echo $isAlt? 'background-color:#F2F2F2':'' ?>"><?php echo ($value) ?></td><?php
}
else {//for custom properties