Initial commit
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace FluentMail\App\Models;
|
||||
|
||||
class Model
|
||||
{
|
||||
protected $db = null;
|
||||
protected $app = null;
|
||||
|
||||
protected $table = null;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->app = fluentMail();
|
||||
$this->db = $GLOBALS['wpdb'];
|
||||
}
|
||||
|
||||
public function getTable()
|
||||
{
|
||||
return $this->table;
|
||||
}
|
||||
|
||||
public function __call($method, $params)
|
||||
{
|
||||
return call_user_func_array([$this->db, $method], $params);
|
||||
}
|
||||
|
||||
public function getDb()
|
||||
{
|
||||
return fluentMailDb();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user