english/libraries/joomla/database/table/content.php
/**
	 * Converts record to XML
	 *
	 * @param   boolean  $mapKeysToText  Map foreign keys to text values
	 *
	 * @return  string    Record in XML format
	 *
	 * @since   11.1
	 */
Converts record to XML
@param   boolean  $mapKeysToText  Map foreign keys to text values

@return  string    Record in XML format


Converts record to XML @param boolean $mapKeysToText Map foreign keys to text values @return string Record in XML format
function toXML($mapKeysToText=false)
	{
		$db = JFactory::getDbo();
		if ($mapKeysToText) {
			$query = 'SELECT name'
			. ' FROM #__categories'
			. ' WHERE id = '. (int) $this->catid
			;
			$db->setQuery($query);
			$this->catid = $db->loadResult();
			$query = 'SELECT name'
			. ' FROM #__users'
			. ' WHERE id = ' . (int) $this->created_by
			;
			$db->setQuery($query);
			$this->created_by = $db->loadResult();
		}
		return parent::toXML($mapKeysToText);
	}
function toXML ( $ mapKeysToText = false ) { $ db = JFactory :: getDbo ( ) ; if ( $ mapKeysToText ) { $ query = 'SELECT name' . ' FROM #__categories' . ' WHERE id = ' . ( int ) $ this -> catid ; $ db -> setQuery ( $ query ) ; $ this -> catid = $ db -> loadResult ( ) ; $ query = 'SELECT name' . ' FROM #__users' . ' WHERE id = ' . ( int ) $ this -> created_by ; $ db -> setQuery ( $ query ) ; $ this -> created_by = $ db -> loadResult ( ) ; } return parent :: toXML ( $ mapKeysToText ) ; }
Converts record to XML
 @param   boolean  $mapKeysToText  Map foreign keys to text values
Converts record to XML @param boolean $mapKeysToText Map foreign keys to text values