ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Static Public Member Functions | |
static | getOS () |
This function returns the Operating System we are running on. More... | |
static | getTempDir () |
This function retrieves the path to a directory where temporary files can be saved. More... | |
static | resolvePath ($path, $base=null) |
Resolve a (possibly) relative path from the given base path. More... | |
static | writeFile ($filename, $data, $mode=0600) |
Atomically write a file. More... | |
Data Fields | |
const | WINDOWS = 1 |
const | LINUX = 2 |
const | OSX = 3 |
const | HPUX = 4 |
const | UNIX = 5 |
const | BSD = 6 |
const | IRIX = 7 |
const | SUNOS = 8 |
Static Private Member Functions | |
static | pathContainsDriveLetter ($path) |
Check if the supplied path contains a Windows-style drive letter. More... | |
Definition at line 9 of file System.php.
|
static |
This function returns the Operating System we are running on.
Definition at line 29 of file System.php.
Referenced by SimpleSAML_Utilities\isWindowsOS().
|
static |
This function retrieves the path to a directory where temporary files can be saved.
Definition at line 70 of file System.php.
References $globalConfig, and SimpleSAML_Configuration\getInstance().
Referenced by SimpleSAML\Bindings\Shib13\Artifact\extractResponse(), and SimpleSAML_Utilities\getTempDir().
|
staticprivate |
Check if the supplied path contains a Windows-style drive letter.
string | $path |
Definition at line 233 of file System.php.
References $path.
|
static |
Resolve a (possibly) relative path from the given base path.
A path which starts with a '/' is assumed to be absolute, all others are assumed to be relative. The default base path is the root of the SimpleSAMLphp installation.
string | $path | The path we should resolve. |
string | null | $base | The base path, where we should search for $path from. Default value is the root of the SimpleSAMLphp installation. |
Definition at line 118 of file System.php.
References $base, $config, $d, $path, $ret, and SimpleSAML_Configuration\getInstance().
Referenced by SimpleSAML\Utils\Config\getCertPath().
|
static |
Atomically write a file.
This is a helper function for writing data atomically to a file. It does this by writing the file data to a temporary file, then renaming it to the required file name.
string | $filename | The path to the file we want to write to. |
string | $data | The data we should write to the file. |
int | $mode | The permissions to apply to the file. Defaults to 0600. |
Definition at line 183 of file System.php.
References $data, $filename, and $res.
Referenced by SimpleSAML\Bindings\Shib13\Artifact\extractResponse(), SimpleSAML_Utilities\writeFile(), and sspmod_metarefresh_MetaLoader\writeState().
const SimpleSAML\Utils\System::BSD = 6 |
Definition at line 17 of file System.php.
const SimpleSAML\Utils\System::HPUX = 4 |
Definition at line 15 of file System.php.
const SimpleSAML\Utils\System::IRIX = 7 |
Definition at line 18 of file System.php.
const SimpleSAML\Utils\System::LINUX = 2 |
Definition at line 13 of file System.php.
const SimpleSAML\Utils\System::OSX = 3 |
Definition at line 14 of file System.php.
const SimpleSAML\Utils\System::SUNOS = 8 |
Definition at line 19 of file System.php.
const SimpleSAML\Utils\System::UNIX = 5 |
Definition at line 16 of file System.php.
const SimpleSAML\Utils\System::WINDOWS = 1 |
Definition at line 12 of file System.php.
Referenced by SimpleSAML_Utilities\isWindowsOS().