Elgg\Application::elggDir PHP Method

elggDir() public static method

Returns a directory that points to the root of Elgg, but not necessarily the install root. See self::root() for that.
public static elggDir ( ) : Elgg\Filesystem\Directory
return Elgg\Filesystem\Directory
    public static function elggDir()
    {
        return Directory\Local::fromPath(realpath(__DIR__ . '/../../..'));
    }

Usage Example

Example #1
0
/**
 * @access private
 */
function _elgg_config_test($hook, $type, $tests)
{
    $tests[] = \Elgg\Application::elggDir()->getPath("engine/tests/ElggCoreConfigTest.php");
    return $tests;
}
All Usage Examples Of Elgg\Application::elggDir