src/Support/Archive.php
/**
	 * Builds the archive contents and returns the compressed string.
	 *
	 * @return string
	 */
Builds the archive contents and returns the compressed string.
@return string
Builds the archive contents and returns the compressed string . @return string
public function build() {
		$data = implode('', $this->datasec);
		$ctrldir = implode('', $this->ctrlDir);
		return (
			$data.
			$ctrldir .
			$this->eofCtrlDir .
			pack('v', sizeof($this->ctrlDir)) .
			pack('v', sizeof($this->ctrlDir)) .
			pack('V', strlen($ctrldir)) .
			pack('V', strlen($data)) .
			"\x00\x00"
		);
	}
public function build ( ) { $ data = implode ( '' , $ this -> datasec ) ; $ ctrldir = implode ( '' , $ this -> ctrlDir ) ; return ( $ data . $ ctrldir . $ this -> eofCtrlDir . pack ( 'v' , sizeof ( $ this -> ctrlDir ) ) . pack ( 'v' , sizeof ( $ this -> ctrlDir ) ) . pack ( 'V' , strlen ( $ ctrldir ) ) . pack ( 'V' , strlen ( $ data ) ) . " \x00 \x00 " ) ; }
Builds the archive contents and returns the compressed string.
Builds the archive contents and returns the compressed string .