PHP_UML
[ class tree: PHP_UML ] [ index: PHP_UML ] [ all elements ]

Class: PHP_UML_FilePatternFilterIterator

Source Location: /PHP_UML-1.6.2/UML/FilePatternFilterIterator.php

Class Overview

RecursiveFilterIterator
   |
   --PHP_UML_FilePatternFilterIterator

Specialized iterator for the filesystem scan.


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: RecursiveFilterIterator (Internal Class)

constructor __construct ( $iterator )
accept ( )
current ( )
getChildren ( )
getInnerIterator ( )
hasChildren ( )
key ( )
next ( )
rewind ( )
valid ( )

Class Details

[line 30]
Specialized iterator for the filesystem scan.

It can accept/stop the recursive scan, according to allow/ignore file patterns



[ Top ]


Class Variables

$allowed =

[line 33]

  • Access: protected

Type:   mixed


[ Top ]

$ignored =

[line 32]

  • Access: protected

Type:   mixed


[ Top ]



Method Detail

__construct (Constructor)   [line 42]

PHP_UML_FilePatternFilterIterator __construct( Iterator $iterator, array $ignored, array $allowed)

Constructor
  • Access: public

Overrides RecursiveFilterIterator::constructor __construct ( $iterator ) (parent method not documented)

Parameters:

Iterator   $iterator   —  Iterator object
array   $ignored   —  Ignore pattern(s)
array   $allowed   —  Match pattern(s)

[ Top ]

accept   [line 56]

boolean accept( )

Filter files and folders.

If the element is a file or a folder, it must not be among the ingored elts. If it a file, it must match the file patterns.

  • Return: True if the element is acceptable
  • Access: public

Overrides RecursiveFilterIterator::accept ( ) (parent method not documented)
[ Top ]

getChildren   [line 91]

PHP_UML_FilterIterator getChildren( )

We must override that method to pass the ignored/allowed arrays
  • Access: public

Overrides RecursiveFilterIterator::getChildren ( ) (parent method not documented)
[ Top ]


Documentation generated on Mon, 11 Mar 2019 16:01:23 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.