PhiO: Object-oriented filesystem library for PHP
  • Namespace
  • Class
  • Tree
  • Todo

Namespaces

  • amekusa
    • phio
  • PHP

Classes

  • Directory
  • File
  • FilePool
  • Filter
  • Perms
  • RegexFilter
  • RegFile

Exceptions

  • ErrorException
  • IOException

Class Directory

Directory abstraction

amekusa\phio\File
Extended by amekusa\phio\Directory implements IteratorAggregate
Namespace: amekusa\phio
Author: amekusa post@amekusa.com
Located at Directory.php

Methods summary

public
# getIterator( )

Implementation of

IteratorAggregate::getIterator()
public
# getFiles( )
public amekusa\phio\Directory
# setFilters( array $Filters )

Parameters

$Filters

Returns

amekusa\phio\Directory
This
public amekusa\phio\Directory
# addFilter( string|amekusa\phio\Filter $Filter )

Parameters

$Filter

Returns

amekusa\phio\Directory
The object itself
public amekusa\phio\Directory
# addRegexFilter( string $Pattern )

Adds a regular expression filter

Adds a regular expression filter

The operation is the same as:

$this->addFilter(new RegexFilter($Pattern));

Parameters

$Pattern
Regular expression

Returns

amekusa\phio\Directory
The object itself

Methods inherited from amekusa\phio\File

__construct(), __toString(), beExclusive(), close(), create(), exists(), getName(), getPath(), getPerms(), instance(), isExclusive(), isOpened(), modifiedAt(), moveTo(), open(), remove()

PhiO: Object-oriented filesystem library for PHP API documentation generated by ApiGen