Пример #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
  * @access protected
  */
 protected function processMyTransactionsData($sqlRow, $patron)
 {
     $transactions = parent::processMyTransactionsData($sqlRow, $patron);
     // We'll check renewability later in getMyTransactions
     $transactions['renewable'] = true;
     $transactions['message'] = false;
     return $transactions;
 }
Пример #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
  * @access protected
  */
 protected function processMyTransactionsData($sqlRow, $patron)
 {
     $transactions = parent::processMyTransactionsData($sqlRow, $patron);
     $renewData = $this->_isRenewable($patron['id'], $transactions['item_id']);
     $transactions['renewable'] = $renewData['renewable'];
     $transactions['message'] = $renewData['message'];
     return $transactions;
 }