function apachesolr_multilingual_zipfile::addFiles in Apache Solr Multilingual 6
Same name and namespace in other branches
- 6.2 lib/apachesolr_multilingual_zipfile.php \apachesolr_multilingual_zipfile::addFiles()
A Wrapper of original addFile Function
Created By Hasin Hayder at 29th Jan, 1:29 AM
@access public
Parameters
array An Array of files with relative/absolute path to be added in Zip File:
File
- lib/
apachesolr_multilingual_zipfile.php, line 264 - Zip file creation class to pack Apache Solr Multilingual configuration fioles.
Class
- apachesolr_multilingual_zipfile
- Zip file creation class. Makes zip files.
Code
function addFiles($files) {
foreach ($files as $file) {
if (is_file($file)) {
//directory check
$data = implode('', file($file));
$this
->addFile($data, $file);
}
}
}