private function buildQuery($type = 'select')
	{
		$pieces = array();

		// Loop through query elements
		foreach ($this->$type as $piece)
		{
			// If we have one of these elements, get its string value
			if ($element = $this->syntax->build($piece))
			{
				$pieces[] = $element;
			}
		}

		return implode("\n", $pieces);
	}
private function buildQuery($type = 'select')
	{
		$pieces = array();

		// Loop through query elements
		foreach ($this->$type as $piece)
		{
			// If we have one of these elements, get its string value
			if ($element = $this->syntax->build($piece))
			{
				$pieces[] = $element;
			}
		}

		return implode("\n", $pieces);
	}
private function buildQuery ( $ type = 'select' ) { $ pieces = array ( ) ; // Loop through query elements foreach ( $ this -> $ type as $ piece ) { // If we have one of these elements, get its string value if ( $ element = $ this -> syntax -> build ( $ piece ) ) { $ pieces [ ] = $ element ; } } return implode ( "\n" , $ pieces ) ; }
Builds query based on the current query elements established

@param   string  $type  The type of query to build
@return  string
@since   2.0.0
Builds query based on the current query elements established