Remove an item from collection

@param Model $item

@return Collection
966678
public function removeItem(Model $item) : Collection
	{
		if ($this->has($item->getId())) {
			unset($this->items[$item->getId()]);
		}

		return $this;
	}
1246598
public function remove(... $items) : Set
    {
        $values = $this->_removeSameAll($items);
        $this->setValues($values);
        return $this;
    }
249390
public void removeItem (T item)
    {
        if (_model == null) {
            return; // if we have no model, stop here
        }
        // remove the item from our data model
        _model.removeItem(item);
        // force a relayout of this page
        displayPage(_page, true);
    }
1030747
public function addItem($item)
    {
        // Item class instance
        $itemInstance = static::ITEM_CLASS_INSTANCE;

        // Validate instance
        if ($itemInstance && !$item instanceof $itemInstance) {
            throw new InvalidCollectionItemException(
                sprintf(
                    "Unable to add item to collection because it must be an instance of '%s'",
                    static::ITEM_CLASS_INSTANCE
                )
            );
        }

        $this->items[] = $item;

        return $this;
    }
916126
public function clearMessages($item = null)
    {
        if (is_string($item)) {
            if (array_key_exists($item, $this->messages)) {
                unset($this->messages[$item]);
            }
        } elseif ($item === null) {
            $this->messages = array();
        }

        return $this;
    }
1276120
public function setItem(Item $item)
    {
        $this->childOf = $item->id;
        $this->_item = $item;
        
        return $this;
    }
945644
public function remove ($item) {
        if (!$this->getConnection ()->getClient ()->srem ($this->name , $item)) {
            return false;
        }
        $this->_data = null;
        $this->_count = null;
        return true;
    }
1280900
public function dequeue(&$item) : Queue
    {
        $values = $this->_shift($item);
        $this->setValues($values);
        return $this;
    }
265980
public function removeItem($item)
    {
        $key = $this->getKey($item);
        if ($key !== false) {
            $this->offsetUnset($key);
        }
    }
565530
public function remove(Model $object)
    {
        foreach ($this as $index => $item) {
            if ($item === $object) {
                $this->removeAt($index);
            }
        }
    }
522056
public function item($item)
    {
        if (!$this->model) {
            $this->model = get_class($item);
        }

        $this->item = $item;

        return $this;
    }
122753
protected function unlinkItem($item)
    {
        // Convert instance to entity ID
        if ($item instanceof AbstractEntity) {
            $item = $item->id;
        }

        $sourceEntityId = $this->getParentEntity()->id;

        if ($this->isNull($sourceEntityId) || $this->isNull($item)) {
            return false;
        }

        $query = $this->arr([
            $this->thisField => $sourceEntityId,
            $this->refField  => $item
        ])->sortKey()->val();

        $res = Entity::getInstance()->getDatabase()->delete($this->intermediateCollection, $query);

        return $res->getDeletedCount() == 1;
    }
252783
public function removeItem(OrderingItem $item)
    {
        if ($this->items->contains($item)) {
            $this->items->removeElement($item);
        }
    }
459992
protected function doClean(Item $item)
    {
        $item->setIntro(strip_tags($item->getIntro(), $this->allowedTags['intro']));
        $item->setContent(strip_tags($item->getContent(), $this->allowedTags['content']));

        return $item;
    }
630019
protected function removeItem($item)
    {
        if (is_string($item)) {
            $item = $this->findItem($item);
        }

        echo "    > removing $item->name ...";
        $time = microtime(true);
        $this->authManager->remove($item);
        echo ' done (time: ' . sprintf('%.3f', microtime(true) - $time) . "s)\n";
    }
920299
public function setItem($key, $item) {
		if (is_array($key)) {
			$key = $this->arrayHashFunction($key);
		}
		
		if (! isset($this->_data[$key])) {
			$this->_map[] = $key;
		}
		
		if (is_object($item)) {
			$modelClass = $this->getModel();
			if (! $item instanceof $modelClass) {
				throw new Exception('Model must be an instance of "' . $modelClass . '"');
			}
			
			$item->setCollection($this);
			
			$this->_data[$key]   = &$item->getDataLinked();
			$this->_models[$key] = $item;
		}
		elseif (is_array($item)) {
			$this->_data[$key] = $item;
		}
		else {
			throw new Exception('Unknown type of item: "' . gettype($item) . '"');
		}
		
		return $this;
	}
1102807
function remove($item) {
        $hash = call_user_func($this->hashFunction, $item);

        assert(is_scalar($hash));

        unset($this->objects[$hash]);
    }