예제 #1
0
 /**
  * Set the compatibility option used by the XMLWriter
  *
  * This sets the setIndent and setIndentString for better compatibility
  *
  * @param bool $compatibility
  * @return bool
  */
 public static function setCompatibility($compatibility)
 {
     $compatibility = (bool) $compatibility;
     self::$xmlWriterCompatibility = $compatibility;
     return true;
 }
예제 #2
0
 /**
  * Set the compatibility option used by the XMLWriter
  *
  * This sets the setIndent and setIndentString for better compatibility
  *
  * @param bool $compatibility
  * @return bool
  */
 public static function setCompatibility($compatibility)
 {
     if (is_bool($compatibility)) {
         self::$xmlWriterCompatibility = $compatibility;
         return true;
     }
     return false;
 }