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
Constants
- RUNTIME_DIR_FALLBACK = 'php-xdg-runtime-dir-fallback-'
- S_IFDIR = 040000
- S_IRWXG = 056
- S_IRWXO = 07
Methods
- 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
stringgetHomeConfigDir()
public
getHomeConfigDir() : string
Return values
stringgetHomeDataDir()
public
getHomeDataDir() : string
Return values
stringgetHomeDir()
public
getHomeDir() : string
Return values
stringgetRuntimeDir()
public
getRuntimeDir([mixed $strict = true ]) : mixed
Parameters
- $strict : mixed = true
getUid()
private
getUid() : mixed