public function toXML($mapKeysToText = false)
	{
		// Deprecation warning.
		Log::debug('Hubzero\Database\Table::toXML() is deprecated.');

		// Initialise variables.
		$xml = array();
		$map = $mapKeysToText ? ' mapkeystotext="true"' : '';

		// Open root node.
		$xml[] = '<record table="' . $this->_tbl . '"' . $map . '>';

		// Get the publicly accessible instance properties.
		foreach (get_object_vars($this) as $k => $v)
		{
			// If the value is null or non-scalar, or the field is internal ignore it.
			if (!is_scalar($v) || ($v === null) || ($k[0] == '_'))
			{
				continue;
			}

			$xml[] = '	<' . $k . '><![CDATA[' . $v . ']]></' . $k . '>';
		}

		// Close root node.
		$xml[] = '</record>';

		// Return the XML array imploded over new lines.
		return implode("\n", $xml);
	}
public function toXML($mapKeysToText = false)
	{
		// Deprecation warning.
		Log::debug('Hubzero\Database\Table::toXML() is deprecated.');

		// Initialise variables.
		$xml = array();
		$map = $mapKeysToText ? ' mapkeystotext="true"' : '';

		// Open root node.
		$xml[] = '<record table="' . $this->_tbl . '"' . $map . '>';

		// Get the publicly accessible instance properties.
		foreach (get_object_vars($this) as $k => $v)
		{
			// If the value is null or non-scalar, or the field is internal ignore it.
			if (!is_scalar($v) || ($v === null) || ($k[0] == '_'))
			{
				continue;
			}

			$xml[] = '	<' . $k . '><![CDATA[' . $v . ']]></' . $k . '>';
		}

		// Close root node.
		$xml[] = '</record>';

		// Return the XML array imploded over new lines.
		return implode("\n", $xml);
	}
public function toXML ( $ mapKeysToText = false ) { // Deprecation warning. Log :: debug ( 'Hubzero\Database\Table::toXML() is deprecated.' ) ; // Initialise variables. $ xml = array ( ) ; $ map = $ mapKeysToText ? ' mapkeystotext="true"' : '' ; // Open root node. $ xml [ ] = '<record table="' . $ this -> _tbl . '"' . $ map . '>' ; // Get the publicly accessible instance properties. foreach ( get_object_vars ( $ this ) as $ k => $ v ) { // If the value is null or non-scalar, or the field is internal ignore it. if ( ! is_scalar ( $ v ) || ( $ v === null ) || ( $ k [ 0 ] == '_' ) ) { continue ; } $ xml [ ] = '	<' . $ k . '><![CDATA[' . $ v . ']]></' . $ k . '>' ; } // Close root node. $ xml [ ] = '</record>' ; // Return the XML array imploded over new lines. return implode ( "\n" , $ xml ) ; }
Method to export the Table instance properties to an XML string.

@param   boolean  $mapKeysToText  True to map foreign keys to text values.
@return  string   XML string representation of the instance.
@deprecated  2.1.12
@since   2.1.12
Method to export the Table instance properties to an XML string .