@param $index

@throws \LogicException
166273
public function removeFilter($index) {
		if (!isset($this->filter[$index])) {
			throw  new LogicException("Filter not found. Index is not set.");
		}
		unset($this->filter[$index]);
		if (isset($this->recursiveFilter[$index])) {
			unset($this->recursiveFilter[$index]);
		}
	}
298920
public function remove($index)
    {
        if($index >= $this->count())
            throw new OutOfRangeException('Index out of range');

        array_splice($this->_collection, $index, 1);
    }
515970
protected function createInClient($index)
    {
        $param = $this->load($index);

        if (!$param) {
            throw new \InvalidArgumentException(sprintf("'%s' index definition does not exist", $index));
        }

        $namespace      = $this->client->indices();
        $indexRealname  = $this->getIndexRealname($index);

        if (!$namespace->exists(['index' => $indexRealname])) {
            $namespace->create([
                'index' => $indexRealname,
                'body'  => $param,
            ]);
        }
    }
764457
public function getRule($index)
    {
        if (!$this->hasRule($index)) {
            throw new \Exception('Rule not found: ' . $index);
        }

        return $this->rules[$index];
    }
76098
function setColumn($index, $params)
	{
		if (isset($this->columns[$index])) $this->columns[$index] = array_merge($this->columns[$index], $params);
		else $this->columns[$index] = $params;
	}
180873
public function withIndex(int $index): self
    {
        $state = clone $this;
        $state->_index = $index;
        return $state;
    }
194077
private function _deleteRecordFromDBF($index)
    {
        if ($this->DBFFile !== null && @dbase_delete_record($this->DBFFile, $index)) {
            dbase_pack($this->DBFFile);
        }
    }
425500
public function seek($index)
	{
		$this->rewind();

		while ($this->_pos < $index && $this->valid())
		{
			$this->next();
		}

		if (!$this->valid())
		{
			throw new \OutOfBoundsException(\Lang::txt('Invalid seek position'));
		}
	}
59245
public function setId($index): self
    {
        \assert($index === null || \is_int($index) === true || \is_string($index) === true);

        $this->index = $index;

        return $this;
    }
277741
protected function undefinedIndexAcces( $index ) {
		if ( $this->errorStrategy == \Pixel418\Iniliq::ERROR_AS_EXCEPTION ) {
			throw new \Exception( 'Undefined index: ' . $index );
		} else if ( $this->errorStrategy == \Pixel418\Iniliq::ERROR_AS_PHPERROR ) {
			trigger_error( 'Undefined index: ' . $index );
		}
	}
901728
public function arg( $index ) {
		return isset($this->arguments[$index]) ? $this->arguments[$index] : null;
	}
1184726
protected function clearIndex($index)
    {
        $index->clear(Page::class);
        $index->clear(User::class);
        $index->clear(File::class);
        $index->clear(Site::class);
    }
1364707
public function sort($index, $direction)
    {
        if (!in_array($direction, ['ASC', 'DESC'])) {
            throw new CollectionException('Sort direction must be ASC or DESC.');
        }

        $this->_sort = ['index' => $index, 'dir' => $direction];
        return $this;
    }
1312808
public function setIndex($index): self
    {
        if ($index instanceof Index) {
            $index = $index->getName();
        }

        $this->_index = (string) $index;

        return $this;
    }
736703
public function offsetSet($index, $value)
    {
        if (!parent::offsetExists($index)) {
            throw new PropertyReadOnlyException($index, __CLASS__);
        }

        parent::offsetSet($index, $value);
    }
1269839
public function setIndex($index)
	{
		if ( ! is_numeric($index) || ! is_int(+$index) || $index < 0) {
			throw new \InvalidArgumentException(
				__METHOD__."() expects parameter one, index, to be a positive "
				 ."integer or zero"
			);
		}
		
		$this->index = $index;
		
		return $this;
	}
264571
public function extension($extension)
    {
        if (is_string($extension)) {
            $extension = new $extension;
        } elseif (!$extension instanceof AbstractExtension) {
            throw new \LogicException('Not an extension object or an extension class name.');
        }

        $this->addExtension($extension);
    }