/** * Handles the current node in the xml reading loop. * @param DOMNode $node The current xml node * @param EndProductImportResult $resultObj The object which will be returned to the end-user * @return boolean True if the node was handled */ protected function handleXmlReaderCurrentNode(DOMNode $node, $resultObj) { if (parent::handleXmlReaderCurrentNode($node, $resultObj)) { return true; } switch ($node->nodeName) { case "tokenid": $resultObj->setTransactionId($node->textContent); return true; } return false; }
/** * Handles the current node in the xml reading loop. * @param DOMNode $node The current xml node * @param UpdateProductsResult $resultObj The object which will be returned to the end-user * @return boolean True if the node was handled */ protected function handleXmlReaderCurrentNode(DOMNode $node, $resultObj) { if (parent::handleXmlReaderCurrentNode($node, $resultObj)) { return true; } switch ($node->nodeName) { case "productsupdated": $this->readProductsUpdated($node, $resultObj); return true; } return false; }
/** * Handles the current node in the xml reading loop. * @param DOMNode $node The current xml node * @param GetRecommendationResultBase $resultObj The object which will be returned to the end-user * @return boolean True if the node was handled */ protected function handleXmlReaderCurrentNode(DOMNode $node, $resultObj) { if (parent::handleXmlReaderCurrentNode($node, $resultObj)) { return true; } switch ($node->nodeName) { //items list case "profileresult": $this->readProfileResult($node, $resultObj); return true; } return false; }
/** * Handles the current node in the xml reading loop. * @param DOMNode $node The current xml node * @param AutoCompleteResult $resultObj The object which will be returned to the end-user * @return boolean True if the node was handled */ protected function handleXmlReaderCurrentNode(DOMNode $node, $resultObj) { if (parent::handleXmlReaderCurrentNode($node, $resultObj)) { return true; } switch ($node->nodeName) { case "inputQuery": $resultObj->setInputQuery($node->textContent); return true; //items list //items list case "suggestions": $this->readProfileResult($node, $resultObj); return true; } return false; }