Elgg\Application::elggDir PHP 메소드

elggDir() 공개 정적인 메소드

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
리턴 Elgg\Filesystem\Directory
    public static function elggDir()
    {
        return Directory\Local::fromPath(realpath(__DIR__ . '/../../..'));
    }

Usage Example

예제 #1
0
파일: configuration.php 프로젝트: elgg/elgg
/**
 * @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