function getSourceConnector() {
		$connector =  new WSAPP_VtigerConnector();
		$connector->setSynchronizeController($this);
		$targetName = $this->targetConnector->getName();
		if(empty ($targetName)){
			throw new Exception('Target Name cannot be empty');
		}
		return $connector->setName('Vtiger_'.$targetName);
	}
Example #2
0
 /**
  * function to get data from vtiger
  * @param type $syncStateModel
  * @return type
  */
 public function pull($syncStateModel)
 {
     $records = parent::pull($syncStateModel);
     return $records;
 }