Lines Matching refs:archive
123 $archive = $this->createZipArchive($tmpArchiveFN);
125 $this->addDirToArchive($archive, '.', false);
126 $this->addDirToArchive($archive, 'inc');
127 $this->addDirToArchive($archive, 'bin');
128 $this->addDirToArchive($archive, 'vendor');
129 …$this->addDirToArchive($archive, 'conf', true, '^' . $this->base . 'conf/(users\.auth\.php|acl\.au…
130 $this->addUsersAuthToArchive($archive);
131 $this->addACLToArchive($archive);
132 $this->addDirToArchive($archive, 'lib', true, '^' . $this->base . 'lib/plugins$');
133 $this->addDirToArchive($archive, 'lib/plugins', true, $this->buildSkipPluginRegex());
134 $this->addDirToArchive($archive, 'data/pages');
135 $this->addDirToArchive($archive, 'data/meta', true, '\.changes(\.trimmed)?$');
136 $this->addDirToArchive($archive, 'data/media');
137 $this->addDirToArchive($archive, 'data/media_meta', true, '\.changes$');
138 $this->addDirToArchive($archive, 'data/index');
140 $this->addEmptyDirToArchive($archive, 'data/attic');
141 $this->addEmptyDirToArchive($archive, 'data/cache');
142 $this->addEmptyDirToArchive($archive, 'data/log');
143 $this->addEmptyDirToArchive($archive, 'data/locks');
144 $this->addEmptyDirToArchive($archive, 'data/tmp');
145 $this->addEmptyDirToArchive($archive, 'data/media_attic');
147 $archive->close();
171 $archive = $this->createZipArchive($tmpArchiveFN);
173 $this->addDirToArchive($archive, '.', false);
174 $this->addDirToArchive($archive, 'inc');
175 $this->addDirToArchive($archive, 'bin');
176 $this->addDirToArchive($archive, 'vendor');
177 …$this->addDirToArchive($archive, 'conf', true, '^' . $this->base . 'conf/(users\.auth\.php|acl\.au…
178 $this->addDirToArchive($archive, 'lib', true, '^' . $this->base . 'lib/plugins$');
179 $this->addDirToArchive($archive, 'lib/plugins', true, $this->buildSkipPluginRegex());
181 $this->addEmptyDirToArchive($archive, 'data/pages');
182 $this->addEmptyDirToArchive($archive, 'data/media');
183 $this->addEmptyDirToArchive($archive, 'data/index');
184 $this->addEmptyDirToArchive($archive, 'data/media_meta');
185 $this->addEmptyDirToArchive($archive, 'data/meta');
186 $this->addEmptyDirToArchive($archive, 'data/attic');
187 $this->addEmptyDirToArchive($archive, 'data/cache');
188 $this->addEmptyDirToArchive($archive, 'data/log');
189 $this->addEmptyDirToArchive($archive, 'data/locks');
190 $this->addEmptyDirToArchive($archive, 'data/tmp');
191 $this->addEmptyDirToArchive($archive, 'data/media_attic');
193 $archive->close();
255 * @param Zip $archive
260 protected function addEmptyDirToArchive(Zip $archive, $directory) argument
264 $archive->addData($dirPath, '');
270 * @param Zip $archive
274 protected function addUsersAuthToArchive(Zip $archive) argument
297 $archive->addData($this->base . 'conf/users.auth.php', $authFile . $adminLine);
303 * @param Zip $archive
307 protected function addACLToArchive(Zip $archive) argument
315 $archive->addData($this->base . 'conf/acl.auth.php', $aclFileContents);
337 * @param Zip $archive
344 protected function addDirToArchive(Zip $archive, $srcDir, $recursive = true, $skipRegex = null) argument
356 $this->addFilesToArchive(DOKU_INC . $srcDir, $archive, !$recursive, $skipRegex);
365 * @param Zip $archive
372 … protected function addFilesToArchive($source, Zip $archive, $filesOnly = false, $skipRegex = null) argument
382 $archive->addFile($source, $this->getDWPathName($source));
406 $copyOK = $this->addFilesToArchive($srcFN, $archive, $filesOnly, $skipRegex);