Find Elgg and project paths.
More...
Find Elgg and project paths.
Definition at line 8 of file Paths.php.
static Elgg\Project\Paths::elgg |
( |
| ) |
|
|
static |
Get the Elgg codebase path with "/".
- Returns
- string
Definition at line 44 of file Paths.php.
static Elgg\Project\Paths::project |
( |
| ) |
|
|
static |
Get the project root (where composer is installed) path with "/".
- Returns
- string
Definition at line 25 of file Paths.php.
static Elgg\Project\Paths::projectConfig |
( |
| ) |
|
|
static |
Get the project's elgg-config/ path.
- Returns
- string
Definition at line 53 of file Paths.php.
static Elgg\Project\Paths::sanitize |
( |
|
$path, |
|
|
|
$append_slash = true |
|
) |
| |
|
static |
Sanitize file paths ensuring that they begin and end with slashes etc.
- Parameters
-
string | $path | The path |
bool | $append_slash | Add trailing slash |
- Returns
- string
Definition at line 76 of file Paths.php.
static Elgg\Project\Paths::settingsFile |
( |
|
$file = self::SETTINGS_PHP | ) |
|
|
static |
Get path of the Elgg settings file.
- Parameters
-
- Returns
- string
Definition at line 64 of file Paths.php.
const Elgg\Project\Paths::PATH_TO_CONFIG = 'elgg-config' |
Path from project root to config folder.
Definition at line 18 of file Paths.php.
const Elgg\Project\Paths::SETTINGS_PHP = 'settings.php' |
Default settings filename.
Definition at line 13 of file Paths.php.
The documentation for this class was generated from the following file: