protected function get_formatter( &$assoc_args ) {

		if ( ! empty( $assoc_args['fields'] ) ) {
			if ( is_string( $assoc_args['fields'] ) ) {
				$fields = explode( ',', $assoc_args['fields'] );
			} else {
				$fields = $assoc_args['fields'];
			}
		} else {
			$fields = $this->obj_fields;
		}
		return new Formatter( $assoc_args, $fields, $this->obj_type );
	}
protected function get_formatter( &$assoc_args ) {

		if ( ! empty( $assoc_args['fields'] ) ) {
			if ( is_string( $assoc_args['fields'] ) ) {
				$fields = explode( ',', $assoc_args['fields'] );
			} else {
				$fields = $assoc_args['fields'];
			}
		} else {
			$fields = $this->obj_fields;
		}
		return new Formatter( $assoc_args, $fields, $this->obj_type );
	}
protected function get_formatter ( & $ assoc_args ) { if ( ! empty ( $ assoc_args [ 'fields' ] ) ) { if ( is_string ( $ assoc_args [ 'fields' ] ) ) { $ fields = explode ( ',' , $ assoc_args [ 'fields' ] ) ; } else { $ fields = $ assoc_args [ 'fields' ] ; } } else { $ fields = $ this -> obj_fields ; } return new Formatter ( $ assoc_args , $ fields , $ this -> obj_type ) ; }
Get Formatter object based on supplied parameters.

@param array $assoc_args Parameters passed to command. Determines formatting.
@return Formatter
Get Formatter object based on supplied parameters .