21 if(is_array($endpoint) && !empty($endpoint[
'CODE']))
23 $this->connector = Connector\Manager::getConnector($endpoint);
25 elseif(is_object($endpoint) && $endpoint instanceof Connector\
Base)
27 $this->connector = $endpoint;
34 $this->connector->setFieldValues($this->getFields());
36 return $this->connector->getForm();
48 if(is_array($endpoint) && !empty($endpoint[
'CODE']))
54 $connector = Connector\Manager::getConnector($endpoint);
57 elseif(is_object($endpoint) && $endpoint instanceof Connector\
Base)
59 $this->connector = $endpoint;
67 if(!empty($connectorFields))
69 $connectorFields = $connectorFields + $this->getFields();
72 $this->connector->setFieldValues($connectorFields);
77 $recipientDb = $this->connector->getData();
78 if($recipient = $recipientDb->Fetch())
80 $this->recipient = $recipient;
123 $result = parent::getRecipientResult();
124 if(!$this->connector)
129 $personalizeList = array();
130 $connectorPersonalizeList = $this->connector->getPersonalizeList();
131 foreach($connectorPersonalizeList as $tag)
133 if($tag[
'CODE'] <>
'')
135 $personalizeList[] = $tag[
'CODE'];
138 $result->setFilterFields(array_merge($result->getFilterFields(), $personalizeList));