ManifestDocument __construct(
[string
$mimetype = ''], [string
$encoding = 'UTF-8']
)
|
|
Constructor
Parameters:
|
string |
$mimetype: |
mimetype Mime type of the archive |
|
string |
$encoding: |
encoding Encoding of the manifest file. The default is 'UTF-8'. |
API Tags:
Information Tags:
| Since: | 0.5.0 - 08. Feb. 2007 |
Redefinition of:
- AbstractDocument::__construct()
- Constructor method.
void addFileEntry(
string
$fullpath, string
$mimetype, [int
$size = -1]
)
|
|
Add a full path to the file entry list in this manifest document.
Example:
...
...
will add
<
manifest-
file-
entry manifest:
full-
path=
"test/feature.xml"
manifest:media-type="text/xml" />
to the manifest DOM document.
Parameters:
|
string |
$fullpath: |
fullpath The full path of the file that has been added. |
|
string |
$mimetype: |
mimetype The mime type of this file |
|
int |
$size: |
size The size of this file. |
API Tags:
Information Tags:
| Since: | 0.5.0 - 08. Feb. 2007 |
void getFileEntry(
$fullpath
)
|
|
Get File Entry
Parameters:
API Tags:
Information Tags:
| Since: | 0.5.0 - 08. Feb. 2007 |
API Tags:
Information Tags:
| Since: | 0.5.0 - 08. Feb. 2007 |
Returns mime type of the archive.
API Tags:
| Return: | Mime type of this archive |
| Access: | public |
Information Tags:
| Since: | 0.5.0 - 08. Feb. 2007 |
void load(
string
$filename, [int
$options = 0]
)
|
|
Loads an XML document from a file.
This method may also be called statically to load and create a DOMDocument object. The static invocation may be used when no ManifestDocument properties need to be set prior to loading.
Parameters:
|
string |
$filename: |
filename The path to the XML document. |
|
int |
$options: |
options |
API Tags:
Information Tags:
| Since: | 0.5.0 - 08. Feb. 2007 |
boolean loadXML(
string
$source, [
$options = 0]
)
|
|
Loads an XML document from a string.
This method may also be called statically to load and create a ManifestDocument object. The static invocation may be used when no ManifestDocument properties need to be set prior to loading.
Parameters:
|
string |
$source: |
source The string containing the XML. |
|
|
$options: |
|
API Tags:
Information Tags:
| Since: | 0.5.0 - 08. Feb. 2007 |
void removeFileEntry(
string
$fullpath
)
|
|
Remove a full path from this manifest document.
Parameters:
|
string |
$fullpath: |
fullpath File to remove (given as a full path). |
API Tags:
Information Tags:
| Since: | 0.5.0 - 08. Feb. 2007 |
void renameFileEntry(
string
$fullpath, string
$newfullpath
)
|
|
Rename a file name entry in this manifest document.
Parameters:
|
string |
$fullpath: |
fullpath Old file name (as a full path). |
|
string |
$newfullpath: |
newfullpath New file name (as a full path). |
API Tags:
Information Tags:
| Since: | 0.5.0 - 08. Feb. 2007 |
void setMimeType(
string
$mimetype
)
|
|
Set mime type of the archive.
Parameters:
|
string |
$mimetype: |
mimetype New mime type of this archive. |
API Tags:
Information Tags:
| Since: | 0.5.0 - 08. Feb. 2007 |
void _setRoot(
[
$documentRoot = 0]
)
|
|
Parameters:
API Tags:
Redefinition of:
- AbstractDocument::_setRoot()
- Set the root Element of this document.