| 1 |
<?php |
| 2 |
|
| 3 |
namespace Better_Payment\Lite; |
| 4 |
|
| 5 |
use Better_Payment\Lite\Admin\DB; |
| 6 |
|
| 7 |
/** |
| 8 |
* Exit if accessed directly |
| 9 |
*/ |
| 10 |
if (!defined('ABSPATH')) { |
| 11 |
exit; |
| 12 |
} |
| 13 |
|
| 14 |
/** |
| 15 |
* Database Handler class |
| 16 |
* All DB related classes must extend this class |
| 17 |
* |
| 18 |
* @since 0.0.1 |
| 19 |
*/ |
| 20 |
|
| 21 |
class Model { |
| 22 |
|
| 23 |
/** |
| 24 |
* Plugin database table name |
| 25 |
* |
| 26 |
* @since 0.0.1 |
| 27 |
*/ |
| 28 |
public $table_name = ''; |
| 29 |
|
| 30 |
/** |
| 31 |
* Initialize the class |
| 32 |
* |
| 33 |
* @since 0.0.1 |
| 34 |
*/ |
| 35 |
public function __construct() |
| 36 |
{ |
| 37 |
$this->table_name = DB::get_table_name(); |
| 38 |
} |
| 39 |
} |
| 40 |
|