english/libraries/joomla/database/databasequery.php
/**
	 * Clear data from the query or a specific clause of the query.
	 *
	 * @param   string  $clear  Optionally, the name of the clause to clear, or nothing to clear the whole query.
	 *
	 * @return  void
	 *
	 * @since   11.1
	 */
Clear data from the query or a specific clause of the query.
@param   string  $clear  Optionally, the name of the clause to clear, or nothing to clear the whole query.

@return  void


Clear data from the query or a specific clause of the query . @param string $clear Optionally the name of the clause to clear or nothing to clear the whole query . @return void
public function clear($clause = null)
	{
		switch ($clause)
		{
			case 'select':
				$this->select = null;
				$this->type = null;
				break;
			case 'delete':
				$this->delete = null;
				$this->type = null;
				break;
			case 'update':
				$this->update = null;
				$this->type = null;
				break;
			case 'insert':
				$this->insert = null;
				$this->type = null;
				break;
			case 'from':
				$this->from = null;
				break;
			case 'join':
				$this->join = null;
				break;
			case 'set':
				$this->set = null;
				break;
			case 'where':
				$this->where = null;
				break;
			case 'group':
				$this->group = null;
				break;
			case 'having':
				$this->having = null;
				break;
			case 'order':
				$this->order = null;
				break;
			case 'columns':
				$this->columns = null;
				break;
			case 'values':
				$this->values = null;
				break;
			default:
				$this->type = null;
				$this->select = null;
				$this->delete = null;
				$this->update = null;
				$this->insert = null;
				$this->from = null;
				$this->join = null;
				$this->set = null;
				$this->where = null;
				$this->group = null;
				$this->having = null;
				$this->order = null;
				$this->columns = null;
				$this->values = null;
				break;
		}
		return $this;
	}
public function clear ( $ clause = null ) { switch ( $ clause ) { case 'select' : $ this -> select = null ; $ this -> type = null ; break ; case 'delete' : $ this -> delete = null ; $ this -> type = null ; break ; case 'update' : $ this -> update = null ; $ this -> type = null ; break ; case 'insert' : $ this -> insert = null ; $ this -> type = null ; break ; case 'from' : $ this -> from = null ; break ; case 'join' : $ this -> join = null ; break ; case 'set' : $ this -> set = null ; break ; case 'where' : $ this -> where = null ; break ; case 'group' : $ this -> group = null ; break ; case 'having' : $ this -> having = null ; break ; case 'order' : $ this -> order = null ; break ; case 'columns' : $ this -> columns = null ; break ; case 'values' : $ this -> values = null ; break ; default : $ this -> type = null ; $ this -> select = null ; $ this -> delete = null ; $ this -> update = null ; $ this -> insert = null ; $ this -> from = null ; $ this -> join = null ; $ this -> set = null ; $ this -> where = null ; $ this -> group = null ; $ this -> having = null ; $ this -> order = null ; $ this -> columns = null ; $ this -> values = null ; break ; } return $ this ; }
Clear data from the query or a specific clause of the query.
Clear data from the query or a specific clause of the query .