@param       $ids
@param       $caller
@param array $default

@return array
494063
public function mGet($ids, $caller, $default = [])
    {
        $timer = $this->profiler->openTimer(__METHOD__, $ids, $caller);
        $request = $this->dataAdapter->getReadRequest($ids);
        $request->send();
        $request->fetch();
        $this->profiler->finishTimer($timer);
        
        return $request->hasResult() ? $request->getResult() : $default;
    }
932995
protected function _getIds(array $ids, $primaryKey = self::PRIMARY_KEY)
    {
        $return = [];
        foreach ($ids as $id => $value) {
            if (is_array($value) && is_int($id) && (int) $value[$primaryKey] === 1) {
                $return[$id] = $id;
            }
        }

        return $return;
    }
541341
public function enqueueLibs(string $caller, array $data)
    {
        if (!$data) {
            return []; // No data.
        } // Data cannot be empty here.
        // Empty data would cause `did*()` functions
        // to return an empty array, which is unexpected!

        foreach ($data['styles'] ?? [] as $_handle => $_style) {
            if (!$_handle || !is_string($_handle)) {
                continue; // Invalid handle.
            }
            $_version = $_style['version'] ?? '';
            $_ver     = $_style['ver'] ?? null;

            $_url     = $_style['url'] ?? '';
            $_sri     = $_style['sri'] ?? null;
            $_media   = $_style['media'] ?? 'all';

            $_deps    = $_style['deps'] ?? [];

            $_inline  = $_style['inline'] ?? '';

            if ($_version && $_url) { // Version in URL?
                $_url = sprintf($_url, urlencode($_version));
            }
            if ($_url) { // Only if there is a URL to register.
                wp_register_style($_handle, $_url, $_deps, $_ver, $_media);
            }// If no URL, enqueue handle only.

            wp_enqueue_style($_handle); // Immediately.

            if ($_inline) { // Inline styles also?
                wp_add_inline_style($_handle, $_inline);
            }
            $this->did_enqueue_styles[$_handle] = [
                'version' => $_version,
                'ver'     => $_ver,

                'url'     => $_url,
                'sri'     => $_sri,
                'media'   => $_media,

                'deps'    => $_deps,

                'inline'  => $_inline,
            ];
        } // unset($_handle, $_script, $_version, $_ver, $_url, $_deps, $_media, $_inline);

        foreach ($data['scripts'] ?? [] as $_handle => $_script) {
            if (!$_handle || !is_string($_handle)) {
                continue; // Invalid handle.
            }
            $_version   = $_script['version'] ?? '';
            $_ver       = $_script['ver'] ?? null;

            $_url       = $_script['url'] ?? '';
            $_sri       = $_script['sri'] ?? null;

            $_deps      = $_script['deps'] ?? [];

            $_in_footer = $_script['in_footer'] ?? true;
            $_async     = $_script['async'] ?? false;
            $_defer     = $_script['defer'] ?? false;

            $_inline    = $_script['inline'] ?? '';
            $_localize  = $_script['localize'] ?? [];

            if ($_version && $_url) { // Version in URL?
                $_url = sprintf($_url, urlencode($_version));
            }
            if ($_url) { // Only if there is a URL to register.
                wp_register_script($_handle, $_url, $_deps, $_ver, $_in_footer);
            }// If no URL, enqueue handle only.

            wp_enqueue_script($_handle); // Immediately.

            if ($_inline) { // Inline scripting also?
                wp_add_inline_script($_handle, $_inline);
            }
            if (!empty($_localize['key']) && array_key_exists('data', $_localize)) {
                wp_localize_script($_handle, $_localize['key'], $_localize['data']);
            }
            $this->did_enqueue_scripts[$_handle] = [
                'version'   => $_version,
                'ver'       => $_ver,

                'url'       => $_url,
                'sri'       => $_sri,

                'deps'      => $_deps,

                'in_footer' => $_in_footer,
                'async'     => $_async,
                'defer'     => $_defer,

                'inline'    => $_inline,
                'localize'  => $_localize,
            ];
        } // unset($_handle, $_script, $_version, $_ver, $_url, $_deps, $_in_footer, $_localize);

        return $this->did_enqueue_libs[$caller] = $data;
    }
125442
public function getNodeRepositories($ids)
    {
        $types = $this->getService('repos:base.node')
                ->getQuery()
                ->disableChain()
                ->id($ids);

        $types->distinct = true;
        $repositories = array();
        foreach ($types->fetchValues('type') as $key => $type) {
            $type = explode(',', $type);
            $identifier = end($type);
            $repositories[] = AnDomain::getRepository($identifier);
        }

        return $repositories;
    }
1025799
public function getByIds($ids, $prepareResults = true)
    {
        $queryBuilder = $this->getSelectQueryBuilder();
        $connection   = $queryBuilder->getConnection();
        $rows         = $queryBuilder->where(
            $queryBuilder->expr()->in($this->getUniqueId(), array_map(function ($id) use ($connection) {
                return $connection->quote($id);
            }, $ids))
        )->execute()->fetchAll();

        if ($prepareResults) {
            $this->prepareResults($rows);
        }

        return $rows;
    }
410537
public static function getChildByArray(array $keys, array $values, $default = null) {
		switch (count($keys)) {
			case 0:
				return $values;
			case 1:
				return array_key_exists($keys[0], $values) ? $values[$keys[0]] : $default;
			case 2:
				return isset($values[$keys[0]][$keys[1]]) ? $values[$keys[0]][$keys[1]] : $default;
			case 3:
				return isset($values[$keys[0]][$keys[1]][$keys[2]]) ? $values[$keys[0]][$keys[1]][$keys[2]] : $default;
			case 4:
				return isset($values[$keys[0]][$keys[1]][$keys[2]][$keys[3]]) ? $values[$keys[0]][$keys[1]][$keys[2]][$keys[3]] : $default;
			default:
				return isset($values[$keys[0]]) ? self::getChildByArray(array_slice($keys, 1), $values[$keys[0]], $default) : $default;
		}
	}
311161
public function getByIds($classname, Array $ids)
    {
        $classname = $classname . '\Sync';
        $classnameArray = $classname . '\ArrayObject';
        $objects = new $classnameArray();
        $objects->append(new $classname(array('id' => $ids)));

        $response = $this->request(
            $this->buildUrl(new $classname(), null, '/sync_fetch_ids'), 'POST', $this->mapper->mapToStorage($objects)
        );
        return $this->mapper->mapFromStorage($response);
    }
29451
public function sort(array $ids, array $list)
    {
        $data = array();
        foreach ($ids as $key) {

            if (!isset($list[$key])) {
                return array();
            }

            $data[$key] = $list[$key]['sort'];
            foreach (array_keys($list[$key]['requires']) as $dependency) {
                if (!isset($data[$dependency])) {
                    $data[$dependency] = 0;
                }
            }
        }

        arsort($data);
        return array_keys($data);
    }
220427
private function findAccountsByIds($ids)
    {
        if (0 === count($ids)) {
            return [];
        }

        $queryBuilder = $this->entityManager->createQueryBuilder()
            ->select('CONCAT(\'a\', a.id) AS id, a.name AS name')
            ->from($this->accountEntityClass, 'a')
            ->where('a.id IN (:ids)');

        $query = $queryBuilder->getQuery();
        $query->setParameter('ids', $ids);

        return $query->getArrayResult();
    }
765048
private function findContactsByIds($ids)
    {
        if (0 === count($ids)) {
            return [];
        }

        $queryBuilder = $this->entityManager->createQueryBuilder()
            ->select('CONCAT(\'c\', c.id) AS id, CONCAT(CONCAT(c.firstName, \' \'), c.lastName) AS name')
            ->from($this->contactEntityClass, 'c')
            ->where('c.id IN (:ids)');

        $query = $queryBuilder->getQuery();
        $query->setParameter('ids', $ids);

        return $query->getArrayResult();
    }
1004668
public function getMultiple($keys, $default = null)
    {
        $value = [];
        foreach ($keys as $key) {
            $this->has($key) ? $value[$key] = $this->get($key, $default) : null;
        }

        return $value;
    }
708284
protected function getContainerParameter($id, $default = null)
    {
        if ($this->container->hasParameter($id)) {
            return $this->container->getParameter($id);
        }

        return $default;
    }
507280
public function findByIds(array $ids)
    {
        $entities = [];

        for ($i = 0; $i < count($this->registries); $i++) {
            /** @var RegistryInterface $registry */
            $registry = $this->registries[ $i ];
            $found = $registry->findByKeys($ids);
            $entities = array_merge($entities, $found);

            $this->updateRegistries($found, $i - 1);

            if (count($entities) === count($ids)) {
                break;
            }
        }

        return $entities;
    }
974910
public static function deleteByIds($ids, array $params = [])
    {
        if (!is_array($ids)) {
            $ids = explode(",", $ids);
        }

        $m = new static;
        $pk = $m->getPrimaryKey();
        $records = [];
        foreach ($ids as $id) {
            $records[] = [$pk => $id];
        }

        return static::bulkDelete($records, $params);
    }
411733
public function several(array $ids)
    {
        $results = [];

        foreach ($ids as $cacheId) {
            if ($this->cache->test($cacheId)) {
                $results[$cacheId] = $this->cache->load($cacheId);
            }

        }

        return $results;
    }
815753
public function findActionsForIds(array $ids)
    {
        if (empty($ids)) {
            return array();
        }

        $datas = $this->client->hmget($this->getActionKey(), $ids);

        return array_values(
            array_map(
                function ($v) {
                    return unserialize($v);
                },
                $datas
            )
        );
    }
784461
public function getByIds(array $ids, $orderStrict = false)
    {
        $nodes = $this->om->findByIds(
            'Claroline\CoreBundle\Entity\Resource\ResourceNode',
            $ids,
            $orderStrict
        );

        return $nodes;
    }