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


PHP Accounts::getAccountIDs方法代码示例

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


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

示例1: cancelSessions

 public function cancelSessions()
 {
     unset($_SESSION['accountID']);
     unset($_SESSION['toID']);
     $accounts = new Accounts();
     $accounts->userID = $_SESSION['userID'];
     $accountIDs = $accounts->getAccountIDs();
     foreach ($accountIDs as $aID) {
         unset($_SESSION['transferSelectedAccount' . $aID]);
     }
     $accountPayees = new AccountPayees();
     $accountPayees->userID = $_SESSION['userID'];
     $toIDs = $accountPayees->getToIDs();
     foreach ($toIDs as $tID) {
         unset($_SESSION['transferSelectedAccountPayee' . $tID]);
     }
     if (isset($_SESSION['transferAmount'])) {
         unset($_SESSION['transferAmount']);
     }
     if (isset($_SESSION['transferDescription'])) {
         unset($_SESSION['transferDescription']);
     }
     if (isset($_SESSION['transferRemitter'])) {
         unset($_SESSION['transferRemitter']);
     }
     if (isset($_SESSION['transferDate'])) {
         unset($_SESSION['transferDate']);
     }
 }
开发者ID:s3444261,项目名称:assignment2,代码行数:29,代码来源:Transfer.php

示例2: setAccountSelected

 public function setAccountSelected($accountID)
 {
     $accounts = new Accounts();
     $accountIDs = $accounts->getAccountIDs();
     foreach ($accountIDs as $aID) {
         unset($_SESSION['paySelectedAccount' . $aID]);
     }
     $_SESSION['paySelectedAccount' . $accountID] = 'selected="selected"';
 }
开发者ID:s3444261,项目名称:assignment2,代码行数:9,代码来源:Paymentamt.php

示例3: setAccountSelected

 public function setAccountSelected($accountID)
 {
     $accounts = new Accounts();
     $accounts->userID = $_SESSION['userID'];
     $accountIDs = $accounts->getAccountIDs();
     foreach ($accountIDs as $aID) {
         unset($_SESSION['transferSelectedAccount' . $aID]);
     }
     $_SESSION['transferSelectedAccount' . $accountID] = 'selected="selected"';
 }
开发者ID:s3444261,项目名称:assignment2,代码行数:10,代码来源:CheckTransfer.php

示例4: cancelSessions

 public function cancelSessions()
 {
     unset($_SESSION['payAccountID']);
     unset($_SESSION['payBillerID']);
     unset($_SESSION['payBillerCode']);
     unset($_SESSION['payBillerName']);
     unset($_SESSION['payBillerNickname']);
     unset($_SESSION['payCustomerRef']);
     $accounts = new Accounts();
     $accounts->userID = $_SESSION['userID'];
     $accountIDs = $accounts->getAccountIDs();
     foreach ($accountIDs as $aID) {
         unset($_SESSION['paySelectedAccount' . $aID]);
     }
     $billers = new Billers();
     $billers->userID = $_SESSION['userID'];
     $billerIDs = $billers->getBillerIDs();
     foreach ($billerIDs as $bID) {
         unset($_SESSION['paySelectedBiller' . $bID]);
     }
     if (isset($_SESSION['payAmount'])) {
         unset($_SESSION['payAmount']);
     }
     if (isset($_SESSION['payDate'])) {
         unset($_SESSION['payDate']);
     }
     if (isset($_SESSION['payAccount'])) {
         unset($_SESSION['payAccount']);
     }
     if (isset($_SESSION['payStatus'])) {
         unset($_SESSION['payStatus']);
     }
     if (isset($_SESSION['payConf'])) {
         unset($_SESSION['payConf']);
     }
     if (isset($_SESSION['payCreated'])) {
         unset($_SESSION['payCreated']);
     }
 }
开发者ID:s3444261,项目名称:assignment2,代码行数:39,代码来源:Payment.php


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