oont-contents/plugins/woo-discount-rules/v2/App/Controllers/Admin/Tabs/Base.php
2025-02-08 15:10:23 +01:00

42 lines
No EOL
764 B
PHP

<?php
namespace Wdr\App\Controllers\Admin\Tabs;
use Wdr\App\Controllers\Base as BaseController;
if (!defined('ABSPATH')) exit;
abstract class Base extends BaseController
{
public $title = NULL, $priority, $input, $base;
protected $tab;
/**
* Base constructor.
*/
function __construct()
{
parent::__construct();
}
/**
* ajax call
*/
public function ajax() {
$method = isset( $_REQUEST['method'] ) ? $_REQUEST['method'] : '';
$method = "ajax_{$method}";
if ( method_exists( $this, $method ) ) {
$this->$method();
}
}
/**
* render templates
* @param null $page
* @return mixed
*/
abstract function render($page = NULL);
}