public function flagDirty($name, $dirty = true)
	{
		if (!$this->_dirty)	$this->_dirty = array();
		if ($dirty) {
			$this->_dirty[$name] = true;
		} else {
			if (array_key_exists($name, $this->_dirty)) {
				unset($this->_dirty[$name]);
			}
		}
	}
public function flagDirty($name, $dirty = true)
	{
		if (!$this->_dirty)	$this->_dirty = array();
		if ($dirty) {
			$this->_dirty[$name] = true;
		} else {
			if (array_key_exists($name, $this->_dirty)) {
				unset($this->_dirty[$name]);
			}
		}
	}
public function flagDirty ( $ name , $ dirty = true ) { if ( ! $ this -> _dirty ) $ this -> _dirty = array ( ) ; if ( $ dirty ) { $ this -> _dirty [ $ name ] = true ; } else { if ( array_key_exists ( $ name , $ this -> _dirty ) ) { unset ( $ this -> _dirty [ $ name ] ) ; } } }
Flags an attribute as dirty.

@param string $name Attribute name
Flags an attribute as dirty .