src/bundles/Database/Query/Select.php
public function fields( $fields )
	{
		if ( !is_array( $fields ) && !is_null( $fields ) )
		{
			$fields = array( $fields );
		}
		
		// do nothing if we get nothing
		if ( empty( $fields ) || $fields == array( '*' ) )
		{
			$this->fields = array(); return $this;
		}
		
		$this->fields = $fields;

		// return self so we can continue running the next function
		return $this;
	}
public function fields( $fields )
	{
		if ( !is_array( $fields ) && !is_null( $fields ) )
		{
			$fields = array( $fields );
		}
		
		// do nothing if we get nothing
		if ( empty( $fields ) || $fields == array( '*' ) )
		{
			$this->fields = array(); return $this;
		}
		
		$this->fields = $fields;

		// return self so we can continue running the next function
		return $this;
	}
public function fields ( $ fields ) { if ( ! is_array ( $ fields ) && ! is_null ( $ fields ) ) { $ fields = array ( $ fields ) ; } // do nothing if we get nothing if ( empty ( $ fields ) || $ fields == array ( '*' ) ) { $ this -> fields = array ( ) ; return $ this ; } $ this -> fields = $ fields ; // return self so we can continue running the next function return $ this ; }
Set the select fields

@param array 		$values
@return self
Set the select fields