\apex\transaction\controller\transactionwithdraw

Withdraw transaction controller.

Summary

Methods
Properties
Constants
get_amount()
get_name()
approved()
declined()
pending()
refunded()
$name
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$name

$name :

Type

Methods

get_amount()

get_amount(  $tx)

Get transaction amount

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

$tx

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.

approved()

approved()

Executes when a transaction is either aded as 'approved', or the status has changed to 'approved'.

declined()

declined()

Executes when a transaction is either aded as 'declined', or the status has changed to 'declined'.

pending()

pending(object  $trans)

Executes when a transaction is either aded as 'pending', or the status has changed to 'pending'.

Parameters

object $trans

The transaction object.

refunded()

refunded()

Executes when a transaction is either aded as 'refunded', or the status has changed to 'refunded'.