src/lib/eZ/FieldType/RichText/RichTextStorage/Gateway/LegacyStorage.php
public function getContentIds(array $remoteIds)
    {
        $objectRemoteIdMap = [];

        if (!empty($remoteIds)) {
            $q = $this->getConnection()->createSelectQuery();
            $q
                ->select('id', 'remote_id')
                ->from('ezcontentobject')
                ->where($q->expr->in('remote_id', $remoteIds));

            $statement = $q->prepare();
            $statement->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)) {
            $q = $this->getConnection()->createSelectQuery();
            $q
                ->select('id', 'remote_id')
                ->from('ezcontentobject')
                ->where($q->expr->in('remote_id', $remoteIds));

            $statement = $q->prepare();
            $statement->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 ) ) { $ q = $ this -> getConnection ( ) -> createSelectQuery ( ) ; $ q -> select ( 'id' , 'remote_id' ) -> from ( 'ezcontentobject' ) -> where ( $ q -> expr -> in ( 'remote_id' , $ remoteIds ) ) ; $ statement = $ q -> prepare ( ) ; $ statement -> execute ( ) ; foreach ( $ statement -> fetchAll ( \ PDO :: FETCH_ASSOC ) as $ row ) { $ objectRemoteIdMap [ $ row [ 'remote_id' ] ] = $ row [ 'id' ] ; } } return $ objectRemoteIdMap ; }
Returns a list of Content ids for a list of remote ids.

Non-existent ids are ignored.

@param array $remoteIds An array of Content remote ids

@return array An array of Content ids, with remote ids as keys
Returns a list of Content ids for a list of remote ids .