public function clear()
	{
		$classvars = get_class_vars(__CLASS__);

		foreach ($classvars as $property => $value)
		{
			if ('_s_' == substr($property, 0, 3)) // Don't touch static variables
			{
				continue;
			}

			unset($this->$property);
			$this->$property = $value;
		}

		$objvars = get_object_vars($this);

		foreach ($objvars as $property => $value)
		{
			if (!array_key_exists($property, $classvars))
			{
				unset($this->$property);
			}
		}

		return true;
	}
public function clear()
	{
		$classvars = get_class_vars(__CLASS__);

		foreach ($classvars as $property => $value)
		{
			if ('_s_' == substr($property, 0, 3)) // Don't touch static variables
			{
				continue;
			}

			unset($this->$property);
			$this->$property = $value;
		}

		$objvars = get_object_vars($this);

		foreach ($objvars as $property => $value)
		{
			if (!array_key_exists($property, $classvars))
			{
				unset($this->$property);
			}
		}

		return true;
	}
public function clear ( ) { $ classvars = get_class_vars ( __CLASS__ ) ; foreach ( $ classvars as $ property => $ value ) { if ( '_s_' == substr ( $ property , 0 , 3 ) ) // Don't touch static variables { continue ; } unset ( $ this -> $ property ) ; $ this -> $ property = $ value ; } $ objvars = get_object_vars ( $ this ) ; foreach ( $ objvars as $ property => $ value ) { if ( ! array_key_exists ( $ property , $ classvars ) ) { unset ( $ this -> $ property ) ; } } return true ; }
Reset all properties, making an empty profile object

@return  boolean  True
Reset all properties making an empty profile object