ContentModelLocated in /ContentModel.inc (line 11)
XMLDatastream | --ContentModel
static ContentModel
ingestBlankModel
(string $pid, string $name, string $modelDsid, string $defaultMimetype, $ingestFormDsid, integer $ingestFormPage, $ingestFormHideChooser, string $ingestFormModule, string $ingestFormFile, string $ingestFormClass, string $ingestFormMethod, string $ingestFormHandler, string $ingestFromDsid, boolean $ingestFormHideFileChooser)
static ContentModel
ingestFromModel
(string $pid, string $name, string $modelDsid, string $copy_model_pid)
static ContentModel
loadFromModel
(string $pid, [string $dsid = NULL], [string $pid_namespace = NULL], [string $name = NULL])
XMLDatastream
__construct
(string $xmlStr, [string $pid = NULL], [string $dsid = NULL], [string $pid_namespace = NULL], [string $name = NULL])
boolean
addIngestFormElement
(String $name, String $label, String $type, boolean $required, [String $description = ''])
boolean
editIngestFormElement
(String $name, String $label, String $type, boolean $required, String $description)
$result
handleEditMetadataForm
(&$form_id &$form_id, &$form_values &$form_state, &$soap_client &$soap_client)
boolean
incAuthListItem
(String $elementName, String $value, [ $reorder = 'inc'], String $direction)
boolean
setIngestFormElementParam
( $name, String $paramName, String $paramValue, String $elementName)
boolean
updateEditMetadataMethod
(String $module, String $file, String $class, String $method, String $handler, String $dsid)
static mixed
$DEFAULT_DSID
= 'ISLANDORACM' (line 13)
static mixed
$SCHEMA_URI
= 'http://localhost/islandoracm.xsd' (line 12)
mixed
$name
(line 17)
mixed
$pid_namespace
(line 16)
Inherited from XMLDatastream
XMLDatastream::$dsid
XMLDatastream::$errors
XMLDatastream::$forceSchema
XMLDatastream::$pid
XMLDatastream::$xml
XMLDatastream::$XMLNS
static getDefaultDSID (line 25)
Gets the default DSID to use for ContentModel datastreams.
static ingestBlankModel (line 131)
Ingests a minimum Content Model to the specified pid/dsid.
Returns false on failure.
static ingestFromFile (line 63)
Ingests a Content Model from a file to the specified pid/dsid .
Returns false on failure.
static ingestFromModel (line 91)
Ingests a Content Model from an existing model to the specified pid/dsid .
Returns false on failure.
static loadFromModel (line 198)
Constructs a ContentModel object from the PID of the model in Fedora.
If DSID is specified it will use that datastream as the model, otherwise it will use the default (usually ISLANDORACM). PID_NAMESPACE and name can also be initialized from the collection policy. Returns false on failure.
NOTE: $name will be overwritten with the content model name found in the datastream when the model is first validated.\
static loadFromObject (line 36)
Constructs a ContentModel object from a Fedora item by getting the first content model from the hasModel relationship.
Returns false on failure.
Constructor __construct (line 228)
Constructor NOTE: Use the static constructor methods whenever possible.
addAppliesTo (line 1761)
addAuthListItem (line 960)
Adds an authority list item to a form element.
addDispMeth (line 1698)
addDs (line 1586)
addElementToForm (line 2169)
addForm (line 2120)
Adds the named form.
addIngestFormElement (line 819)
Add an ingest form element to the model.
addIngestMethod (line 1779)
addIngestMethodParam (line 1817)
addIngestRule (line 1906)
addMimetype (line 1522)
Adds an allowed mimetype to the model.
buildEditMetadataForm (line 1092)
Builds an edit metadata form using the method specified in the <edit_metadata_method> element
buildIngestForm (line 1011)
Builds an ingest form using the method specified in <form_builder_method> element of <ingest_form> Returns FALSE on failure.
convertFromOldSchema (line 243)
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..
decAuthListItem (line 851)
Decrements an authority list item from a form element in the list of elements.
Updates the "order". This method is simply an overload to the incAuthListItem which has a direction parameter.
decFormElement (line 2233)
decIngestFormElement (line 571)
Decrements an ingest form element in the list of elements.
Updates the "order". This method is simply an overload to the incIngestFormElement which has a direction parameter.
TODO: Might be useful to move multiple places at once, or define a method to move to an absolute position.
displayExtraFieldset (line 1447)
Calls all defined display methods for the ContentModel.
The PID specified is passed to the constructor of the display class(es) specified in the Content Model.
displayInFieldset (line 1621)
editForm (line 2144)
Edits a form element with attribute name='$name' from the 'forms' element.
editFormElement (line 2180)
editIngestFormAttributes (line 1974)
editIngestFormBuilderMethod (line 2010)
editIngestFormElement (line 760)
Edits the ingest form element specified.
NOTE: The element name can not be changed. To update an elements name it must be deleted and added with the new name.
execAddDatastreamMethods (line 1258)
Executes the add datastream method for the specified datastream on the specified file.
Returns FALSE on failure.
execFormHandler (line 1385)
Executes the form handler from the <form_builder_method> element of <ingest_form>.
execIngestRules (line 1311)
Executes the ingest rules that apply to the specified file/mimetype.
Returns FALSE on failure.
If $preview is TRUE, then only execute rules with a parameter 'preview'. Used to generate previews for the file chooser.
getAddDsMethod (line 1715)
getDisplayMethods (line 1570)
getEditFormNames (line 2079)
getEditMetadataMethod (line 1183)
Gets an associative array describing the edit metadata method.
Array has the following keys: 'file', 'class', 'method', 'handler', 'dsid'
getForm (line 2032)
Find the form element with name $name.
getFormNames (line 2042)
getIngestFormAttributes (line 1961)
getIngestFormBuilderMethod (line 1997)
getIngestFormElementParams (line 720)
Gets a list of all parameters that belong to the specified ingest form element.
getIngestFormElements (line 503)
Gets an array of form elements to use in the ingest form. The results of this array are passed to the specified ingest form builder. The form builder can optionally not use the elements as defined in the form builder if more complex forms or behaviour is required.
Each element has the following keys: 'label', 'type', 'required', 'description', and if defined, 'authoritative_list' and/or 'parameters'
getIngestFormNames (line 2061)
getIngestRule (line 1732)
getIngestRules (line 1920)
getMimetypes (line 1423)
Gets a list of valid mimetypes that can apply to this model.
Returns FALSE on failure.
getName (line 458)
Gets the name of the ContentModel Returns false on failure.
getServices (line 428)
Gets a list of service deployments that this model has.
NOTE: Not currently being used.
handleEditMetadataForm (line 1134)
Handles the edit metadata form using the handler specified in the <edit_metadata_method> element Returns FALSE on failure.
incAuthListItem (line 864)
Increments (or decrements) an authority list item from a form element in the list of elements.
Updates the "order".
incFormElement (line 2216)
incIngestFormElement (line 587)
Increments (or decrements) ingest form element in the list of elements.
Updates the "order". The $reorder parameter accepts 'inc' or 'dec' to specify the direction to move (defaults to increment.)
TODO: Might be useful to move multiple places at once, or define a method to move to an absolute position.
listDatastreams (line 1497)
Gets a list of datastreams from the ContentModel (not including the QDC ds if it is listed).
Returns FALSE on failure.
removeAppliesTo (line 1742)
removeAuthListItem (line 914)
Removes an authority list item from a form element.
removeDispMeth (line 1675)
removeDs (line 1610)
removeEditMetadataMethod (line 1205)
Removes the edit data method from the Content Model.
removeForm (line 2101)
Removes the named form.
removeIngestFormElement (line 621)
Removes an ingest form element from the list of ingest form elements.
removeIngestMethod (line 1797)
removeIngestMethodParam (line 1859)
removeIngestRule (line 1898)
removeMimetype (line 1550)
Removes an allowed mimetype from the model.
setDefaultDispMeth (line 1644)
setDisplayInFieldset (line 1629)
setIngestFormElementParam (line 650)
Sets a parameter of an ingest form element. If the value of the element is FALSE the parameter will be removed entirely (if you want to store false as a value, then send the String "false").
updateEditMetadataMethod (line 1228)
Update the Edit Metadata Method defined in the Content Model
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:56:04 -0300 by phpDocumentor 1.4.3