XMLDatastreamLocated in /XMLDatastream.inc (line 9)
| Class | Description |
|---|---|
CollectionPolicy
|
|
ContentModel
|
static getDSIDFromIdentifier (line 72)
Parses the DSID from an identifier.
TODO: combine this method with getPidFromIdentifier?
static getPidFromIdentifier (line 25)
Parses an PID from an identifier.
static loadFromFile (line 84)
Constructs an XMLDatastream object from the XML file specified.
Returns FALSE on failure.
static validDsid (line 57)
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
static validPid (line 38)
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 __construct (line 97)
Constructor NOTE: Use the static constructor methods whenever possible.
convertFromOldSchema (line 273)
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..
dumpXml (line 131)
Dumps the XMLDatastream as an XML String
getHistory (line 250)
Gets the history of the datastream from fedora.
Returns false on failure.
getIdentifier (line 121)
Gets the identifier for this XMLDatastream Returns FALSE on failure.
NOTE: not available if constructed directly from file.
purgeVersions (line 238)
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
saveToFedora (line 219)
Saves the current XML datastream back to fedora. The XML must validate.
validate (line 151)
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