<?php

require_once 'Swat/Swat.php';
require_once 'Swat/exceptions/SwatException.php';

/**
 * The base object type
 *
 * @package   Swat
 * @copyright 2004-2005 silverorange
 * @license   http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
 */
class SwatObject
{
	public function __toString()
	{
		Swat::printObject($this);
	}
}

?>

<?php

require_once 'Swat/Swat.php';
require_once 'Swat/exceptions/SwatException.php';

/**
 * The base object type
 *
 * @package   Swat
 * @copyright 2004-2005 silverorange
 * @license   http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
 */
class SwatObject
{
	public function __toString()
	{
		ob_start();
		Swat::printObject($this);
		return ob_get_clean();
	}
}

?>

Return a string instead of printing.
Return a string instead of printing.


svn commit r2846
