MatthiasMullie\Scrapbook\Adapters\MemoryStore::getMulti PHP Method

getMulti() public method

public getMulti ( array $keys, array &$tokens = null )
$keys array
$tokens array
    public function getMulti(array $keys, array &$tokens = null)
    {
        $items = array();
        $tokens = array();
        foreach ($keys as $key) {
            if (!$this->exists($key)) {
                // omit missing keys from return array
                continue;
            }
            $items[$key] = $this->get($key, $token);
            $tokens[$key] = $token;
        }
        return $items;
    }