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


PHP Accounts::getNext方法代码示例

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


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

示例1: endPrettyTable

 endPrettyTable();
 # Payments
 beginPrettyTable("4", "Payments");
 printRow(array("Code Number", "Description", "Amount"));
 while ($paymentsAccounts->getNext()) {
     if ($paymentsAccounts->getActualBalance() == "") {
         continue;
     }
     printRow(array($paymentsAccounts->getActualCodeString(), $paymentsAccounts->getActualCodeName(), $paymentsAccounts->getActualBalance()), "abwechselnd");
 }
 printRow(array("", "Total", $paymentsAccounts->getSum()));
 endPrettyTable();
 # Receipts
 beginPrettyTable("4", "Receipts");
 printRow(array("Code Number", "Description", "Amount"));
 while ($receiptsAccounts->getNext()) {
     if ($receiptsAccounts->getActualBalance() == "") {
         continue;
     }
     printRow(array($receiptsAccounts->getActualCodeString(), $receiptsAccounts->getActualCodeName(), $receiptsAccounts->getActualBalance()), "abwechselnd");
 }
 printRow(array("", "Total", $receiptsAccounts->getSum()));
 endPrettyTable();
 # Closing Balance
 beginPrettyTable("4", "Closing Balance");
 printRow(array("Code Number", "Description", "Amount"));
 while ($closingAccounts->getNext()) {
     printRow(array($closingAccounts->getActualCodeString(), $closingAccounts->getActualCodeName(), $closingAccounts->getActualBalance()), "abwechselnd");
 }
 printRow(array("", "Total", $closingAccounts->getSum()));
 endPrettyTable();
开发者ID:k9ert,项目名称:ac4ngos,代码行数:31,代码来源:list_project_balances.php


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