/**
  * Constructor
  *
  * @author Ruchi Kothari
  * @return bool "true" on Success, "false" otherwise
  */
 public function __construct($_email, $_firstName, $_lastName)
 {
     parent::__construct();
     $this->SetEmail($_email);
     $this->SetFirstName($_firstName);
     $this->SetLastName($_lastName);
     return true;
 }
 /**
  * Constructor
  *
  * @author   Atul Atri
  *
  * @param SWIFT_OAuth2GrantType_Interface $_grantClassObject grant type object
  * @param string                          $_clientId         client id
  * @param string                          $_clientSecret     client secret
  * @param string                          $_redirectURL      redirect url
  * @param                                 $_reqAuthEndPoint
  * @param                                 $_authTokenEndPoint
  * @param null                            $_scope
  *
  * @throws SWIFT_Exception
  * @internal param request $string authorization end point
  * @internal param authentication $string end point
  * @internal param scop $string
  *
  */
 public function __construct($_grantClassObject, $_clientId, $_clientSecret, $_redirectURL, $_reqAuthEndPoint, $_authTokenEndPoint, $_scope = null)
 {
     $this->_grantClassObject = $_grantClassObject;
     $this->_clientId = $_clientId;
     $this->_clientSecret = $_clientSecret;
     $this->_redirectURL = $_redirectURL;
     $this->_reqAuthEndPoint = $_reqAuthEndPoint;
     $this->_authTokenEndPoint = $_authTokenEndPoint;
     $this->_scope = $_scope;
     parent::__construct();
     return true;
 }
 /**
  * Constructor
  *
  * @author Ruchi Kothari
  * @return bool "true" on Success, "false" otherwise
  */
 public function __construct()
 {
     parent::__construct();
     require_once './' . SWIFT_APPSDIRECTORY . '/' . '/mailchimp/' . SWIFT_THIRDPARTYDIRECTORY . '/MailChimp/MCAPI.class.php';
     $_apiKey = $this->Settings->Get('mc_apikey');
     if (trim($_apiKey) == "") {
         return false;
     }
     $this->MCAPI = new MCAPI($_apiKey);
     $this->SetLists();
     return true;
 }
 /**
  * Constructor
  *
  * @author Ashish Kataria
  * @return bool "true" on Success
  */
 public function __construct()
 {
     parent::__construct();
     $_SWIFT = SWIFT::GetInstance();
     $_libPath = './' . SWIFT_APPSDIRECTORY . '/samlsso/' . SWIFT_THIRDPARTYDIRECTORY . '/';
     /*
      * We need access to the various simpleSAMLphp classes. These are loaded
      * by the simpleSAMLphp autoloader.
      */
     require_once $_libPath . 'samlidp/lib/_autoload.php';
     require_once $_libPath . 'php-saml/ext/xmlseclibs/xmlseclibs.php';
     require_once $_libPath . 'php-saml/src/OneLogin/Saml/AuthRequest.php';
     require_once $_libPath . 'php-saml/src/OneLogin/Saml/Response.php';
     require_once $_libPath . 'php-saml/src/OneLogin/Saml/Settings.php';
     require_once $_libPath . 'php-saml/src/OneLogin/Saml/XmlSec.php';
     return true;
 }
 /**
  * Constructor
  *
  * @author Atul Atri
  *
  * @throws SWIFT_Exception
  */
 public function __construct()
 {
     parent::__construct();
     return true;
 }
 /**
  * The default constructor
  * Calls the Set method for initialization
  *
  * @author Abhinav Kumar <*****@*****.**>
  *
  * @param array $_data an associative array of issue parameters
  *
  * @return \SWIFT_JIRAIssueManager
  */
 public function __construct($_data)
 {
     parent::__construct();
     return $this->Set($_data);
 }
 /**
  * Constructor
  *
  * @author Ashish Kataria
  * @return bool "true" on Success, "false" otherwise
  */
 public function __construct()
 {
     parent::__construct();
     require_once './' . SWIFT_APPSDIRECTORY . '/freshbooks/' . SWIFT_THIRDPARTYDIRECTORY . '/jboesch-FreshBooksRequest-PHP-API/lib/FreshBooksRequest.php';
     return true;
 }
 /**
  * The default constructor
  * Reads & initializes the module settings from SWIFT
  * Prepares the basic JIRA authentication
  *
  * @author Abhinav Kumar <*****@*****.**>
  * @return \SWIFT_JIRABridge on success and 'FALSE' otherwise
  */
 public function __construct()
 {
     parent::__construct();
     $_SWIFT = SWIFT::GetInstance();
     if (!$_SWIFT->Settings->Get('bj_isenabled')) {
         return false;
     }
     $this->_url = $_SWIFT->Settings->Get('bj_jiraurl');
     $this->_userName = $_SWIFT->Settings->Get('bj_username');
     $this->_password = $_SWIFT->Settings->Get('bj_password');
     $this->_connectionTimeout = $_SWIFT->Settings->Get('bj_timeout') ? $_SWIFT->Settings->Get('bj_timeout') : 1;
     $this->_projectKey = strtoupper($_SWIFT->Settings->Get('bj_defaultProject'));
     $this->_authToken = base64_encode($this->_userName . ':' . $this->_password);
     $this->Load->Library('HTTP:HTTPClient', [], true, 'jira');
     $this->Load->Library('HTTP:HTTPAdapter_Curl', [], true, 'jira');
     $this->Load->Library('JIRA:JIRAComment', false, false);
     $this->Load->LoadApp('Ticket:Ticket', APP_TICKETS);
     $this->Client = new SWIFT_HTTPClient($this->_url);
     $_Adapter = new SWIFT_HTTPAdapter_Curl();
     $_Adapter->AddOption('CURLOPT_CONNECTTIMEOUT', $this->_connectionTimeout);
     $_Adapter->AddOption('CURLOPT_TIMEOUT', $this->_connectionTimeout);
     $_Adapter->SetEncoding(SWIFT_HTTPBase::RESPONSETYPE_JSON);
     $this->Client->SetAdapter($_Adapter);
     $this->Client->SetHeaders('Authorization', 'Basic ' . $this->_authToken);
     $this->Client->SetHeaders('Accept', 'application/json');
     $this->Client->SetHeaders('Content-Type', 'application/json');
 }