PluginProbe
FluentSMTP – WP Mail SMTP Plugin with Amazon SES, SendGrid, Mailgun, Postmark, Cloudflare, toSend, Gmail and Any SMTP / trunk
FluentSMTP – WP Mail SMTP Plugin with Amazon SES, SendGrid, Mailgun, Postmark, Cloudflare, toSend, Gmail and Any SMTP vtrunk
2.4.0 trunk 1.0.1 1.1.0 1.1.1 1.2.0 2.0.0 2.0.1 2.0.2 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.71 2.2.72 2.2.73 2.2.80 2.2.81 All 32 releases
fluent-smtp / app / Models / Model.php

Model.php in FluentSMTP – WP Mail SMTP Plugin with Amazon SES, SendGrid, Mailgun, Postmark, Cloudflare, toSend, Gmail and Any SMTP trunk, at app/Models/Model.php

33 lines 533 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace FluentMail\App\Models;
4
5 class Model
6 {
7 protected $db = null;
8 protected $app = null;
9
10 protected $table = null;
11
12 public function __construct()
13 {
14 $this->app = fluentMail();
15 $this->db = $GLOBALS['wpdb'];
16 }
17
18 public function getTable()
19 {
20 return $this->table;
21 }
22
23 public function __call($method, $params)
24 {
25 return call_user_func_array([$this->db, $method], $params);
26 }
27
28 public function getDb()
29 {
30 return fluentMailDb();
31 }
32 }
33