Class archive_mail_pack

Description

Main Archive Mail compressor class

Located in /plugins/archive_mail/class/archive_mail_pack.php (line 29)


	
			
Direct descendents
Variable Summary
 string $extension
 string $type0
 string $type1
Method Summary
 void addFile (string $data, string $name, [integer $time = 0])
 string file ()
 void sendheader (string $filename)
Variables
string $extension = '' (line 44)

File extension


Redefined in descendants as:
string $type0 = 'application' (line 34)

MIME type


Redefined in descendants as:
string $type1 = 'octet-stream' (line 39)

MIME subtype


Redefined in descendants as:
Methods
addFile (line 80)

Adds file to archive

Dummy function. Working backends must provide own method.

  • access: public
void addFile (string $data, string $name, [integer $time = 0])
  • string $data: file data
  • string $name: file name
  • integer $time: Unix timestamp

Redefined in descendants as:
file (line 91)

Prints archive contents

Dummy function. Working backends must provide own method.

  • access: public
string file ()

Redefined in descendants as:
sendheader (line 104)

Sends file headers.

Function provides generic method to send information about downloaded data. Backends must set $type0, $type1 and $exception correctly or provide own method. Function depends on NaSMail SendDownloadHeaders() function.

  • access: public
void sendheader (string $filename)
  • string $filename

Documentation generated on Sun, 22 Nov 2009 17:36:16 +0200 by phpDocumentor 1.4.3