Esempio n. 1
0
 /**
  * Protected support method for getMyTransactions.
  *
  * @param array $sqlRow An array of keyed data
  * @param array $patron An array of keyed patron data
  *
  * @return array Keyed data for display by template files
  */
 protected function processMyTransactionsData($sqlRow, $patron = false)
 {
     $transactions = parent::processMyTransactionsData($sqlRow, $patron);
     // We'll verify renewability later in getMyTransactions
     $transactions['renewable'] = true;
     return $transactions;
 }
Esempio n. 2
0
 /**
  * Protected support method for getMyTransactions.
  *
  * @param array $sqlRow An array of keyed data
  * @param array $patron An array of keyed patron data
  *
  * @return array Keyed data for display by template files
  */
 protected function processMyTransactionsData($sqlRow, $patron = false)
 {
     $transactions = parent::processMyTransactionsData($sqlRow, $patron);
     // Do we need to check renewals up front?  If so, do the check; otherwise,
     // set up fake "success" data to move us forward.
     $renewData = $this->checkRenewalsUpFront ? $this->isRenewable($patron['id'], $transactions['item_id']) : array('message' => false, 'renewable' => true);
     $transactions['renewable'] = $renewData['renewable'];
     $transactions['message'] = $renewData['message'];
     return $transactions;
 }