◆ delDir()
static ilUpdateUtilsMailMigration::delDir |
( |
|
$a_dir | ) |
|
|
static |
◆ getDataDir()
static ilUpdateUtilsMailMigration::getDataDir |
( |
| ) |
|
|
static |
◆ getDir()
static ilUpdateUtilsMailMigration::getDir |
( |
|
$a_dir | ) |
|
|
static |
Definition at line 156 of file class.ilUpdateUtilsMailMigration.php.
References $files, and $size.
158 $current_dir = opendir($a_dir);
162 while ($entry = readdir($current_dir)) {
163 if (is_dir($a_dir .
"/" . $entry)) {
164 $dirs[$entry] = array(
"type" =>
"dir",
"entry" => $entry);
166 if ($entry !=
"." && $entry !=
"..") {
167 $size = filesize($a_dir .
"/" . $entry);
168 $files[$entry] = array(
"type" =>
"file",
"entry" => $entry,
176 return array_merge($dirs,
$files);
◆ getWebspaceDir()
static ilUpdateUtilsMailMigration::getWebspaceDir |
( |
|
$mode = "filesystem" | ) |
|
|
static |
◆ ilTempnam()
static ilUpdateUtilsMailMigration::ilTempnam |
( |
| ) |
|
|
static |
Definition at line 179 of file class.ilUpdateUtilsMailMigration.php.
181 $temp_path = self::getDataDir() .
"/temp";
182 if (!is_dir($temp_path)) {
183 self::makeDir($temp_path);
185 $temp_name = tempnam($temp_path,
"tmp");
191 $temp_name = str_replace(
"\\",
"/", $temp_name);
◆ makeDir()
static ilUpdateUtilsMailMigration::makeDir |
( |
|
$a_dir | ) |
|
|
static |
Definition at line 58 of file class.ilUpdateUtilsMailMigration.php.
References $path.
60 $a_dir = trim($a_dir);
63 if (substr($a_dir, -1) ==
"/") {
64 $a_dir = substr($a_dir, 0, -1);
68 if (!(
$path = substr($a_dir, 0, strrpos($a_dir,
"/") - strlen($a_dir)))) {
74 return @mkdir($a_dir, fileperms(
$path));
◆ makeDirParents()
static ilUpdateUtilsMailMigration::makeDirParents |
( |
|
$a_dir | ) |
|
|
static |
Definition at line 77 of file class.ilUpdateUtilsMailMigration.php.
References $key, and Monolog\Handler\error_log().
Referenced by ilFileSystemStorageMailMigration\create().
79 $dirs = array($a_dir);
80 $a_dir = dirname($a_dir);
82 while ($last_dirname != $a_dir) {
83 array_unshift($dirs, $a_dir);
84 $last_dirname = $a_dir;
85 $a_dir = dirname($a_dir);
89 $reverse_paths = array_reverse($dirs,
true);
91 foreach ($reverse_paths as
$key => $value) {
92 if ($found_index == -1) {
100 foreach ($dirs as $dirindex => $dir) {
102 if ($dirindex >= $found_index) {
103 if (!file_exists($dir)) {
104 if (strcmp(substr($dir, strlen($dir) - 1, 1),
"/") == 0) {
107 $dir = substr($dir, 0, strlen($dir) - 1);
109 if (!mkdir($dir, $umask)) {
113 } elseif (!is_dir($dir)) {
118 $umask = fileperms($dir);
◆ removeTrailingPathSeparators()
static ilUpdateUtilsMailMigration::removeTrailingPathSeparators |
( |
|
$path | ) |
|
|
static |
◆ rename()
static ilUpdateUtilsMailMigration::rename |
( |
|
$source, |
|
|
|
$target |
|
) |
| |
|
static |
The documentation for this class was generated from the following file: