protected function getUserHomeDirectory()
	{
		if ( defined('PHP_WINDOWS_VERSION_MAJOR') ) {
			if ( !getenv('APPDATA') ) {
				throw new ApplicationException('The APPDATA environment variable must be set to run correctly.');
			}

			return strtr(getenv('APPDATA'), '\\', '/');
		}

		if ( !getenv('HOME') ) {
			throw new ApplicationException('The HOME environment variable must be set to run correctly.');
		}

		return rtrim(getenv('HOME'), '/');
	}
protected function getUserHomeDirectory()
	{
		if ( defined('PHP_WINDOWS_VERSION_MAJOR') ) {
			if ( !getenv('APPDATA') ) {
				throw new ApplicationException('The APPDATA environment variable must be set to run correctly.');
			}

			return strtr(getenv('APPDATA'), '\\', '/');
		}

		if ( !getenv('HOME') ) {
			throw new ApplicationException('The HOME environment variable must be set to run correctly.');
		}

		return rtrim(getenv('HOME'), '/');
	}
protected function getUserHomeDirectory ( ) { if ( defined ( 'PHP_WINDOWS_VERSION_MAJOR' ) ) { if ( ! getenv ( 'APPDATA' ) ) { throw new ApplicationException ( 'The APPDATA environment variable must be set to run correctly.' ) ; } return strtr ( getenv ( 'APPDATA' ) , '\\' , '/' ) ; } if ( ! getenv ( 'HOME' ) ) { throw new ApplicationException ( 'The HOME environment variable must be set to run correctly.' ) ; } return rtrim ( getenv ( 'HOME' ) , '/' ) ; }
Returns path to user's home directory.

@return string
@throws ApplicationException When user's home directory can't be found.
Returns path to user s home directory .