public function mapValueToType($name, $value) {
		// just store as an untokenised string
		$type = 'String';
		
		if (strpos($name, ':')) {
			list($name, $type) = explode(':', $name);
			return $type;
		}

		// or an array of strings
		if (is_array($value)) {
			$type = 'MultiValueField';
		}
		
		if (is_double($value)) {
			return 'Double';
		}
		
		if (is_int($value)) {
			return 'Int';
		}

		return $type; 
	}
public function mapValueToType($name, $value) {
		// just store as an untokenised string
		$type = 'String';
		
		if (strpos($name, ':')) {
			list($name, $type) = explode(':', $name);
			return $type;
		}

		// or an array of strings
		if (is_array($value)) {
			$type = 'MultiValueField';
		}
		
		if (is_double($value)) {
			return 'Double';
		}
		
		if (is_int($value)) {
			return 'Int';
		}

		return $type; 
	}
public function mapValueToType ( $ name , $ value ) { // just store as an untokenised string $ type = 'String' ; if ( strpos ( $ name , ':' ) ) { list ( $ name , $ type ) = explode ( ':' , $ name ) ; return $ type ; } // or an array of strings if ( is_array ( $ value ) ) { $ type = 'MultiValueField' ; } if ( is_double ( $ value ) ) { return 'Double' ; } if ( is_int ( $ value ) ) { return 'Int' ; } return $ type ; }
Map a raw PHP value to a type

@param string $name
The name of the field. If there is a ':' character, the type is assumed to be that
which follows the ':'
@param mixed $value
The value being checked
Map a raw PHP value to a type