MediaWiki  REL1_20
FSFileBackendList Class Reference

Wrapper around RecursiveDirectoryIterator/DirectoryIterator that catches exception or does any custom behavoir that we may want. More...

Inheritance diagram for FSFileBackendList:

List of all members.

Public Member Functions

 __construct ($dir, array $params)
 current ()
 key ()
 next ()
 rewind ()
 valid ()

Protected Member Functions

 filterViaNext ()
 Filter out items by advancing to the next ones.
 getRelPath ($path)
 Return only the relative path and normalize slashes to FileBackend-style.
 initIterator ($dir)
 Return an appropriate iterator object to wrap.

Protected Attributes

Iterator $iter
 *
Array $params = array()
 *
 $pos = 0
 $suffixStart

Detailed Description

Wrapper around RecursiveDirectoryIterator/DirectoryIterator that catches exception or does any custom behavoir that we may want.

Do not use this class from places outside FSFileBackend.

Definition at line 848 of file FSFileBackend.php.


Constructor & Destructor Documentation

FSFileBackendList::__construct ( dir,
array $  params 
)
Parameters:
$dirstring file system directory
$paramsarray

Definition at line 858 of file FSFileBackend.php.


Member Function Documentation

See also:
Iterator::current()
Returns:
string|bool String or false

Definition at line 904 of file FSFileBackend.php.

Filter out items by advancing to the next ones.

Reimplemented in FSFileBackendFileList, and FSFileBackendDirList.

Definition at line 947 of file FSFileBackend.php.

FSFileBackendList::getRelPath ( path) [protected]

Return only the relative path and normalize slashes to FileBackend-style.

Uses the "real path" since the suffix is based upon that.

Parameters:
$pathstring
Returns:
string

Definition at line 956 of file FSFileBackend.php.

FSFileBackendList::initIterator ( dir) [protected]

Return an appropriate iterator object to wrap.

Parameters:
$dirstring file system directory
Returns:
Iterator

Definition at line 876 of file FSFileBackend.php.

See also:
Iterator::key()
Returns:
integer

Definition at line 896 of file FSFileBackend.php.

See also:
Iterator::next()
Returns:
void

Definition at line 912 of file FSFileBackend.php.

See also:
Iterator::rewind()
Returns:
void

Definition at line 926 of file FSFileBackend.php.

See also:
Iterator::valid()
Returns:
bool

Definition at line 940 of file FSFileBackend.php.


Member Data Documentation

Iterator FSFileBackendList::$iter [protected]

*

Definition at line 849 of file FSFileBackend.php.

Array FSFileBackendList::$params = array() [protected]

*

Definition at line 852 of file FSFileBackend.php.

FSFileBackendList::$pos = 0 [protected]

Definition at line 851 of file FSFileBackend.php.

FSFileBackendList::$suffixStart [protected]

Definition at line 850 of file FSFileBackend.php.


The documentation for this class was generated from the following file: