\apex\transaction\controllertransaction

Transaction controller.

Summary

Methods
Constants
get_amount()
get_name()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

get_amount()

get_amount(mixed  $trans)

Get / modify the amount of the transaction.

Get the amount of the transaction. Can be used to either, retrieve amount from the database, add / subtract fees, change the inputted amount as needed, etc. To change the amount, just modify the parent::$amount variable directly.

Parameters

mixed $trans

The 'transaction' object of the transaction.

get_name()

get_name(array  $row): string

Gets the full name of the transaction to display within the table listing transactions.

Parameters

array $row

The row from the 'transaction' table.

Returns

string —

The name to display in the web browser.