function apachesolr_confgen_zipfile::addFiles in Apache Solr Config Generator 7
Same name and namespace in other branches
- 8 lib/apachesolr_confgen_zipfile.php \apachesolr_confgen_zipfile::addFiles()
- 6 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);
}
}
}