MatthiasMullie\Scrapbook\Adapters\Apc::APCuIterator PHP Method

APCuIterator() protected method

protected APCuIterator ( string | string[] | null $search = null, integer $format = null, integer $chunk_size = null, integer $list = null ) : APCIterato\APCIterator | APCuIterato\APCuIterator
$search string | string[] | null
$format integer
$chunk_size integer
$list integer
return APCIterato\APCIterator | APCuIterato\APCuIterator
    protected function APCuIterator($search = null, $format = null, $chunk_size = null, $list = null)
    {
        $arguments = func_get_args();
        if (class_exists('APCuIterator', false)) {
            // I can't set the defaults parameter values because the APC_ or
            // APCU_ constants may not exist, so I'll just initialize from
            // func_get_args, not passing those params that haven't been set
            $reflect = new \ReflectionClass('APCuIterator');
            return $reflect->newInstanceArgs($arguments);
        } else {
            array_unshift($arguments, 'user');
            $reflect = new \ReflectionClass('APCIterator');
            return $reflect->newInstanceArgs($arguments);
        }
    }