public function loadTransaction($id)
    {
        $transaction = CActiveRecord::model($this->transactionClass)->findByPk($id);
        if ($transaction === null) {
            throw new CException(sprintf('Failed to load payment transaction #%d.', $id));
        }
        return $transaction;
    }
public function loadTransaction($id)
    {
        $transaction = CActiveRecord::model($this->transactionClass)->findByPk($id);
        if ($transaction === null) {
            throw new CException(sprintf('Failed to load payment transaction #%d.', $id));
        }
        return $transaction;
    }
public function loadTransaction ( $ id ) { $ transaction = CActiveRecord :: model ( $ this -> transactionClass ) -> findByPk ( $ id ) ; if ( $ transaction === null ) { throw new CException ( sprintf ( 'Failed to load payment transaction #%d.' , $ id ) ) ; } return $ transaction ; }
Loads a payment transaction model.
@param int $id
@return PaymentTransaction
@throws CException
Loads a payment transaction model .