You are here

function apachesolr_confgen_zipfile::file in Apache Solr Config Generator 6

Same name and namespace in other branches
  1. 8 lib/apachesolr_confgen_zipfile.php \apachesolr_confgen_zipfile::file()
  2. 7 lib/apachesolr_confgen_zipfile.php \apachesolr_confgen_zipfile::file()

Dumps out file

@access public

Return value

string the zipped file

1 call to apachesolr_confgen_zipfile::file()
apachesolr_confgen_zipfile::output in lib/apachesolr_confgen_zipfile.php
A Wrapper of original file Function

File

lib/apachesolr_confgen_zipfile.php, line 239
Zip file creation class to pack Apache Solr configuration files

Class

apachesolr_confgen_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
}