function apachesolr_confgen_zipfile::addFiles in Apache Solr Config Generator 8
Same name and namespace in other branches
- 6 lib/apachesolr_confgen_zipfile.php \apachesolr_confgen_zipfile::addFiles()
- 7 lib/apachesolr_confgen_zipfile.php \apachesolr_confgen_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_confgen_zipfile.php, line 264 - Zip file creation class to pack Apache Solr configuration files
Class
- apachesolr_confgen_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);
}
}
}