| Línea 59... |
Línea 59... |
| 59 |
* @param file_progress $progress Progress indicator callback or null if not required
|
59 |
* @param file_progress $progress Progress indicator callback or null if not required
|
| 60 |
* @return stored_file|bool false if error stored_file instance if ok
|
60 |
* @return stored_file|bool false if error stored_file instance if ok
|
| 61 |
*/
|
61 |
*/
|
| 62 |
abstract public function archive_to_storage(array $files, $contextid,
|
62 |
abstract public function archive_to_storage(array $files, $contextid,
|
| 63 |
$component, $filearea, $itemid, $filepath, $filename,
|
63 |
$component, $filearea, $itemid, $filepath, $filename,
|
| 64 |
$userid = NULL, $ignoreinvalidfiles=true, file_progress $progress = null);
|
64 |
$userid = NULL, $ignoreinvalidfiles=true, ?file_progress $progress = null);
|
| Línea 65... |
Línea 65... |
| 65 |
|
65 |
|
| 66 |
/**
|
66 |
/**
|
| 67 |
* Archive files and store the result in os file.
|
67 |
* Archive files and store the result in os file.
|
| 68 |
*
|
68 |
*
|
| Línea 83... |
Línea 83... |
| 83 |
* @param bool $ignoreinvalidfiles true means ignore missing or invalid files, false means abort on any error
|
83 |
* @param bool $ignoreinvalidfiles true means ignore missing or invalid files, false means abort on any error
|
| 84 |
* @param file_progress $progress Progress indicator callback or null if not required
|
84 |
* @param file_progress $progress Progress indicator callback or null if not required
|
| 85 |
* @return bool true if file created, false if not
|
85 |
* @return bool true if file created, false if not
|
| 86 |
*/
|
86 |
*/
|
| 87 |
abstract public function archive_to_pathname(array $files, $archivefile,
|
87 |
abstract public function archive_to_pathname(array $files, $archivefile,
|
| 88 |
$ignoreinvalidfiles=true, file_progress $progress = null);
|
88 |
$ignoreinvalidfiles=true, ?file_progress $progress = null);
|
| Línea 89... |
Línea 89... |
| 89 |
|
89 |
|
| 90 |
/**
|
90 |
/**
|
| 91 |
* Extract file to given file path (real OS filesystem), existing files are overwritten.
|
91 |
* Extract file to given file path (real OS filesystem), existing files are overwritten.
|
| 92 |
*
|
92 |
*
|
| Línea 97... |
Línea 97... |
| 97 |
* @param bool $returnbool Whether to return a basic true/false indicating error state, or full per-file error
|
97 |
* @param bool $returnbool Whether to return a basic true/false indicating error state, or full per-file error
|
| 98 |
* details.
|
98 |
* details.
|
| 99 |
* @return array|bool list of processed files; false if error
|
99 |
* @return array|bool list of processed files; false if error
|
| 100 |
*/
|
100 |
*/
|
| 101 |
abstract public function extract_to_pathname($archivefile, $pathname,
|
101 |
abstract public function extract_to_pathname($archivefile, $pathname,
|
| 102 |
array $onlyfiles = NULL, file_progress $progress = null, $returnbool = false);
|
102 |
?array $onlyfiles = NULL, ?file_progress $progress = null, $returnbool = false);
|
| Línea 103... |
Línea 103... |
| 103 |
|
103 |
|
| 104 |
/**
|
104 |
/**
|
| 105 |
* Extract file to given file path (real OS filesystem), existing files are overwritten.
|
105 |
* Extract file to given file path (real OS filesystem), existing files are overwritten.
|
| 106 |
*
|
106 |
*
|
| Línea 114... |
Línea 114... |
| 114 |
* @param file_progress $progress Progress indicator callback or null if not required
|
114 |
* @param file_progress $progress Progress indicator callback or null if not required
|
| 115 |
* @return array|bool list of processed files; false if error
|
115 |
* @return array|bool list of processed files; false if error
|
| 116 |
*/
|
116 |
*/
|
| 117 |
abstract public function extract_to_storage($archivefile, $contextid,
|
117 |
abstract public function extract_to_storage($archivefile, $contextid,
|
| 118 |
$component, $filearea, $itemid, $pathbase, $userid = NULL,
|
118 |
$component, $filearea, $itemid, $pathbase, $userid = NULL,
|
| 119 |
file_progress $progress = null);
|
119 |
?file_progress $progress = null);
|
| Línea 120... |
Línea 120... |
| 120 |
|
120 |
|
| 121 |
/**
|
121 |
/**
|
| 122 |
* Returns array of info about all files in archive.
|
122 |
* Returns array of info about all files in archive.
|
| 123 |
*
|
123 |
*
|