\apex\transactiondashboard

Class that handles the dashboard items / widegets for the transaction package.

Summary

Methods
Properties
Constants
admin_top_total_revenue()
members_top_total_revenue()
members_top_revenue_month()
members_top_revenue_30days()
members_top_revenuve_day()
admin_right_transaction_summary()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

admin_top_total_revenue()

admin_top_total_revenue() : string

Total Revenue

Returns

string —

The total revenue generated by the operation.

members_top_total_revenue()

members_top_total_revenue() : string

Users total revenue.

Returns

string —

Total revenue earned by the user.

members_top_revenue_month()

members_top_revenue_month() : string

User's revenut this month.

Returns

string —

The revenue user earned this month.

members_top_revenue_30days()

members_top_revenue_30days() : string

Revenue user eanred in 30 days

Returns

string —

The revenue earned by the user in past 30 days.

members_top_revenuve_day()

members_top_revenuve_day() : string

User's revenue for the past week.

Returns

string —

Revenue earned by the logged in user over the past week. / public function members_top_revenuve_week() {

// Get amount $amount = db::get_field("SELECT sum(a mount) FROM transaction WHERE userid = %i AND amount > 0 AND status = 'approved' AND date_added >= date_sub(now(), interval 1 week)", app::get_userid()); if ($amount == '') { $amount = 0;

// Return return fmoney((float) $amount);

}

user revenue earned today.

admin_right_transaction_summary()

admin_right_transaction_summary() 

Right sidebar, admin, transaction summary