Clear parts of the Select object, or an individual part.

@param string $part OPTIONAL
@return Zend_Db_Select
765270
public function reset($part = null)
    {
        if ($part == null) {
            $this->_parts = self::$_partsInit;
        } else if (array_key_exists($part, self::$_partsInit)) {
            $this->_parts[$part] = self::$_partsInit[$part];
        }
        return $this;
    }
871351
public function reset()
	{
		$this->_select   = array();
		$this->_from     = array();
		$this->_join     = array();
		$this->_where    = array();
		$this->_group_by = array();
		$this->_having   = array();
		$this->_order_by = array();
		$this->_distinct = false;
		$this->_limit     = null;
		$this->_offset    = null;
		$this->_last_join = null;
		$this->_parameters = array();

		return $this;
	}
745749
public function resetQueryPart($queryPartName)
    {
        $this->sqlParts[$queryPartName] = is_array($this->sqlParts[$queryPartName])
            ? [] : null;

        $this->state = self::STATE_DIRTY;

        return $this;
    }
37237
public function clear () {
        $this->_data = null;
        $this->_count = null;
        $this->getConnection ()->getClient ()->delete ($this->name);
        return $this;
    }
1030540
protected function _clear()
		{
			$this->selects	= array();
			$this->wheres	= array();
			$this->limit	= 999999;
			$this->offset	= 0;
			$this->sorts	= array();
		}
670792
public function extract($parts = null) {
        if ($this->isEmpty()) {
            return false;
        }

        if ($parts === null) {
            return $this->content;
        }

        if (is_array($parts)) {
            $result = array();
            foreach ($parts as $key) {
                if (isset($this->content[$key])) {
                    $result[$key] = $this->content[$key];
                }
            }

            return $result;
        }

        return isset($this->content[$parts])?$this->content[$parts]:false;
    }
359438
protected function _getPart($part)
    {
        if (property_exists($this, $part)) {
            return $this->{$part};
        } elseif (!in_array($part, self::$_table_parts)) {
            throw new InvalidArgumentException(
                sprintf('Unknown table part "%s"!', $part)
            );
        }
    }
1076859
public function resetParts(array $partNames = array())
    {
        if (empty($partNames)) {
            $partNames = array_keys($this->parts);
        }

        foreach ($partNames as $partName) {
            $this->resetPart($partName);
        }

        return $this;
    }
999594
private function processQueryPart($part)
    {
        $queryPart = (string) $part;

        if (is_object($part) && $part instanceof self && $part->count() > 1) {
            return $this->preSeparator . $queryPart . $this->postSeparator;
        }

        // Fixes DDC-1237: User may have added a where item containing nested expression (with "OR" or "AND")
        if (stripos($queryPart, ' OR ') !== false || stripos($queryPart, ' AND ') !== false) {
            return $this->preSeparator . $queryPart . $this->postSeparator;
        }

        return $queryPart;
    }
1014856
public function clear()
    {
        $tagName = $this->tagName();
        switch ($tagName) {
            case 'input':
            case 'textarea':
                $this->sendCommand('element/:id/clear', WebDriver_Command::METHOD_POST);
                break;
            case 'select':
                $this->child("xpath=descendant::option[1]")->click();
                break;
        }
        return $this;
    }
400645
public function remove($part)
    {
        foreach ($this->parts as $key => $value) {
            if ($value instanceof self) {
                $value->remove($part);
            } elseif ($value === $part) {
                unset($this->parts[$key]);
            }
        }
    }
1052267
public function removeSegment($position = 1)
	{
		if (array_key_exists($position, $this->pattern))
		{
			unset($this->pattern[$position]);
		}

		return $this;
	}
369613
public function clear() {
    foreach ($this->nodes as $node) {
      if ($node instanceof ParentNode) {
        $node->clear();
      }
    }
    return $this;
  }
810267
public function clear() {
        $this->nested = [];
        $this->getter = null;
        $this->setter = null;
        return $this;
    }
849870
public function select($selects = array())
    {
        $this->type = self::SELECT;

        if (!empty($selects)) {
            $this->parts['select'] = array_merge($this->parts['select'], (array) $selects);
        }

        return $this;
    }
287347
protected function selectDeletedRecords($select)
    {
        $modelClass = $this->modelClass;
        if ($modelClass::isRecoverable()) {
            if (!$this->deleted) {
                $select = clone $select;
                $select->where([
                    $modelClass::deletedAtAttribute() => $modelClass::deletedAtEmptyValue()
                ]);
            } elseif ($this->deleted === 'only') {
                $select = clone $select;
                $select->where([
                    $modelClass::deletedAtAttribute() => $modelClass::deletedAtValue()
                ]);
            }
        }
        return $select;
    }
1160825
public function getPart($part)
    {
        return isset($this->parts[$part]) ? $this->parts[$part] : null;
    }