Making WordPress.org


Ignore:
Timestamp:
01/08/2016 08:42:19 PM (9 years ago)
Author:
iandunn
Message:

WordCamp Budgets Dashboard: Reorganize to make room for additional modules.

Soon we'll be adding modules for Budgets and Sponsor Invoices, in addition to the existing one for Payment Requests.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes/payment-requests-list-table.php

    r2255 r2260  
    11<?php
     2
    23/**
    34 * This list table class handles the output of data
     
    78 * Note: Uses switch_to_blog() excessively.
    89 */
    9 class WordCamp_Payments_Network_List_Table extends WP_List_Table {
     10class Payment_Requests_List_Table extends WP_List_Table {
    1011
    1112    /**
     
    6566        global $wpdb;
    6667
    67         $sql = sprintf( "SELECT SQL_CALC_FOUND_ROWS blog_id, post_id FROM `%s` WHERE 1=1 ", WordCamp_Payments_Network_Tools::get_table_name() );
    68         $view = WordCamp_Payments_Network_Tools::get_current_tab();
     68        $sql = sprintf( "SELECT SQL_CALC_FOUND_ROWS blog_id, post_id FROM `%s` WHERE 1=1 ", Payment_Requests_Dashboard::get_table_name() );
     69        $view = Payment_Requests_Dashboard::get_current_tab();
    6970        $where = '';
    7071        $orderby = '';
     
    179180
    180181            if ( $currency != 'USD' ) {
    181                 $usd_amount = WordCamp_Payments_Network_Tools::convert_currency( $currency, 'usd', $amount );
     182                $usd_amount = Payment_Requests_Dashboard::convert_currency( $currency, 'usd', $amount );
    182183                if ( $usd_amount )
    183184                    $output .= sprintf( '<br />~&nbsp;%s&nbsp;USD', esc_html( number_format( $usd_amount, 2 ) ) );
Note: See TracChangeset for help on using the changeset viewer.