Located in /XMLDatastream.inc (line 9)
Class | Description |
---|---|
CollectionPolicy | |
ContentModel |
Parses the DSID from an identifier.
TODO: combine this method with getPidFromIdentifier?
Parses an PID from an identifier.
Constructs an XMLDatastream object from the XML file specified.
Returns FALSE on failure.
validDsid Validates a fedora Dsid based on the the allowed XML standard NCName.
The regexp is a "regular" subset of names allowed, it excludes some extended hex characters that are technically permitted. http://www.fedora-commons.org/confluence/display/FCR30/Fedora+Identifiers
validPid Validates a fedora PID based on the regexp provided in the fedora 3.3 documentation.
http://www.fedora-commons.org/confluence/display/FCR30/Fedora+Identifiers
Constructor NOTE: Use the static constructor methods whenever possible.
Attempts to convert from the old XML schema to the new by traversing the XML DOM and building a new DOM. When done $this->xml is replaced by the newly created DOM..
Dumps the XMLDatastream as an XML String
Gets the history of the datastream from fedora.
Returns false on failure.
Gets the identifier for this XMLDatastream Returns FALSE on failure.
NOTE: not available if constructed directly from file.
Purges veersions of the datastream newer than and including the start_date. If End date is specified, it can be used to purge a range of versions instead. Date should be in DATE_RFC822 format
Saves the current XML datastream back to fedora. The XML must validate.
Validates the XMLDatastream against the schema location
defined by the xmlns:schemaLocation attribute of the root element. If the xmlns:schemaLocation attribute does not exist, then it is assumed to be the old schema and it attempts to convert using the convertFromOldSchema method.
TODO: Maybe change it so that it always validates against a known schema. This makes more sense because this class assumes the structure to be known after it has been validated.
Documentation generated on Thu, 14 Jul 2011 16:56:05 -0300 by phpDocumentor 1.4.3