Class NITF_document

Description

Small Helper Class to parse NITF documents

  • example: example not found

Located in /lib/Tariqa/NITF_Document.class.php (line 6)


	
			
Variable Summary
Method Summary
static void getNodeListContent (DOMNodeList $nodeList, [string[] $tags_to_keep = null], [string[] $attributes_to_keep = null], [string[] $childs_to_skip = null])
void __construct ()
boolean load (string $file)
boolean loadXML (string $xml)
boolean parseDocument ()
boolean save (string $filename)
string saveXML ()
string __toString ()
Variables
string $abstract = null (line 70)
  • access: public
string $body = null (line 76)
  • access: public
string $byline = null (line 62)
  • access: public
string $docdata_copyright_holder = null (line 34)
  • access: public
string $docdata_copyright_year = null (line 38)
  • access: public
string $docdata_date_issue = null (line 30)
  • access: public
string $docdata_doc_id = null (line 22)
  • access: public
string $docdata_doc_src = null (line 26)
  • access: public
DOMDocument $dom (line 11)
  • access: protected
string $headline = null (line 66)
  • access: public
string $notes = null (line 82)
  • access: public
string $pubdata_item_length = null (line 48)
  • access: public
string $pubdata_name = null (line 52)
  • access: public
string $pubdata_position_section = null (line 56)
  • access: public
string $pubdata_unit_of_measure = null (line 44)
  • access: public
boolean $valid = false (line 88)
  • access: public
DOMXPath $xpath (line 16)
  • access: protected
Methods
static method getNodeListContent (line 288)

Get a textual representation of a XML node (possibly keeping some predefined TAGS and ATTRIBUTES)

  • access: public
static void getNodeListContent (DOMNodeList $nodeList, [string[] $tags_to_keep = null], [string[] $attributes_to_keep = null], [string[] $childs_to_skip = null])
  • 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)
Constructor __construct (line 94)

Constructor

  • access: public
void __construct ()
load (line 104)

Load XML from a file

  • access: public
boolean load (string $file)
  • string $file: File PAth
loadXML (line 121)

Load XML from a string

  • access: public
boolean loadXML (string $xml)
  • string $xml: NITF Data
parseDocument (line 199)

Parse the loaded NITF document

  • access: protected
boolean parseDocument ()
save (line 145)

Dumps the internal XML tree back into a file

  • access: public
boolean save (string $filename)
  • string $filename: File Path
saveXML (line 137)

Dumps the internal XML tree back into a string

  • access: public
string saveXML ()
__toString (line 153)

Basic output of the document

  • access: public
string __toString ()

Documentation generated on Mon, 30 Mar 2009 16:36:23 +0200 by phpDocumentor 1.4.1