Filesystem iterator

package filicious-core
author Christian Schiffler
author Tristan Lins
author Oliver Hoff

 Methods

__construct()

__construct(\Filicious\Internals\Pathname $pathname, $filters) 

Parameters

$pathname

$filters

(PHP 5 &gt;= 5.0.0)<br/> Return the current element

current() : \Filicious\File

(PHP 5 &gt;= 5.0.0)<br/> Return the key of the current element

key() : int
link http://php.net/manual/en/iterator.key.php

Returns

intscalar on success, or null on failure.

(PHP 5 &gt;= 5.0.0)<br/> Move forward to next element

next() : void

(PHP 5 &gt;= 5.0.0)<br/> Rewind the Iterator to the first element

rewind() : void

(PHP 5 &gt;= 5.1.0)<br/> Seeks to a position

seek(int $position) : void
link http://php.net/manual/en/seekableiterator.seek.php

Parameters

$position

int

The position to seek to.

toArray()

toArray() : array

Returns

array

(PHP 5 &gt;= 5.0.0)<br/> Checks if current position is valid

valid() : boolean
link http://php.net/manual/en/iterator.valid.php

Returns

booleanThe return value will be casted to boolean and then evaluated. Returns true on success or false on failure.

Apply bitmask filters on current file.

applyBitmaskFilters(\Filicious\File $file) : bool

Parameters

Returns

bool

Apply callable filters on current file.

applyCallableFilters(\Filicious\File $file) : bool

Parameters

Returns

bool

Apply glob filters on current file.

applyGlobFilters(\Filicious\File $file) : bool

Parameters

Returns

bool

Apply glob filters on current file.

applyGlobSearchPattern(\Filicious\File $file) : bool

Parameters

Returns

bool

currentFile()

currentFile() : \Filicious\File

Returns

evaluateFilters()

evaluateFilters($filters) 

Parameters

$filters

getFiles()

getFiles() 

getKeys()

getKeys() 

prepareFilters()

prepareFilters(\Filicious\Internals\PathnameIterator $iterator) 

Parameters

$iterator

 Properties

 

$bitmask

$bitmask : int
 

$callables

$callables : array
 

$files

$files : array
 

$filters

$filters : array
 

$globSearchPatterns

$globSearchPatterns : array
 

$globs

$globs : array
 

$index

$index : int
 

$keys

$keys : array
 

$pathname

$pathname : \Filicious\Internals\Pathname