Skip to content

Instantly share code, notes, and snippets.

<?php
DirectoryIterator extends SplFileInfo implements Iterator , Traversable , SeekableIterator {
/* Methods */
public __construct ( string $path )
public DirectoryIterator current ( void )
public int getATime ( void )
public string getBasename ([ string $suffix ] )
public int getCTime ( void )
public string getExtension ( void )
public string getFilename ( void )
@komita1981
komita1981 / FilterIteratorExample.php
Created February 18, 2013 21:31
FilterIterator dummy example
<?php
class FilterExample extends FilterIterator
{
protected $number_type;
public function __construct($iterator, $number_type)
{
parent::__construct($iterator);
$this->number_type = $number_type;
}
@komita1981
komita1981 / FilterIterator.php
Last active December 13, 2015 21:58
FilterIterator Synopsis
<?php
abstract FilterIterator extends IteratorIterator implements OuterIterator , Traversable , Iterator {
/* Methods */
abstract bool accept ( void )
__construct ( Iterator $iterator )
mixed current ( void )
Iterator getInnerIterator ( void )
mixed key ( void )
void next ( void )
void rewind ( void )