public function getContentIds(array $remoteIds)
    {
        $objectRemoteIdMap = [];

        if (!empty($remoteIds)) {
            $query = $this->connection->createQueryBuilder();
            $query
                ->select(
                    $this->connection->quoteIdentifier('id'),
                    $this->connection->quoteIdentifier('remote_id')
                )
                ->from('ezcontentobject')
                ->where($query->expr()->in('remote_id', ':remoteIds'))
                ->setParameter(':remoteIds', $remoteIds, Connection::PARAM_STR_ARRAY)
            ;

            $statement = $query->execute();
            foreach ($statement->fetchAll(\PDO::FETCH_ASSOC) as $row) {
                $objectRemoteIdMap[$row['remote_id']] = $row['id'];
            }
        }

        return $objectRemoteIdMap;
    }
public function getContentIds(array $remoteIds)
    {
        $objectRemoteIdMap = [];

        if (!empty($remoteIds)) {
            $query = $this->connection->createQueryBuilder();
            $query
                ->select(
                    $this->connection->quoteIdentifier('id'),
                    $this->connection->quoteIdentifier('remote_id')
                )
                ->from('ezcontentobject')
                ->where($query->expr()->in('remote_id', ':remoteIds'))
                ->setParameter(':remoteIds', $remoteIds, Connection::PARAM_STR_ARRAY)
            ;

            $statement = $query->execute();
            foreach ($statement->fetchAll(\PDO::FETCH_ASSOC) as $row) {
                $objectRemoteIdMap[$row['remote_id']] = $row['id'];
            }
        }

        return $objectRemoteIdMap;
    }
public function getContentIds ( array $ remoteIds ) { $ objectRemoteIdMap = [ ] ; if ( ! empty ( $ remoteIds ) ) { $ query = $ this -> connection -> createQueryBuilder ( ) ; $ query -> select ( $ this -> connection -> quoteIdentifier ( 'id' ) , $ this -> connection -> quoteIdentifier ( 'remote_id' ) ) -> from ( 'ezcontentobject' ) -> where ( $ query -> expr ( ) -> in ( 'remote_id' , ':remoteIds' ) ) -> setParameter ( ':remoteIds' , $ remoteIds , Connection :: PARAM_STR_ARRAY ) ; $ statement = $ query -> execute ( ) ; foreach ( $ statement -> fetchAll ( \ PDO :: FETCH_ASSOC ) as $ row ) { $ objectRemoteIdMap [ $ row [ 'remote_id' ] ] = $ row [ 'id' ] ; } } return $ objectRemoteIdMap ; }
Return a list of Content ids for a list of remote ids.

Non-existent ids are ignored.

@param string[] $remoteIds An array of Content remote ids

@return int[] An array of Content ids, with remote ids as keys
Return a list of Content ids for a list of remote ids .