function PaymentEntityController::load in Payment 7
Overridden.
In contrast to the parent implementation we factor out query execution, so fetching can be further customized easily.
Overrides EntityAPIController::load
See also
DrupalDefaultEntityController#load($ids, $conditions)
File
- ./
payment.classes.inc, line 322 - The API and related functions for executing and managing payments.
Class
- PaymentEntityController
- Entity API controller for payment entities.
Code
function load($ids = array(), $conditions = array()) {
$entities = parent::load($ids, $conditions);
foreach ($entities as $payment) {
// Cast non-string scalars to their original types, because some backends
// store/return all variables as strings.
$payment->pid = (int) $payment->pid;
$payment->uid = (int) $payment->uid;
}
return $entities;
}