Tariqa
3.0
|
Public Member Functions | |
__construct () | |
load ($file) | |
loadXML ($xml) | |
saveXML () | |
save ($filename) | |
__toString () | |
Static Public Member Functions | |
static | getNodeListContent ($nodeList, $tags_to_keep=null, $attributes_to_keep=null, $childs_to_skip=null) |
Data Fields | |
$docdata_doc_id = null | |
$docdata_doc_src = null | |
$docdata_date_issue = null | |
$docdata_copyright_holder = null | |
$docdata_copyright_year = null | |
$pubdata_unit_of_measure = null | |
$pubdata_item_length = null | |
$pubdata_name = null | |
$pubdata_position_section = null | |
$byline = null | |
$headline = null | |
$abstract = null | |
$body = null | |
$notes = null | |
$valid = false | |
Protected Member Functions | |
parseDocument () | |
Protected Attributes | |
$dom | |
$xpath |
Small Helper Class to parse NITF documents
__construct | ( | ) |
Constructor
__toString | ( | ) |
Basic output of the document
static getNodeListContent | ( | $ | nodeList, |
$ | tags_to_keep = null , |
||
$ | attributes_to_keep = null , |
||
$ | childs_to_skip = null |
||
) | [static] |
Get a textual representation of a XML node (possibly keeping some predefined TAGS and ATTRIBUTES)
DOMNodeList | $nodeList | |
string[] | $tags_to_keep A list of tags to be kept (for other tags, only the text content will be kept) | |
string[] | $attributes_to_keep A list of attributes to be kept (other attributes will be discarded) | |
string[] | $childs_to_skip A list of tag names that will be totally skipped (no tag, no content) |
load | ( | $ | file | ) |
Load XML from a file
string | $file | File PAth |
loadXML | ( | $ | xml | ) |
Load XML from a string
string | $xml | NITF Data |
parseDocument | ( | ) | [protected] |
Parse the loaded NITF document
save | ( | $ | filename | ) |
Dumps the internal XML tree back into a file
string | $filename | File Path |
saveXML | ( | ) |
Dumps the internal XML tree back into a string
$abstract = null |
$body = null |
$byline = null |
$docdata_copyright_holder = null |
$docdata_copyright_year = null |
$docdata_date_issue = null |
$docdata_doc_id = null |
$docdata_doc_src = null |
$dom [protected] |
$headline = null |
$notes = null |
$pubdata_item_length = null |
$pubdata_name = null |
$pubdata_position_section = null |
$pubdata_unit_of_measure = null |
$valid = false |
$xpath [protected] |