Tariqa SOAP
 All Data Structures Namespaces Files Functions Variables Enumerations
NITF_document Class Reference

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

Constructor & Destructor Documentation

Constructor

Returns:
void

Member Function Documentation

Basic output of the document

Returns:
string
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)

Parameters:
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

Parameters:
string$fileFile PAth
Returns:
boolean
loadXML ( xml)

Load XML from a string

Parameters:
string$xmlNITF Data
Returns:
boolean
parseDocument ( ) [protected]

Parse the loaded NITF document

Returns:
boolean
save ( filename)

Dumps the internal XML tree back into a file

Parameters:
string$filenameFile Path
Returns:
boolean
saveXML ( )

Dumps the internal XML tree back into a string

Returns:
string

Field Documentation

$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]

The documentation for this class was generated from the following file: