original_string: public function max($column)
  	{
  		is_array($column) and $column = array_shift($column);
  
  		// Get the columns
  		$columns = \DB::expr('MAX('.
  			\Database_Connection::instance($this->connection)->quote_identifier($this->alias.'.'.$column).
  			') AS max_result');
  
  		// Remove the current select and
  		$query = \DB::select($columns);
  
  		// Set from table
  		$query->from(array($this->_table(), $this->alias));
  
  		$tmp   = $this->build_query($query, $columns, 'max');
  		$query = $tmp['query'];
  		$max   = $query->execute($this->connection)->get('max_result');
  
  		// Database_Result::get('max_result') returns a string | null
  		if ($max === null)
  		{
  			return false;
  		}
  
  		return $max;
  	}
code: public function max($column)
  	{
  		is_array($column) and $column = array_shift($column);
  
  		// Get the columns
  		$columns = \DB::expr('MAX('.
  			\Database_Connection::instance($this->connection)->quote_identifier($this->alias.'.'.$column).
  			') AS max_result');
  
  		// Remove the current select and
  		$query = \DB::select($columns);
  
  		// Set from table
  		$query->from(array($this->_table(), $this->alias));
  
  		$tmp   = $this->build_query($query, $columns, 'max');
  		$query = $tmp['query'];
  		$max   = $query->execute($this->connection)->get('max_result');
  
  		// Database_Result::get('max_result') returns a string | null
  		if ($max === null)
  		{
  			return false;
  		}
  
  		return $max;
  	}
code_tokens: public function max ( $ column ) { is_array ( $ column ) and $ column = array_shift ( $ column ) ; // Get the columns $ columns = \ DB :: expr ( 'MAX(' . \ Database_Connection :: instance ( $ this -> connection ) -> quote_identifier ( $ this -> alias . '.' . $ column ) . ') AS max_result' ) ; // Remove the current select and $ query = \ DB :: select ( $ columns ) ; // Set from table $ query -> from ( array ( $ this -> _table ( ) , $ this -> alias ) ) ; $ tmp = $ this -> build_query ( $ query , $ columns , 'max' ) ; $ query = $ tmp [ 'query' ] ; $ max = $ query -> execute ( $ this -> connection ) -> get ( 'max_result' ) ; // Database_Result::get('max_result') returns a string | null if ( $ max === null ) { return false ; } return $ max ; }
docstring: Get the maximum of a column for the current query
  
  @param   string      $column Column
  @return  bool|int    maximum value OR false
docstring_tokens: Get the maximum of a column for the current query