Located in /CollectionPolicy.inc (line 11)
XMLDatastream | --CollectionPolicy
Inherited from XMLDatastream
XMLDatastream::$dsid
XMLDatastream::$errors
XMLDatastream::$forceSchema
XMLDatastream::$pid
XMLDatastream::$xml
XMLDatastream::$XMLNS
Gets the default DSID to use for ContentModel datastreams.
Ingests a new minimum Collection Policy datastream to the specified PID with the DSID specified. Initializes the policy with the specified values.
Returns false on failure
Ingests a new Collection Policy datastream to the specified PID with the DSID specified. Clones the collection policy from the source collection pid. Returns false on failure.
Ingests a new Collection Policy datastream to the specified PID with the DSID specified. The file should be a valid collection policy XML. Returns false on failure.
Constructs a new CollectionPolicy object from the specified collection PID. If preFetch is disabled, then Islandora will not get the datastream until needed.
(useful when cacheing) Returns FALSE on failure.
Constructor NOTE: Use the static constructor methods whenever possible.
Adds a search term to the collection policy.
Returns fase on failure.
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..
Gets a list of ContentModel objects supported by this collection.
Gets the next available PID for the content model specified by the DSID parameter.
Gets the name of the relationship to use for members of this collection.
Returns FALSE on failure.
Gets a list of search terms from the Collection Policy. If asArray is set it will return an associative array with the value, field name, and the default value.
If not set, an array of just the values will be returned. If $recurse is TRUE, it will recurseively return the parents search terms if it has none until it returns a set of terms or reaches the top level collection. If $cache is TRUE, it will return a cached version (if available).
Gets the path to the staging area to use for this collection. By default recurses to the parent collection if the staging area is undefined
Removes the specified content model from the collection policy. This will only prevent future ingests of the removed model to the collection. $cm should be a valid ContentModel object. Returns false on failure or when the CM was not found in the collection policy.
Removes the search term specified by the field parameter from the collection policy.
Sets the name of the relationship to use for members of this collection.
Returns FALSE on failure.
Sets the path to the staging area to use for this collection. If specified path is blank (or false) it will remove the staging are path element from the collection policy.
Inherited From XMLDatastream
XMLDatastream::__construct()
XMLDatastream::convertFromOldSchema()
XMLDatastream::dumpXml()
XMLDatastream::getDSIDFromIdentifier()
XMLDatastream::getHistory()
XMLDatastream::getIdentifier()
XMLDatastream::getPidFromIdentifier()
XMLDatastream::loadFromFile()
XMLDatastream::purgeVersions()
XMLDatastream::saveToFedora()
XMLDatastream::validate()
XMLDatastream::validDsid()
XMLDatastream::validPid()
Documentation generated on Thu, 14 Jul 2011 16:29:53 -0300 by phpDocumentor 1.4.3