Xdg
in package
Simple implementation of the XDG standard http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
Based on the python implementation https://github.com/takluyver/pyxdg/blob/master/xdg/BaseDirectory.py
Table of Contents
- RUNTIME_DIR_FALLBACK = 'php-xdg-runtime-dir-fallback-'
- S_IFDIR = 040000
- S_IRWXG = 056
- S_IRWXO = 07
- getConfigDirs() : array<string|int, mixed>
- getDataDirs() : array<string|int, mixed>
- getHomeCacheDir() : string
- getHomeConfigDir() : string
- getHomeDataDir() : string
- getHomeDir() : string
- getRuntimeDir() : mixed
- getUid() : mixed
Constants
RUNTIME_DIR_FALLBACK
public
mixed
RUNTIME_DIR_FALLBACK
= 'php-xdg-runtime-dir-fallback-'
S_IFDIR
public
mixed
S_IFDIR
= 040000
S_IRWXG
public
mixed
S_IRWXG
= 056
S_IRWXO
public
mixed
S_IRWXO
= 07
Methods
getConfigDirs()
public
getConfigDirs() : array<string|int, mixed>
Return values
array<string|int, mixed> —getDataDirs()
public
getDataDirs() : array<string|int, mixed>
Return values
array<string|int, mixed> —getHomeCacheDir()
public
getHomeCacheDir() : string
Return values
string —getHomeConfigDir()
public
getHomeConfigDir() : string
Return values
string —getHomeDataDir()
public
getHomeDataDir() : string
Return values
string —getHomeDir()
public
getHomeDir() : string
Return values
string —getRuntimeDir()
public
getRuntimeDir([mixed $strict = true ]) : mixed
Parameters
- $strict : mixed = true
Return values
mixed —getUid()
private
getUid() : mixed