OpenDocument
[ class tree: OpenDocument ] [ index: OpenDocument ] [ all elements ]

Class: OpenDocument_Manifest

Source Location: /OpenDocument-0.2.1/OpenDocument/Manifest.php

Class Overview


OpenDocument manifest file for ZIPs.


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 27]
OpenDocument manifest file for ZIPs.


[ Top ]


Class Variables

$dom =  null

[line 34]

DOM document containing the manifest
  • Access: protected

Type:   DOMDocument


[ Top ]

$fileroot =  null

[line 41]

Root node to add file entries to
  • Access: protected

Type:   DOMElement


[ Top ]



Method Detail

__construct (Constructor)   [line 48]

OpenDocument_Manifest __construct( )

Create a new instance
  • Access: public

[ Top ]

addFile   [line 82]

void addFile( string $file, string $mimetype)

Add a file to the manifest
  • Access: public

Parameters:

string   $file   —  Relative file path
string   $mimetype   —  MIME type of the file

[ Top ]

addMimeType   [line 110]

void addMimeType( string $mimetype)

Add mime type entry to manifest
  • Access: public

Parameters:

string   $mimetype   —  MIME type of the file

[ Top ]

prepareDom   [line 60]

void prepareDom( )

Prepares the DOM document used internally
  • Access: protected

[ Top ]

__toString   [line 141]

string __toString( )

Returns the full XML representation of the manifest
  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:51:01 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.