Class XMLRepositoryImporter

Description

XMLRepositoryImporter imports a repository via delegation to subclasses

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

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

XMLImporter
   |
   --XMLRepositoryImporter
Method Summary
void doIdMatrix ()
void doSets ()
void dropIdMatrix ()
object getParentForImporter (mixed $importer, string $importerClass)
void importNode ()
boolean isImportable (object DOMIT_Node $element)
void setupSelf ()
void update ()
object mixed withFile (string $existingArray, string $filepath, string $type, [mixed $class = 'XMLRepositoryImporter'])
object mixed withObject (object mixed $existingArray, string $object, string $filepath, string $type, [mixed $class = 'XMLRepositoryImporter'])
Methods
Constructor XMLRepositoryImporter (line 37)

Constructor

  • since: 10/5/05
  • access: public
object XMLRepositoryImporter XMLRepositoryImporter (mixed $existingArray)
doIdMatrix (line 197)

Does what is necessary to the temporary 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 183)

Does anything needed to sets

  • since: 10/6/05
  • access: public
void doSets ()
dropIdMatrix (line 216)

Drops the temporary table for internal id association

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

Redefinition of:
XMLImporter::dropIdMatrix()
Drops the temporary table for internal id association
getParentForImporter (line 118)

Answer the parent for the importer

  • since: 4/3/07
  • access: public
object getParentForImporter (mixed $importer, string $importerClass)
  • string $importerClass

Redefinition of:
XMLImporter::getParentForImporter()
Answer the parent for the importer. This allows importers such as the XMLRepositoryImporter to switch and import assets underneith another asset rather than just under themselves.
importNode (line 137)

Checks this node for any changes to make to this

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

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

Filters nodes of incorrect type

  • since: 10/5/05
  • access: public
  • static:
boolean isImportable (object DOMIT_Node $element)
  • object DOMIT_Node $element
setupSelf (line 76)

Sets up importer's self-knowledge

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

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

Looks for discrepencies between imported data and current data

  • 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 = 'XMLRepositoryImporter'])
  • 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 = 'XMLRepositoryImporter'])
  • object mixed $existingArray
  • string $object
  • string $filepath
  • string $type

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

This function determines the structure wanted and makes sure it is so

sub-classes that can start an import should overwrite this function

  • since: 2/23/06
  • access: public
void _checkXMLStructure ()

Redefinition of:
XMLImporter::_checkXMLStructure()
This function determines the structure wanted and makes sure it is so

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:47 -0400 by phpDocumentor 1.3.0RC3