Version 3.4.5

This commit is contained in:
Neo committed 2025-12-19 00:38:12 -08:00
1 parent fb6b5baabc
commit e4478369d8
1360 files changed
+228921 -179445

No files matched your search

+10 -8
View File
@@ -3,20 +3,20 @@
/**
* <pre>
* Invision Power Services
* IP.Board v3.3.4
* IP.Board v3.4.5
* XML Handler: Rewritten for PHP5
* By Matt Mecham
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
* Last Updated: $Date: 2012-07-27 11:43:25 -0400 (Fri, 27 Jul 2012) $
* </pre>
*
* @author $Author: bfarber $
* @author $Author: mark $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/company/standards.php#license
* @package IP.Board
* @subpackage Kernel
* @link http://www.invisionpower.com
* @since 25th February 2004
* @version $Revision: 10914 $
* @version $Revision: 11149 $
*
*
* Example Usage:
@@ -225,11 +225,12 @@ class classXML
* @param string Name of tag to create
* @param string [Name of parent tag (optional)]
* @param array [Attributes]
* @param string [Namespace URI]
* @return @e void
*/
public function addElement( $tag, $parentTag='', $attributes=array() )
public function addElement( $tag, $parentTag='', $attributes=array(), $namespaceUri='' )
{
$this->_domObjects[ $tag ] = $this->_node( $parentTag )->appendChild( new DOMElement( $tag ) );
$this->_domObjects[ $tag ] = $this->_node( $parentTag )->appendChild( new DOMElement( $tag, '', $namespaceUri ) );
$this->addAttributes( $tag, $attributes );
}
@@ -243,9 +244,10 @@ class classXML
* @param string Name of parent tag
* @param mixed Tag wrapper
* @param array Array of data to add
* @param string [Namespace URI]
* @return @e void
*/
public function addElementAsRecord( $parentTag, $tag, $data )
public function addElementAsRecord( $parentTag, $tag, $data, $namespaceUri='' )
{
/* A little set up if you please... */
$_tag = $tag;
@@ -257,7 +259,7 @@ class classXML
$_tag_attr = $tag[1];
}
$record = $this->_node( $parentTag )->appendChild( new DOMElement( $_tag ) );
$record = $this->_node( $parentTag )->appendChild( new DOMElement( $_tag, ( is_array( $data ) ? NULL : $data ), $namespaceUri ) );
if ( is_array( $_tag_attr ) AND count( $_tag_attr ) )
{