getSourceType(),$this->user->id); $oauth2Connection = $oauth2Connector->authorize(); $connector = new Google_Contacts_Connector($oauth2Connection); $connector->setSynchronizeController($this); return $connector; } public function getSourceConnector() { $connector = new Google_Vtiger_Connector(); $connector->setSynchronizeController($this); $targetName = $this->targetConnector->getName(); if(empty ($targetName)){ throw new Exception('Target Name cannot be empty'); } return $connector->setName('Vtiger_'.$targetName); } /** * Return the types of snyc * @return type */ public function getSyncType() { return WSAPP_SynchronizeController::WSAPP_SYNCHRONIZECONTROLLER_USER_SYNCTYPE; } /** * Returns source type of Controller * @return string */ public function getSourceType() { return 'Contacts'; } }