Elgg  Version 1.11
Public Member Functions | Static Public Member Functions | List of all members
Elgg\Filesystem\GaufretteDirectory Class Reference

A wrapper around Gaufrette that implements Elgg's filesystem API. More...

Inheritance diagram for Elgg\Filesystem\GaufretteDirectory:
Elgg\Filesystem\Directory

Public Member Functions

 chroot ($path)
 
 isFile ($path)
 
 getContents ($path)
 
 getFile ($path)
 
 getFiles ($path= '')
 
 includeFile ($path)
 
 putContents ($path, $content)
 

Static Public Member Functions

static createLocal ($path)
 Shorthand for generating a new local filesystem. More...
 
static createInMemory ()
 Shorthand for generating a new in-memory-only filesystem. More...
 

Detailed Description

A wrapper around Gaufrette that implements Elgg's filesystem API.

Since
1.10.0

private

Definition at line 16 of file GaufretteDirectory.php.

Member Function Documentation

Elgg\Filesystem\GaufretteDirectory::chroot (   $path)

Implements Elgg\Filesystem\Directory.

Definition at line 41 of file GaufretteDirectory.php.

static Elgg\Filesystem\GaufretteDirectory::createInMemory ( )
static

Shorthand for generating a new in-memory-only filesystem.

Returns
Filesystem

Definition at line 152 of file GaufretteDirectory.php.

static Elgg\Filesystem\GaufretteDirectory::createLocal (   $path)
static

Shorthand for generating a new local filesystem.

Parameters
string$pathabsolute path to directory on local filesystem.
Returns
Filesystem

Definition at line 143 of file GaufretteDirectory.php.

Elgg\Filesystem\GaufretteDirectory::getContents (   $path)

Implements Elgg\Filesystem\Directory.

Definition at line 64 of file GaufretteDirectory.php.

Elgg\Filesystem\GaufretteDirectory::getFile (   $path)

Implements Elgg\Filesystem\Directory.

Definition at line 73 of file GaufretteDirectory.php.

Elgg\Filesystem\GaufretteDirectory::getFiles (   $path = '')

Implements Elgg\Filesystem\Directory.

Definition at line 82 of file GaufretteDirectory.php.

Elgg\Filesystem\GaufretteDirectory::includeFile (   $path)

Implements Elgg\Filesystem\Directory.

Definition at line 116 of file GaufretteDirectory.php.

Elgg\Filesystem\GaufretteDirectory::isFile (   $path)

Implements Elgg\Filesystem\Directory.

Definition at line 58 of file GaufretteDirectory.php.

Elgg\Filesystem\GaufretteDirectory::putContents (   $path,
  $content 
)

Implements Elgg\Filesystem\Directory.

Definition at line 132 of file GaufretteDirectory.php.


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