Elgg\Mocks\Database\PrivateSettingsTable::removeAllForEntity PHP Method

removeAllForEntity() public method

public removeAllForEntity ( $entity_guid )
    public function removeAllForEntity($entity_guid)
    {
        $deleted = false;
        foreach ($this->rows as $id => $row) {
            if ($row->entity_guid == $entity_guid) {
                $this->clearQuerySpecs($this->rows[$id]);
                $deleted = true;
                unset($this->rows[$id]);
            }
        }
        return $deleted;
    }