function ToObject($options = null)
	{
		if ($options === null) $options = array();
		$props = array_key_exists('props', $options) ? $options['props'] : $this->GetPublicProperties();
		$omit = array_key_exists('omit', $options) ? $options['omit'] : array();
		$camelCase = array_key_exists('camelCase', $options) ? $options['camelCase'] : false;

		$obj = new stdClass();

		foreach ($props as $prop)
		{
			if (!in_array($prop, $omit))
			{
				$newProp = ($camelCase) ? lcfirst($prop) : $prop;
				$obj->$newProp = $this->$prop;
			}
		}

		return $obj;
	}
function ToObject($options = null)
	{
		if ($options === null) $options = array();
		$props = array_key_exists('props', $options) ? $options['props'] : $this->GetPublicProperties();
		$omit = array_key_exists('omit', $options) ? $options['omit'] : array();
		$camelCase = array_key_exists('camelCase', $options) ? $options['camelCase'] : false;

		$obj = new stdClass();

		foreach ($props as $prop)
		{
			if (!in_array($prop, $omit))
			{
				$newProp = ($camelCase) ? lcfirst($prop) : $prop;
				$obj->$newProp = $this->$prop;
			}
		}

		return $obj;
	}
function ToObject ( $ options = null ) { if ( $ options === null ) $ options = array ( ) ; $ props = array_key_exists ( 'props' , $ options ) ? $ options [ 'props' ] : $ this -> GetPublicProperties ( ) ; $ omit = array_key_exists ( 'omit' , $ options ) ? $ options [ 'omit' ] : array ( ) ; $ camelCase = array_key_exists ( 'camelCase' , $ options ) ? $ options [ 'camelCase' ] : false ; $ obj = new stdClass ( ) ; foreach ( $ props as $ prop ) { if ( ! in_array ( $ prop , $ omit ) ) { $ newProp = ( $ camelCase ) ? lcfirst ( $ prop ) : $ prop ; $ obj -> $ newProp = $ this -> $ prop ; } } return $ obj ; }
Return an object with a limited number of properties from this Phreezable object.
This can be used if not all properties are necessary, for example rendering as JSON

This can be overriden per class for custom JSON output.  the overridden method may accept
additional option parameters that are not supported by the base Phreezable calss

@param array assoc array of options. This is passed through from Controller->RenderJSON
props (array) array of props to return (if null then use all public props)
omit (array) array of props to omit
camelCase (bool) if true then first letter of each property is made lowercase
@return stdClass
Return an object with a limited number of properties from this Phreezable object . This can be used if not all properties are necessary for example rendering as JSON