Elgg\Mocks\Database\MetadataTable::deleteAll PHP Method

deleteAll() public method

public deleteAll ( array $options = [] )
$options array
    public function deleteAll(array $options = array())
    {
        $guids = elgg_extract('guids', $options);
        $deleted = false;
        foreach ($this->rows as $id => $row) {
            if (empty($guids) || in_array($row->entity_guid, $guids)) {
                $this->clearQuerySpecs($this->rows[$id]);
                $deleted = true;
                unset($this->rows[$id]);
            }
        }
        return $deleted;
    }