예제 #1
0
 /**
  * @param string $_errorString
  * @param XmlDocument $_xmlObj
  * @param int $_code = null
  */
 function PrintErrorAndExit($_errorString, &$_xmlObj, $_code = null)
 {
     if ($_xmlObj) {
         $_errorNote = new XmlDomNode('error', $_errorString, true);
         if (null !== $_code) {
             $_errorNote->AppendAttribute('code', (int) $_code);
         }
         $_xmlObj->XmlRoot->AppendChild($_errorNote);
     }
     CXmlProcessing::PrintXML($_xmlObj);
 }
예제 #2
0
function _localPrintXML(&$_xmlRes, $_startTime)
{
    CXmlProcessing::PrintXML($_xmlRes, $_startTime);
}