2022-12-30 20:54:06 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2022-12-31 01:42:49 +00:00
|
|
|
* ZGo Payment Gateway for WooCommerce Plugin
|
|
|
|
*
|
|
|
|
* This class creates the main statistics page for the plugin.
|
2022-12-30 20:54:06 +00:00
|
|
|
*
|
|
|
|
**/
|
2022-12-31 02:57:58 +00:00
|
|
|
class zpmt_stats {
|
2022-12-30 20:54:06 +00:00
|
|
|
|
2022-12-31 02:57:58 +00:00
|
|
|
private $zpmtStatsPage;
|
2022-12-30 20:54:06 +00:00
|
|
|
|
2022-12-31 02:57:58 +00:00
|
|
|
public function __construct( $zpmtStatsPage ) {
|
|
|
|
$this->zpmtStatsPage = $zpmtStatsPage;
|
2022-12-30 20:54:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public function init() {
|
|
|
|
add_action( 'admin_menu', array( $this, 'add_options_page' ) );
|
|
|
|
}
|
|
|
|
|
|
|
|
public function add_options_page() {
|
|
|
|
|
|
|
|
add_management_page(
|
|
|
|
'ZGo Payment Gateway Support',
|
|
|
|
'ZGo Payments',
|
|
|
|
'manage_options',
|
|
|
|
'zgopmtlist',
|
2022-12-31 02:57:58 +00:00
|
|
|
array( $this->zpmtStatsPage, 'render' )
|
2022-12-30 20:54:06 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|