lib/ezfile/classes/ezdir.php
File containing the eZDir class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Package
- lib
- Version
- 4.6.0
\eZDir
Package: lib
File containing the eZDir class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Version
- 4.6.0
Constants
Methods


cleanPath(
$path, $toType
=
self::SEPARATOR_UNIX
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$path | ||
$toType |


convertSeparators(
$path, $toType
=
self::SEPARATOR_UNIX
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$path | ||
$toType |


copy(
$sourceDirectory, $destinationDirectory, $asChild
=
true, $recursive
=
true, $includeHidden
=
false, $excludeItems
=
false
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$sourceDirectory | ||
$destinationDirectory | ||
$asChild | ||
$recursive | ||
$includeHidden | ||
$excludeItems |


createMultiLevelPath(
$key, $maxDepth
=
-1
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$key | ||
$maxDepth |


doMkdir(
$dir, $perm, $recursive
=
false
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$dir | ||
$perm | ||
$recursive |


filenamePath(
$filename, $maxCharLen
=
2
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$filename | ||
$maxCharLen |


findSubdirs(
$dir, $includeHidden
=
false, $excludeItems
=
false
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$dir | ||
$includeHidden | ||
$excludeItems |


findSubitems(
$dir, $types
=
false, $fullPath
=
false, $includeHidden
=
false, $excludeItems
=
false
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$dir | ||
$types | ||
$fullPath | ||
$includeHidden | ||
$excludeItems |


mkdir(
$dir, $perm
=
false, $recursive
=
false
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$dir | ||
$perm | ||
$recursive |


path(
$names, $includeEndSeparator
=
false, $type
=
self::SEPARATOR_UNIX
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$names | ||
$includeEndSeparator | ||
$type |


recursiveDelete(
string $dir, bool $rootCheck
=
true
)
:
bool
static
Removes a directory and all it's contents, recursively.
Parameters
Returns
Name | Type | Description |
---|---|---|
$dir | string | Directory to remove |
$rootCheck | bool | Check whether $dir is supposed to be contained in eZ Publish root directory |
Type | Description |
---|---|
bool | True if the operation succeeded, false otherwise |


recursiveFindRelative(
$baseDir, $subDir, $suffix
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$baseDir | ||
$subDir | ||
$suffix |


recursiveList(
$dir, $path, $fileList
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$dir | ||
$path | ||
$fileList |


temporaryFileRegexp(
$standalone
=
true
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$standalone |