Back to index

php5  5.3.10
Public Member Functions | Protected Member Functions
NoCvsDirectory Class Reference
Inheritance diagram for NoCvsDirectory:
Inheritance graph
[legend]
Collaboration diagram for NoCvsDirectory:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 __construct ($path)
 accept ()
 Accept function to decide whether an element of the inner iterator should be accessible through the Filteriterator.
 getChildren ()
 hasChildren ()
 rewind ()
 Rewind the inner iterator.
 next ()
 Move to next element.
 valid ()
 key ()
 current ()
 getInnerIterator ()
 __call ($func, $params)
 Aggregate the inner iterator.

Protected Member Functions

 fetch ()
 Fetch next element and store it.
 __clone ()
 hidden __clone

Detailed Description

Definition at line 30 of file nocvsdir.php.


Constructor & Destructor Documentation

Definition at line 32 of file nocvsdir.php.


Member Function Documentation

FilterIterator::__call ( func,
params 
) [inherited]

Aggregate the inner iterator.

Parameters:
funcName of method to invoke
paramsArray of parameters to pass to method

Reimplemented in SearchIterator.

Definition at line 121 of file filteriterator.inc.

       {
              return call_user_func_array(array($this->it, $func), $params);
       }
FilterIterator::__clone ( ) [protected, inherited]

hidden __clone

Reimplemented in KeyFilter.

Definition at line 104 of file filteriterator.inc.

                                    {
              // disallow clone 
       }

Accept function to decide whether an element of the inner iterator should be accessible through the Filteriterator.

Returns:
whether or not to expose the current element of the inner iterator.

Reimplemented from FilterIterator.

Definition at line 37 of file nocvsdir.php.

       {
              return $this->getInnerIterator()->getFilename() != 'CVS';
       }
FilterIterator::current ( ) [inherited]
Returns:
The current value

Implements Iterator.

Reimplemented in RegexIterator, CallbackFilterIterator, and IniGroups.

Definition at line 97 of file filteriterator.inc.

                          {
              return $this->it->current();
       }

Here is the caller graph for this function:

FilterIterator::fetch ( ) [protected, inherited]

Fetch next element and store it.

Returns:
void

Definition at line 61 of file filteriterator.inc.

                                  {
              while ($this->it->valid()) {
                     if ($this->accept()) {
                            return;
                     }
                     $this->it->next();
              };
       }

Here is the call graph for this function:

Here is the caller graph for this function:

Returns:
an iterator for the current elements children
Note:
the returned iterator will be of the same class as $this

Reimplemented from RecursiveFilterIterator.

Definition at line 42 of file nocvsdir.php.

       {
              return new NoCvsDirectory($this->key());
       }
Returns:
The inner iterator

Implements OuterIterator.

Definition at line 111 of file filteriterator.inc.

       {
              return $this->it;
       }

Here is the caller graph for this function:

Returns:
whether the current element has children

Implements RecursiveIterator.

Definition at line 41 of file recursivefilteriterator.inc.

       {
              return $this->getInnerIterator()->hasChildren();
       }

Here is the call graph for this function:

FilterIterator::key ( ) [inherited]
Returns:
The current key

Implements Iterator.

Reimplemented in RegexIterator, CallbackFilterIterator, IniGroups, and DirectoryFilterDots.

Definition at line 90 of file filteriterator.inc.

                      {
              return $this->it->key();
       }

Here is the caller graph for this function:

FilterIterator::next ( ) [inherited]

Move to next element.

Returns:
void

Implements Iterator.

Reimplemented in SearchIterator.

Definition at line 75 of file filteriterator.inc.

                       {
              $this->it->next();
              $this->fetch();
       }

Here is the call graph for this function:

FilterIterator::rewind ( ) [inherited]

Rewind the inner iterator.

Implements Iterator.

Reimplemented in SearchIterator.

Definition at line 42 of file filteriterator.inc.

                         {  
              $this->it->rewind();
              $this->fetch();
       }

Here is the call graph for this function:

FilterIterator::valid ( ) [inherited]
Returns:
Whether more elements are available

Implements Iterator.

Reimplemented in SearchIterator.

Definition at line 83 of file filteriterator.inc.

                        {
              return $this->it->valid();
       }

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