\Whups_Mime_Viewer_zip

The Whups_Mime_Viewer_Zip class renders out the contents of ZIP files in HTML format and allows downloading of extractable files.

Copyright 2002-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.

Summary

Methods
Properties
Constants
No public methods found
No public properties found
No constants found
_render()
_renderInfo()
_whupsCallback()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

_render()

_render() : array

Return the full rendered version of the Horde_Mime_Part object.

URL parameters used by this function:

'zip_attachment' - (integer) The ZIP attachment to download.

Returns

array —

See parent::render().

_renderInfo()

_renderInfo() : array

Return the rendered inline version of the Horde_Mime_Part object.

Returns

array —

See parent::render().

_whupsCallback()

_whupsCallback(integer  $key, array  $val) : string

The function to use as a callback to _toHTML().

Parameters

integer $key

The position of the file in the zip archive.

array $val

The information array for the archived file.

Returns

string —

The content-type of the output.