eZDir Class ReferenceThe class eZDir does.
More...
List of all members.
|
Public Methods |
| eZDir () |
Static Public Methods |
| mkdir ($dir,$perm,$parents=false) |
| separator ($type) |
| convertSeparators ($path,$toType=EZ_DIR_SEPARATOR_UNIX) |
| cleanPath ($path,$toType=EZ_DIR_SEPARATOR_UNIX) |
| path ($names,$includeEndSeparator=false,$type=EZ_DIR_SEPARATOR_UNIX) |
Static Private Methods |
| doMkdir ($dir,$perm) |
Detailed Description
The class eZDir does.
Definition at line ezdir.php.
Constructor & Destructor Documentation
Member Function Documentation
eZDir::cleanPath |
( |
$ |
path, |
|
|
$ |
toType = EZ_DIR_SEPARATOR_UNIX |
|
) |
[static] |
|
|
Removes all unneeded directory separators and resolves any "."s and ".."s found in $path.
For instance: "var/../lib/ezdb" becomes "lib/ezdb", while "../site/var" will not be changed. - Note:
-
Will also convert separators
- See also:
-
convertSeparators.
Definition at line ezdir.php.
References separator().
Referenced by path(). |
eZDir::convertSeparators |
( |
$ |
path, |
|
|
$ |
toType = EZ_DIR_SEPARATOR_UNIX |
|
) |
[static] |
|
|
Converts any directory separators found in $path, in both unix and dos style, into the separator type specified by $toType and returns it.
Definition at line ezdir.php.
References separator().
Referenced by cleanPath(). |
eZDir::doMkdir |
( |
$ |
dir, |
|
|
$ |
perm |
|
) |
[static, private] |
|
eZDir::mkdir |
( |
$ |
dir, |
|
|
$ |
perm, |
|
|
$ |
parents = false |
|
) |
[static] |
|
|
Creates the directory $dir with permissions $perm. If $parents is true it will create any missing parent directories, just like 'mkdir -p'.
Definition at line ezdir.php.
References doMkdir().
Referenced by eZDebug::writeFile(). |
eZDir::path |
( |
$ |
names, |
|
|
$ |
includeEndSeparator = false, |
|
|
$ |
type = EZ_DIR_SEPARATOR_UNIX |
|
) |
[static] |
|
|
Creates a path out of all the dir and file items in the array $names with correct separators in between them. It will also remove unneeded separators. $type is used to determine the separator type, see eZDir::separator. If $includeEndSeparator is true then it will make sure that the path ends with a separator if false it make sure there are no end separator.
Definition at line ezdir.php.
References separator().
Referenced by eZImageInterface::store(). |
eZDir::separator |
( |
$ |
type |
) |
[static] |
|
|
- Returns:
-
the separator used between directories and files according to $type.
Type can be one of the following:
- EZ_DIR_SEPARATOR_LOCAL - Returns whatever is applicable for the current machine.
- EZ_DIR_SEPARATOR_UNIX - Returns a /
- EZ_DIR_SEPARATOR_DOS - Returns a \
Definition at line ezdir.php.
References eZSys::fileSeparator().
Referenced by path(). |
The documentation for this class was generated from the following file:
|