Class XMLRecordStructureImporter

Description

XMLRecordStructureImporter imports a RecordStructure via delegation to subclasses

  • version: $Id: XMLRecordStructureImporter.class.php,v 1.22 2007/09/19 14:04:47 adamfranco Exp $
  • license: GNU General Public License (GPL)
  • copyright: Copyright © 2005, Middlebury College
  • since: 10/6/05

Located in /polyphony/main/library/Importer/XMLImporters/XMLRecordStructureImporter.class.php (line 27)

XMLImporter
   |
   --XMLRecordStructureImporter
Method Summary
void canImportBelow (string $authZQString)
void cmpRS (array $rS, object HarmoniRecordStructure $rStruct)
void doIdMatrix ()
void doSets ()
void importNode ()
boolean isImportable (object DOMIT_Node $element)
false matchPartStructure (mixed $rS, mixed $partElement)
object HarmoniId RSExists ()
void setupSelf ()
void update ()
object mixed withFile (string $existingArray, string $filepath, string $type, [mixed $class = 'XMLRecordStructureImporter'])
object mixed withObject (object mixed $existingArray, string $object, string $filepath, string $type, [mixed $class = 'XMLRecordStructureImporter'])
Methods
Constructor XMLRecordStructureImporter (line 37)

Constructor; parses XML if passed file

  • since: 10/6/05
  • access: public
object XMLRecordStructureImporter XMLRecordStructureImporter (mixed $existingArray)
canImportBelow (line 105)

Checks if the user is able to import underneath this level

  • since: 11/3/05
  • access: public
void canImportBelow (string $authZQString)
  • string $authZQString: qualifier for authz checking

Redefinition of:
XMLImporter::canImportBelow()
Checks if the user is able to import underneath this level
cmpRS (line 300)

Compares an array of essential info to a recordStructure object

void cmpRS (array $rS, object HarmoniRecordStructure $rStruct)
  • array $rS: an array containing displayName and partstructure info
  • object HarmoniRecordStructure $rStruct: object of comparison
doChildIdMatrices (line 182)

Does what is necessary to the temporary table for internal id association

  • since: 10/6/05
  • access: public
void doChildIdMatrices ()
doIdMatrix (line 233)

Does what is necessary to the child table for internal id association

  • since: 10/6/05
  • access: public
void doIdMatrix ()

Redefinition of:
XMLImporter::doIdMatrix()
Does what is necessary to the temporary table for internal id association
doSets (line 165)

Does anything needed to sets

  • since: 10/6/05
  • access: public
void doSets ()
importNode (line 115)

Checks this node for any changes to make to this

  • since: 10/6/05
  • access: public
void importNode ()

Redefinition of:
XMLImporter::importNode()
Imports the node itself
isImportable (line 91)

Filters nodes of incorrect type

  • since: 10/6/05
  • access: public
  • static:
boolean isImportable (object DOMIT_Node $element)
  • object DOMIT_Node $element
matchPartStructure (line 202)

Matches a partstructure from a recordstructure

  • return: if not matched and an array of partstructure ids
  • since: 7/18/05
  • access: public
false matchPartStructure (mixed $rS, mixed $partElement)
RSExists (line 264)

Attempts to find the an identical pre-existing global recordStructure

object HarmoniId RSExists ()
setupSelf (line 76)

Sets up importer's self-knowledge

  • since: 10/6/05
  • access: public
void setupSelf ()

Redefinition of:
XMLImporter::setupSelf()
Sets up importer's self-knowledge
update (line 254)

Looks for discrepencies between imported data and current data

  • since: 10/6/05
  • access: public
void update ()

Redefinition of:
XMLImporter::update()
Update
withFile (line 51)

Constructor with XML File to parse

  • since: 10/11/05
  • access: public
object mixed withFile (string $existingArray, string $filepath, string $type, [mixed $class = 'XMLRecordStructureImporter'])
  • string $existingArray
  • string $filepath
  • string $type

Redefinition of:
XMLImporter::withFile()
Constructor with XML File to parse
withObject (line 66)

Constructor with XMLFile and starting object

  • since: 10/11/05
  • access: public
object mixed withObject (object mixed $existingArray, string $object, string $filepath, string $type, [mixed $class = 'XMLRecordStructureImporter'])
  • object mixed $existingArray
  • string $object
  • string $filepath
  • string $type

Redefinition of:
XMLImporter::withObject()
Constructor with XMLFile and starting object

Inherited Methods

Inherited From XMLImporter

XMLImporter::XMLImporter()
XMLImporter::addError()
XMLImporter::buildDescription()
XMLImporter::buildDimensions()
XMLImporter::buildEffectivedate()
XMLImporter::buildExpirationdate()
XMLImporter::buildFormat()
XMLImporter::buildName()
XMLImporter::buildType()
XMLImporter::canImportBelow()
XMLImporter::decompress()
XMLImporter::doIdMatrix()
XMLImporter::dropIdMatrix()
XMLImporter::getErrors()
XMLImporter::getNodeInfo()
XMLImporter::getParentForImporter()
XMLImporter::hasErrors()
XMLImporter::import()
XMLImporter::importBelow()
XMLImporter::importNode()
XMLImporter::moreGranulesFromXML()
XMLImporter::parseAndImport()
XMLImporter::parseAndImportBelow()
XMLImporter::printErrorMessages()
XMLImporter::relegateChildren()
XMLImporter::setParent()
XMLImporter::setupSelf()
XMLImporter::setupStatusBar()
XMLImporter::update()
XMLImporter::withFile()
XMLImporter::withObject()
XMLImporter::_checkXMLStructure()

Documentation generated on Wed, 19 Sep 2007 10:28:44 -0400 by phpDocumentor 1.3.0RC3