Esempio n. 1
0
 /**
  * AutotweetMailChannel
  *
  * @param   object  &$channel  Param
  */
 public function __construct(&$channel)
 {
     parent::__construct($channel);
     $this->mailer = JFactory::getMailer();
     $config = JFactory::getConfig();
     $sender = array($config->get($this->get('mail_sender_email')), $config->get($this->get('mail_sender_name')));
     $this->mailer->setSender($sender);
 }
Esempio n. 2
0
 /**
  * ChannelHelper.
  *
  * @param   object  $channel  Params.
  */
 public function __construct($channel)
 {
     parent::__construct($channel);
     if ($channel->id) {
         $this->client_id = $this->channel->params->get('client_id');
         $this->client_secret = $this->channel->params->get('client_secret');
         $this->developer_key = $this->channel->params->get('developer_key');
         $access_token = $this->channel->params->get('access_token');
         $this->setAccessToken($access_token);
     }
 }
Esempio n. 3
0
 /**
  * ChannelHelper.
  *
  * @param   object  $channel  Params.
  */
 public function __construct($channel)
 {
     parent::__construct($channel);
     require_once dirname(__FILE__) . '/OAuth/OAuth.php';
     require_once dirname(__FILE__) . '/Simple-LinkedIn/linkedin_3.2.0.class.php';
     if ($channel->id) {
         $this->consumer_key = $this->channel->params->get('consumer_key');
         $this->consumer_secret = $this->channel->params->get('consumer_secret');
         $this->access_token = $this->channel->params->get('access_token');
         $this->access_secret = $this->channel->params->get('access_secret');
     }
 }
Esempio n. 4
0
 /**
  * ChannelHelper.
  *
  * @param   object  $channel  Params.
  */
 public function __construct($channel)
 {
     parent::__construct($channel);
     $access_token_json = $this->get('access_token');
     $this->setJsonAccessToken($access_token_json);
 }