[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Summary view] [Print] [Text view]
1 <?php 2 /* +*********************************************************************************** 3 * The contents of this file are subject to the vtiger CRM Public License Version 1.0 4 * ("License"); You may not use this file except in compliance with the License 5 * The Original Code is: vtiger CRM Open Source 6 * The Initial Developer of the Original Code is vtiger. 7 * Portions created by vtiger are Copyright (C) vtiger. 8 * All Rights Reserved. 9 * *********************************************************************************** */ 10 vimport('~~/modules/WSAPP/synclib/controllers/SynchronizeController.php'); 11 12 class Google_Contacts_Controller extends WSAPP_SynchronizeController { 13 14 /** 15 * Returns the connector of the google contacts 16 * @return Google_Contacts_Connector 17 */ 18 public function getTargetConnector() { 19 $oauthConnector = new Google_Oauth_Connector(Google_Utils_Helper::getCallbackUrl(array('module' => 'Google', 'sourcemodule' => $this->getSourceType()), array('operation' => 'sync'))); 20 $client = $oauthConnector->getHttpClient($this->getSourceType()); 21 $connector = new Google_Contacts_Connector($client); 22 $connector->setSynchronizeController($this); 23 return $connector; 24 } 25 26 /** 27 * Return the types of snyc 28 * @return type 29 */ 30 public function getSyncType() { 31 return WSAPP_SynchronizeController::WSAPP_SYNCHRONIZECONTROLLER_USER_SYNCTYPE; 32 } 33 34 /** 35 * Returns source type of Controller 36 * @return string 37 */ 38 public function getSourceType() { 39 return 'Contacts'; 40 } 41 42 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |