Elgg  Version 2.3
Static Public Member Functions | List of all members
Elgg\Filesystem\Directory\Local Class Reference

Namespace for generating local filesystems. More...

Static Public Member Functions

static fromPath ($path)
 Shorthand for generating a new local filesystem. More...
 
static root ()
 Returns a directory that points to the root composer install. More...
 

Detailed Description

Namespace for generating local filesystems.

Since
1.10.0

private

Definition at line 13 of file Local.php.

Member Function Documentation

static Elgg\Filesystem\Directory\Local::fromPath (   $path)
static

Shorthand for generating a new local filesystem.

Parameters
string$pathAbsolute path to directory on local filesystem.
Returns
Directory

Definition at line 22 of file Local.php.

static Elgg\Filesystem\Directory\Local::root ( )
static

Returns a directory that points to the root composer install.

Note: This is not the same as the Elgg root! In the Elgg 1.x series, Elgg was always at the install root, but as of 2.0, Elgg can be installed as a composer dependency, so you cannot assume that it is at the root anymore.

Returns
Directory

Definition at line 35 of file Local.php.


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