templates
2 years ago
SendinblueAccount.php
5 years ago
SendinblueApiClient.php
1 year ago
function.wp_mail.php
8 years ago
index.php
8 years ago
mailin.php
3 years ago
sendinblue.php
3 years ago
sib-api-manager.php
2 years ago
sib-form-preview.php
2 years ago
sib-sms-code.php
3 years ago
table-forms.php
1 year ago
SendinblueAccount.php
62 lines
| 1 | <?php |
| 2 | |
| 3 | class SendinblueAccount |
| 4 | { |
| 5 | private static $sendinblueAccountObj = null; |
| 6 | private $sendinblueAccountData; |
| 7 | private $lastResponseCode; |
| 8 | |
| 9 | /** |
| 10 | * SendinblueAccount private constructor. |
| 11 | */ |
| 12 | private function __construct() |
| 13 | { |
| 14 | |
| 15 | } |
| 16 | |
| 17 | /** |
| 18 | * Getter function for account data |
| 19 | */ |
| 20 | public function getSendinblueAccountData() |
| 21 | { |
| 22 | return $this->sendinblueAccountData; |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Setter function for account data |
| 27 | */ |
| 28 | public function setSendinblueAccountData($sendinblueAccountData) |
| 29 | { |
| 30 | $this->sendinblueAccountData = $sendinblueAccountData; |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * Getter function for last response code |
| 35 | */ |
| 36 | public function getLastResponseCode() |
| 37 | { |
| 38 | return $this->lastResponseCode; |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * Setter function for last response code |
| 43 | */ |
| 44 | public function setLastResponseCode($lastResponseCode) |
| 45 | { |
| 46 | $this->lastResponseCode = $lastResponseCode; |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Static function to create a new instance or return an existing instance. |
| 51 | */ |
| 52 | public static function getInstance() |
| 53 | { |
| 54 | if( null == self::$sendinblueAccountObj ) |
| 55 | { |
| 56 | self::$sendinblueAccountObj = new SendinblueAccount(); |
| 57 | } |
| 58 | |
| 59 | return self::$sendinblueAccountObj; |
| 60 | } |
| 61 | } |
| 62 |