Your IP : 216.73.217.176


Current Path : /home/bechata/mp/wp-content/uploads/2022/ejn73c/
Upload File :
Current File : /home/bechata/mp/wp-content/uploads/2022/ejn73c/ModelAbstract.php.tar

home/bechata/mp/wp-content/plugins/wp-githuber-md/src/Models/ModelAbstract.php000066600000001016151765411300023365 0ustar00<?php

/**
 * Class ModelAbstract
 * 
 * Models are specifically used for dealing with the data exchange between controller and database.
 *
 * @author Terry Lin
 * @link https://terryl.in/
 *
 * @package Githuber
 * @since 1.0.0
 * @version 1.0.0
 */

namespace Githuber\Model;

abstract class ModelAbstract {

	/**
	 * WP DB instance.
	 *
	 * @var object
	 */
	public $db;

	/**
	 * Constructer.
	 * 
	 * @return void
	 */
	public function __construct() {

		// Get WP DB object.
		global $wpdb;

		$this->db = &$wpdb;
	}
}