Class

eZDFSFileHandlerDFSBackendFilterIterator

class eZDFSFileHandlerDFSBackendFilterIterator extends FilterIterator

A filter iterator used by eZDFSFileHandlerDFSBackend.

It filters directories out, and converts the current() return value to a relative path to the file.

Methods

__construct(Iterator $iterator, $prefix)

accept()

Filters directories out

string current()

Transforms the SplFileInfo in a simple relative path

Details

at line 21
public __construct(Iterator $iterator, $prefix)

Parameters

Iterator $iterator
$prefix

at line 30
public accept()

Filters directories out

at line 40
public string current()

Transforms the SplFileInfo in a simple relative path

Return Value

string The relative path to the current file