public function FrxEmailMerge::scrapeConfig in Forena Reports 8
Overrides TemplateInterface::scrapeConfig
File
- src/
FrxPlugin/ Template/ FrxEmailMerge.php, line 22 - FrxEmailMerge Email merge template.
Class
- FrxEmailMerge
- Email Merge Template
Namespace
Drupal\forena\TemplateCode
public function scrapeConfig(\SimpleXMLElement $xml) {
$config = array();
$config['class'] = get_class($this);
$config['from'] = html_entity_decode($this
->extractXPathInnerHTML("*//*[@class='email-header-from']", $this->reportDocDomNode));
$config['to'] = html_entity_decode($this
->extractXPathInnerHTML("*//*[@class='email-header-to']", $this->reportDocDomNode));
$config['cc'] = html_entity_decode($this
->extractXPathInnerHTML("*//*[@class='email-header-cc']", $this->reportDocDomNode));
$config['bcc'] = html_entity_decode($this
->extractXPathInnerHTML("*//*[@class='email-header-bcc']", $this->reportDocDomNode));
$config['subject'] = $this
->extractXPathInnerHTML("*//*[@class='email-header-subject']", $this->reportDocDomNode);
$config['body']['value'] = $this
->extractXPathInnerHTML("*//*[@class='email-body']", $this->reportDocDomNode);
return $config;
}