当前位置: 首页>>代码示例>>PHP>>正文


PHP task::getRate方法代码示例

本文整理汇总了PHP中task::getRate方法的典型用法代码示例。如果您正苦于以下问题:PHP task::getRate方法的具体用法?PHP task::getRate怎么用?PHP task::getRate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在task的用法示例。


在下文中一共展示了task::getRate方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

 echo "<td class=list_private colspan=" . $colspan . " align=right><b>" . $lang['common_private_jobs'] . " - " . $lang['common_summaryTime'] . " : </b></td>\n";
 echo "<td class=list_private align=right><b>" . $toolInst->formatTime($taskInst->getSummary(true)) . "</b></td>\n";
 echo "</tr>\n";
 if ($projectInst->rate || $userInst->rate) {
     if ($loginInst->hasAccess("task.getSummary")) {
         echo "<tr>\n";
         echo "<td class=list colspan=" . $colspan . " align=right><b>" . $lang['common_roundedSummaryTime'] . " : </b></td>\n";
         echo "<td class=list align=right><b>" . $toolInst->formatTime($toolInst->deductibleSeconds($taskInst->getSummary())) . "</b></td>\n";
         echo "</tr>\n";
     }
     if ($loginInst->hasAccess("task.getCosts")) {
         echo "<tr>\n";
         if ($taskInst->fixedPrice > "0") {
             echo "<td class=list colspan=" . $colspan . " align=right><b>" . $lang['common_summaryCosts'] . " </b> (" . $lang['tasks_fixedPrice'] . ") <b>:</b></td>\n";
         } else {
             echo "<td class=list colspan=" . $colspan . " align=right><b>summary costs </b> (" . $taskInst->getRate() . " " . $config['currency'] . "/" . $lang['common_hour'] . ") <b>:</b></td>\n";
         }
         echo "<td class=list align=right><b>" . $toolInst->formatCurrency($taskInst->getCosts(true)) . "</b></td>\n";
         echo "</tr>\n";
     }
     if ($loginInst->hasAccess("task.getCustomerCosts")) {
         echo "<tr>\n";
         if ($taskInst->fixedPrice > "0") {
             echo "<td class=list colspan=" . $colspan . " align=right><b>" . $lang['common_customerCosts'] . "</b> (" . $lang['tasks_fixedPrice'] . ") <b>:</b></td>\n";
         } else {
             echo "<td class=list colspan=" . $colspan . " align=right><b>" . $lang['common_customerCosts'] . "</b> (" . $lang['common_withoutBugsAndTodos'] . ") <b>:</b></td>\n";
         }
         echo "<td class=list align=right><b>" . $toolInst->formatCurrency($taskInst->getCustomerCosts()) . "</b></td>\n";
         echo "</tr>\n";
     }
 }
开发者ID:pmtool,项目名称:pmtool,代码行数:31,代码来源:taskdetails.php

示例2: next

         $reportInst->append("    </job>");
         $stylePrivate = $jobInst->isFlag(JOB_FLAG_PRIVATE) ? "_private" : "";
         echo "<tr>";
         echo "<td class=list{$stylePrivate}>" . $jobInst->comment . "</td>";
         echo "<td class=list{$stylePrivate}><nobr>" . $toolInst->getTime("", $jobInst->start) . "</nobr></td>";
         echo "<td class=list{$stylePrivate}><nobr>" . $toolInst->getTime("", $jobInst->stop) . "</nobr></td>";
         echo "<td class=list{$stylePrivate} align=right>" . $toolInst->formatTime($jobInst->getSummary()) . "</td>";
         echo "</tr>";
         next($jobList);
     }
 }
 // calculate task summary
 if ($taskInst->isfixedPrice()) {
     $taskCosts = $taskInst->fixedPrice;
 } else {
     $taskCosts = $toolInst->deductibleSeconds($taskSum) / 3600 * $taskInst->getRate();
 }
 // calculate customer part
 $customerTaskCosts = 0;
 $customerTaskSummary = 0;
 $customerTaskSummaryRounded = 0;
 if ($taskInst->hasToPay()) {
     $customerTaskCosts = $taskCosts;
     $customerTaskSummary = $taskSum;
     $customerTaskSummaryRounded = $toolInst->deductibleSeconds($taskSum);
 }
 // determine summaries for completed jobs (not only the shown jobs)
 $completeTaskSummary = $taskInst->getSummary();
 $completeTaskCustomerSummary = $taskInst->getCustomerSummary();
 // add summaries to overall summaries
 $costs += $taskCosts;
开发者ID:pmtool,项目名称:pmtool,代码行数:31,代码来源:reports.php


注:本文中的task::getRate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。