Пример #1
0
 protected static function isDebug()
 {
     return self::$debug || !Application_Model_General::isProd();
 }
Пример #2
0
 /**
  * Makes XML for SOAP Response Body
  *  
  */
 protected function setResponseXmlBody()
 {
     $xml = $this->request->createXml();
     $xmlString = $xml->asXML();
     //		error_log($xmlString);
     $dom = new DOMDocument();
     $dom->loadXML($xmlString);
     $dom->formatOutput = true;
     $isValid = $dom->schemaValidate('npMessageBody.xsd');
     if ($isValid === TRUE || Application_Model_General::isProd()) {
         // format the xml with indentation
         return $dom->saveXML();
     } else {
         error_log("xml doesn't validate");
     }
 }