public function loadEAPM($eapmBean) { parent::loadEAPM($eapmBean); if (!empty($eapmBean->api_data)) { $api_data = json_decode(base64_decode($eapmBean->api_data), true); if (isset($api_data['fbSession'])) { $this->fbSession = $api_data['fbSession']; } } }
public function quickCheckLogin() { $reply = parent::quickCheckLogin(); if (!$reply['success']) { return $reply; } if (!empty($this->oauth_token) && !empty($this->oauth_secret)) { return array('success' => true); } else { return array('success' => false, 'errorMessage' => translate('LBL_ERR_NO_TOKEN', 'EAPM')); } }
public function checkLogin($eapmBean = null) { if (!empty($eapmBean->url)) { $eapmBean->url = $this->fixUrl($eapmBean->url); } $reply = parent::checkLogin($eapmBean); if (!$reply['success']) { return $reply; } $doc = new SimpleXMLElement($this->getuser_xml); $this->addAuthenticationInfo($doc); $doc->body->bodyContent->webExId = $this->account_name; $reply = $this->postMessage($doc); return $reply; }