Definition at line 30 of file Class.Dcp_Utils_WStart.php.
__construct |
( |
|
$contextRoot | ) |
|
Compute absolute path from context's root
- If the file is relative, then the absolute path is computed relative to the context's root.
- If the file is already in a absolute form, then their current absolute form is used.
- Parameters
-
- Returns
- string
Definition at line 286 of file Class.Dcp_Utils_WStart.php.
Scan given directory and delete dead symlinks (i.e. symlinks pointing to non-existing files)
- Parameters
-
- Exceptions
-
Definition at line 70 of file Class.Dcp_Utils_WStart.php.
Returns surdirs containing a specific subdir
- Parameters
-
- Returns
- string[] list of dir/subdir relative to contextRoot
Definition at line 202 of file Class.Dcp_Utils_WStart.php.
linkFiles |
( |
|
$sourceDir, |
|
|
|
$destDir, |
|
|
& |
$linked = array() |
|
) |
| |
Link files from source dir to destination dir.
- Parameters
-
string | $sourceDir | Source dir from which files are to be linked |
string | $destDir | Destination dir to which the symlinks will be created |
array | $linked | List of conflicting/duplicates files (i.e. source files with the same name) |
- Exceptions
-
Definition at line 109 of file Class.Dcp_Utils_WStart.php.
Compute relative path from context's root
- If the file is already in a relative form, then their current relative form is used.
- If the file is absolute and located under the context'root, then the relative path from the context's root is used.
- If the file is absolute and located outside the context's root, then an exception is thrown.
- Parameters
-
- Returns
- string
- Exceptions
-
Definition at line 305 of file Class.Dcp_Utils_WStart.php.
removeFilesByRegex |
( |
|
$dir, |
|
|
|
$regex |
|
) |
| |
|
protected |
Remove files matching the specified regex in the given directory
- Parameters
-
- Exceptions
-
Definition at line 171 of file Class.Dcp_Utils_WStart.php.
sedFile |
( |
|
$file, |
|
|
|
$callback |
|
) |
| |
setContextRoot |
( |
|
$contextRoot | ) |
|
|
protected |
The documentation for this class was generated from the following file: