Phorm/Phorm.class.php
/**
	 * Returns an associative array of the imported form data on a bound, valid
	 * form. Returns null if the form is not yet bound or if the form is not
	 * valid. Calls each field's get_value method, caching the values in the
	 * Phorm instance. If reprocess is true, the cache is rebuilt.
	 *
	 * @author Aaron Stone
	 * @return array|null
	 */
Returns an associative array of the imported form data on a bound, valid
form. Returns null if the form is not yet bound or if the form is not
valid. Calls each field's get_value method, caching the values in the
Phorm instance. If reprocess is true, the cache is rebuilt.

@author Aaron Stone
@return array|null
Returns an associative array of the imported form data on a bound valid form . Returns null if the form is not yet bound or if the form is not valid . Calls each field ' s get_value method caching the values in the Phorm instance . If reprocess is true the cache is rebuilt . @author Aaron Stone @return array|null
public function cleaned_data($reprocess=FALSE)
	{
		if( !$this->bound && !$this->is_valid() )
		{
			return NULL;
		}
		if( !is_array($this->clean) || $reprocess )
		{
			$this->clean = array();
			foreach( $this->fields as $name => &$field )
			{
				$this->clean[$name] = $field->get_value();
			}
		}
		return $this->clean;
	}
public function cleaned_data ( $ reprocess = FALSE ) { if ( ! $ this -> bound && ! $ this -> is_valid ( ) ) { return NULL ; } if ( ! is_array ( $ this -> clean ) || $ reprocess ) { $ this -> clean = array ( ) ; foreach ( $ this -> fields as $ name => & $ field ) { $ this -> clean [ $ name ] = $ field -> get_value ( ) ; } } return $ this -> clean ; }
Returns an associative array of the imported form data on a bound, valid
 form.
Returns an associative array of the imported form data on a bound valid form .