protected function call_mandrill($email_data) { $email_service = null; $s = null; require_once '../sources/mandrill.php'; $email_service = new mandrill($email_data); $s = $email_service->send(); return $s; }
/** * Public function that creates a single instance */ public static function getInstance() { if (!isset(self::$_instance)) { self::$_instance = new self(); } return self::$_instance; }