function _sf_notifications_parse_handle_message in Salesforce Suite 7.2
Parses and handles an outbound message from Salesforce.
Parameters
string $content The XML contents of the outbound message from Salesforce.:
Return value
(boolean) FALSE if there were errors. TRUE otherwise.
4 calls to _sf_notifications_parse_handle_message()
- sf_notifications_cron in sf_notifications/
sf_notifications.module - Implements hook_cron().
- sf_notifications_drush_process_queue in sf_notifications/
sf_notifications.drush.inc - Drush callback to process the Salesforce queue manually.
- sf_notifications_endpoint in sf_notifications/
sf_notifications.module - Menu callback for Salesforce notifications endpoint @todo Add authentication. see "Downloading the Salesforce.com Client Certificate" at http://www.salesforce.com/us/developer/docs/ajax/Content/sforce_api_ajax...
- sf_notifications_process_confirm_form_submit in sf_notifications/
sf_notifications.admin.inc
File
- sf_notifications/
sf_notifications.module, line 474
Code
function _sf_notifications_parse_handle_message($content) {
$dom = new DOMDocument();
$dom
->loadXML($content);
if (empty($dom) || !$dom
->hasChildNodes()) {
salesforce_api_log(SALESFORCE_LOG_NONE, 'Salesforce Notifications: Failed to parse into DOM Document.
<pre>' . print_r($content) . '</pre>', array(), WATCHDOG_ERROR);
return FALSE;
}
$resultArray = _sf_notifications_parse_message($dom);
$ret = _sf_notifications_handle_message($resultArray);
return $ret;
}