Esempio n. 1
0
	function to_xml ($options = array())
	{
		if (empty($options['root']))
			$options['root'] = Inflector::underscore($this->class_name());

		return "<{$options['root']}>" . ArrayHelper::array_to_xml($this->attributes) . "</{$options['root']}>";	
	}