Plugin Directory

Changeset 2041259


Ignore:
Timestamp:
02/28/2019 09:15:37 AM (7 years ago)
Author:
alloykenya
Message:

Version 2.1

Location:
pesapress/trunk
Files:
2 added
7 edited

Legend:

Unmodified
Added
Removed
  • pesapress/trunk/app/controller/admin/class-pp-controller-admin-dashboard.php

    r1873265 r2041259  
    4949        $view = new PP_Views_Admin_Dash();
    5050        $view->data = array(
    51             'list'  => PP_Model_Log::list( 8, 0, false ),
     51            'list'  => PP_Model_Log::list_by_page( 8, 0, false ),
    5252            'stats' => PP_Model_Statistics::instance()
    5353        );
  • pesapress/trunk/app/controller/admin/class-pp-controller-admin-gateways.php

    r1873265 r2041259  
    6060        $view->data = array(
    6161            'per_page'  => $per_page,
    62             'total'     => PP_Model_Gateway::count(),
    63             'list'      => PP_Model_Gateway::list( $per_page, $pagenum )
     62            'total'     => PP_Model_Gateway::count_all(),
     63            'list'      => PP_Model_Gateway::list_by_page( $per_page, $pagenum )
    6464        );
    6565        $view->render();
  • pesapress/trunk/app/controller/admin/class-pp-controller-admin-logs.php

    r1873265 r2041259  
    6161        $view->data = array(
    6262            'per_page'  => $per_page,
    63             'total'     => PP_Model_Log::count( $gateway ),
    64             'list'      => PP_Model_Log::list( $per_page, $pagenum, $gateway ),
     63            'total'     => PP_Model_Log::count_all( $gateway ),
     64            'list'      => PP_Model_Log::list_by_page( $per_page, $pagenum, $gateway ),
    6565            'gateways'  => PP_Model_Gateway::list_simple()
    6666        );
  • pesapress/trunk/app/model/class-pp-model-gateway.php

    r2036717 r2041259  
    219219     * @return int
    220220     */
    221     public static function count( $db = false ) {
     221    public static function count_all( $db = false ) {
    222222        if ( !$db ) {
    223223            global $wpdb;
     
    242242     * )
    243243     */
    244     public static function list( $per_page, $page = 0 ) {
     244    public static function list_by_page( $per_page, $page = 0 ) {
    245245        global $wpdb;
    246246        $settings   = array();
  • pesapress/trunk/app/model/class-pp-model-log.php

    r2036717 r2041259  
    462462     * @return int
    463463     */
    464     public static function count( $gateway_id = false, $db = false ) {
     464    public static function count_all( $gateway_id = false, $db = false ) {
    465465        if ( !$db ) {
    466466            global $wpdb;
     
    497497     * )
    498498     */
    499     public static function list( $per_page, $page = 0, $gateway_id = false ) {
     499    public static function list_by_page( $per_page, $page = 0, $gateway_id = false ) {
    500500        global $wpdb;
    501501        $logs       = array();
  • pesapress/trunk/pesapress.php

    r2036717 r2041259  
    44 Plugin URI:          https://alloy.co.ke/project/pesapress
    55 Description:         Integrate PesaPal to WordPress and supported integrations
    6  Version:             2.0
     6 Version:             2.1
    77 Author:              alloykenya
    88 Author URI:          https://alloy.co.ke
     
    2828         * @var string
    2929         */
    30         public $version = '2.0';
     30        public $version = '2.1';
    3131
    3232
  • pesapress/trunk/readme.txt

    r2036723 r2041259  
    44Requires at least: 4.0
    55Tested up to: 5.1
    6 Stable tag: 2.0
     6Stable tag: 2.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6666
    6767== Changelog ==
     68= 2.1 =
     69*Fixed: PHP 5.6 compatability
     70
    6871= 2.0 =
    6972* Added: Gutenberg blocks (Easily add a block in your page and configure your preferred gateway)
Note: See TracChangeset for help on using the changeset viewer.