function apachesolr_multilingual_zipfile::file in Apache Solr Multilingual 6.2
Same name and namespace in other branches
- 6 lib/apachesolr_multilingual_zipfile.php \apachesolr_multilingual_zipfile::file()
Dumps out file
@access public
Return value
string the zipped file
1 call to apachesolr_multilingual_zipfile::file()
- apachesolr_multilingual_zipfile::output in lib/
apachesolr_multilingual_zipfile.php - A Wrapper of original file Function
File
- lib/
apachesolr_multilingual_zipfile.php, line 239 - Zip file creation class to pack Apache Solr Multilingual configuration fioles.
Class
- apachesolr_multilingual_zipfile
- Zip file creation class. Makes zip files.
Code
function file() {
$data = implode('', $this->datasec);
$ctrldir = implode('', $this->ctrl_dir);
return $data . $ctrldir . $this->eof_ctrl_dir . pack('v', sizeof($this->ctrl_dir)) . pack('v', sizeof($this->ctrl_dir)) . pack('V', strlen($ctrldir)) . pack('V', strlen($data)) . "\0\0";
// .zip file comment length
}