public function deleteItems(array $sites = [], array $indexQueueConfigurationNames = [], array $itemTypes = [], array $itemUids = [], array $uids = [])
    {
        $rootPageIds = Site::getRootPageIdsFromSites($sites);
        $indexQueueConfigurationList = implode(",", $indexQueueConfigurationNames);
        $itemTypeList = implode(",", $itemTypes);
        $itemUids = array_map("intval", $itemUids);
        $uids = array_map("intval", $uids);

        $queryBuilderForDeletingItems = $this->getQueryBuilder();
        $queryBuilderForDeletingItems->delete($this->table);
        $queryBuilderForDeletingItems = $this->addItemWhereClauses($queryBuilderForDeletingItems, $rootPageIds, $indexQueueConfigurationList, $itemTypeList, $itemUids, $uids);

        $queryBuilderForDeletingProperties = $this->buildQueryForPropertyDeletion($queryBuilderForDeletingItems, $rootPageIds, $indexQueueConfigurationList, $itemTypeList, $itemUids, $uids);

        $queryBuilderForDeletingItems->getConnection()->beginTransaction();
        try {
            $queryBuilderForDeletingItems->execute();
            $queryBuilderForDeletingProperties->execute();

            $queryBuilderForDeletingItems->getConnection()->commit();
        } catch (\Exception $e) {
            $queryBuilderForDeletingItems->getConnection()->rollback();
            throw $e;
        }
    }
public function deleteItems(array $sites = [], array $indexQueueConfigurationNames = [], array $itemTypes = [], array $itemUids = [], array $uids = [])
    {
        $rootPageIds = Site::getRootPageIdsFromSites($sites);
        $indexQueueConfigurationList = implode(",", $indexQueueConfigurationNames);
        $itemTypeList = implode(",", $itemTypes);
        $itemUids = array_map("intval", $itemUids);
        $uids = array_map("intval", $uids);

        $queryBuilderForDeletingItems = $this->getQueryBuilder();
        $queryBuilderForDeletingItems->delete($this->table);
        $queryBuilderForDeletingItems = $this->addItemWhereClauses($queryBuilderForDeletingItems, $rootPageIds, $indexQueueConfigurationList, $itemTypeList, $itemUids, $uids);

        $queryBuilderForDeletingProperties = $this->buildQueryForPropertyDeletion($queryBuilderForDeletingItems, $rootPageIds, $indexQueueConfigurationList, $itemTypeList, $itemUids, $uids);

        $queryBuilderForDeletingItems->getConnection()->beginTransaction();
        try {
            $queryBuilderForDeletingItems->execute();
            $queryBuilderForDeletingProperties->execute();

            $queryBuilderForDeletingItems->getConnection()->commit();
        } catch (\Exception $e) {
            $queryBuilderForDeletingItems->getConnection()->rollback();
            throw $e;
        }
    }
public function deleteItems ( array $ sites = [ ] , array $ indexQueueConfigurationNames = [ ] , array $ itemTypes = [ ] , array $ itemUids = [ ] , array $ uids = [ ] ) { $ rootPageIds = Site :: getRootPageIdsFromSites ( $ sites ) ; $ indexQueueConfigurationList = implode ( "," , $ indexQueueConfigurationNames ) ; $ itemTypeList = implode ( "," , $ itemTypes ) ; $ itemUids = array_map ( "intval" , $ itemUids ) ; $ uids = array_map ( "intval" , $ uids ) ; $ queryBuilderForDeletingItems = $ this -> getQueryBuilder ( ) ; $ queryBuilderForDeletingItems -> delete ( $ this -> table ) ; $ queryBuilderForDeletingItems = $ this -> addItemWhereClauses ( $ queryBuilderForDeletingItems , $ rootPageIds , $ indexQueueConfigurationList , $ itemTypeList , $ itemUids , $ uids ) ; $ queryBuilderForDeletingProperties = $ this -> buildQueryForPropertyDeletion ( $ queryBuilderForDeletingItems , $ rootPageIds , $ indexQueueConfigurationList , $ itemTypeList , $ itemUids , $ uids ) ; $ queryBuilderForDeletingItems -> getConnection ( ) -> beginTransaction ( ) ; try { $ queryBuilderForDeletingItems -> execute ( ) ; $ queryBuilderForDeletingProperties -> execute ( ) ; $ queryBuilderForDeletingItems -> getConnection ( ) -> commit ( ) ; } catch ( \ Exception $ e ) { $ queryBuilderForDeletingItems -> getConnection ( ) -> rollback ( ) ; throw $ e ; } }
Removes items in the index queue filtered by the passed arguments.

@param array $sites
@param array $indexQueueConfigurationNames
@param array $itemTypes
@param array $itemUids
@param array $uids
@throws \Exception
Removes items in the index queue filtered by the passed arguments .