|
|
|
@ -2,12 +2,19 @@
|
|
|
|
|
|
|
|
|
|
// $Id$ |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @file |
|
|
|
|
* Content Model Class |
|
|
|
|
*/ |
|
|
|
|
module_load_include('inc', 'fedora_repository', 'XMLDatastream'); |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Conent Model ?? |
|
|
|
|
*/ |
|
|
|
|
class ContentModel extends XMLDatastream { |
|
|
|
|
|
|
|
|
|
static $SCHEMA_URI = 'http://localhost/islandoracm.xsd'; |
|
|
|
|
static $DEFAULT_DSID = 'ISLANDORACM'; |
|
|
|
|
|
|
|
|
|
private $mimes = NULL; |
|
|
|
|
public $pid_namespace; |
|
|
|
|
public $name; |
|
|
|
@ -73,7 +80,6 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Ingests a Content Model from an existing model to the specified pid/dsid . |
|
|
|
|
* Returns false on failure. |
|
|
|
@ -103,7 +109,6 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Ingests a minimum Content Model to the specified pid/dsid. |
|
|
|
|
* Returns false on failure. |
|
|
|
@ -174,7 +179,6 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 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 |
|
|
|
@ -203,8 +207,7 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
$ret = new ContentModel($ds, $pid, $dsid, $pid_namespace, $name); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
catch (SOAPException $e) { |
|
|
|
|
} catch (SOAPException $e) { |
|
|
|
|
$ret = FALSE; |
|
|
|
|
} |
|
|
|
|
return $ret; |
|
|
|
@ -287,7 +290,6 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
$ruleEl->appendChild($methodsEl); |
|
|
|
|
$ingestRulesEl->appendChild($ruleEl); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
$rootEl->appendChild($ingestRulesEl); |
|
|
|
|
|
|
|
|
@ -411,7 +413,6 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
$newDom->appendChild($rootEl); |
|
|
|
|
|
|
|
|
|
$this->xml = DOMDocument::loadXML($newDom->saveXml()); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -464,7 +465,6 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Gets the element corresponding to the datastream specified |
|
|
|
|
* in the <datastreams> element of the schema. |
|
|
|
@ -706,7 +706,6 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Gets a list of all parameters that belong to the specified ingest form element. |
|
|
|
|
* |
|
|
|
@ -801,7 +800,6 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Add an ingest form element to the model. |
|
|
|
|
* |
|
|
|
@ -903,9 +901,9 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Removes an authority list item from a form element. |
|
|
|
|
@param String $elementName |
|
|
|
|
@param String $value |
|
|
|
|
@return boolean $success |
|
|
|
|
* @param String $elementName |
|
|
|
|
* @param String $value |
|
|
|
|
* @return boolean $success |
|
|
|
|
*/ |
|
|
|
|
public function removeAuthListItem($elementName, $value) { |
|
|
|
|
$ret = FALSE; |
|
|
|
@ -948,10 +946,10 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Adds an authority list item to a form element. |
|
|
|
|
@param String $elementName |
|
|
|
|
@param String $value |
|
|
|
|
@param String $label (optional) |
|
|
|
|
@return boolean $success |
|
|
|
|
* @param String $elementName |
|
|
|
|
* @param String $value |
|
|
|
|
* @param String $label (optional) |
|
|
|
|
* @return boolean $success |
|
|
|
|
*/ |
|
|
|
|
public function addAuthListItem($elementName, $value, $label = '') { |
|
|
|
|
$ret = FALSE; |
|
|
|
@ -991,7 +989,6 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
$ret = TRUE; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
@ -1080,7 +1077,7 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Builds an edit metadata form using the method specified in the <edit_metadata_method> element |
|
|
|
|
= * The DSID specified must match the DSID attribute of <edit_metadata_method>. Returns FALSE on failure. |
|
|
|
|
* The DSID specified must match the DSID attribute of <edit_metadata_method>. Returns FALSE on failure. |
|
|
|
|
* |
|
|
|
|
* @param string $dsid |
|
|
|
|
* @return $form |
|
|
|
@ -1164,13 +1161,11 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
$ret = $metaDataForm->updateMetaData($form_state['values']['form_id'], $form_state['values'], $soap_client); |
|
|
|
|
$form_state['storage'] = NULL; |
|
|
|
|
$form_state['redirect'] = $base_url . '/fedora/repository/' . $form_state['values']['pid']; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Gets an associative array describing the edit metadata method. |
|
|
|
|
* Array has the following keys: 'file', 'class', 'method', 'handler', 'dsid' |
|
|
|
@ -1349,7 +1344,8 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
self::$errors[] = 'Execute Ingest Rules: class \'' . $className . '\' does not exist.'; |
|
|
|
|
$ret = FALSE; |
|
|
|
|
} |
|
|
|
|
else $class = new $className; |
|
|
|
|
else |
|
|
|
|
$class = new $className; |
|
|
|
|
if (!method_exists($class, $methodName)) { |
|
|
|
|
self::$errors[] = 'Execute Ingest Rules: method \'' . $className . '->' . $methodName . '\' does not exist.'; |
|
|
|
|
$ret = FALSE; |
|
|
|
@ -1366,7 +1362,6 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
@ -1532,7 +1527,6 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
$mimetypesEl->appendChild($newTypeEl); |
|
|
|
|
$ret = TRUE; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
@ -1558,11 +1552,15 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
$mimetypesEl->removeChild($found); |
|
|
|
|
$ret = TRUE; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* getDisplayMethods ?? |
|
|
|
|
* @param type $ds |
|
|
|
|
* @return type |
|
|
|
|
*/ |
|
|
|
|
public function getDisplayMethods($ds) { |
|
|
|
|
$ret = FALSE; |
|
|
|
|
if (($ds = $this->getDSModel($ds)) !== FALSE) { |
|
|
|
@ -1579,6 +1577,12 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* addDs ?? |
|
|
|
|
* @param type $dsid |
|
|
|
|
* @param type $display_in_fieldset |
|
|
|
|
* @return boolean |
|
|
|
|
*/ |
|
|
|
|
public function addDs($dsid, $display_in_fieldset = FALSE) { |
|
|
|
|
$ret = FALSE; |
|
|
|
|
|
|
|
|
@ -1603,6 +1607,11 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* removeDs ?? |
|
|
|
|
* @param type $dsid |
|
|
|
|
* @return boolean |
|
|
|
|
*/ |
|
|
|
|
public function removeDs($dsid) { |
|
|
|
|
$ret = FALSE; |
|
|
|
|
|
|
|
|
@ -1614,6 +1623,11 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* displayInFieldset ?? |
|
|
|
|
* @param type $dsid |
|
|
|
|
* @return type |
|
|
|
|
*/ |
|
|
|
|
public function displayInFieldset($dsid) { |
|
|
|
|
$ret = FALSE; |
|
|
|
|
if (self::validDsid($dsid) && ($ds = $this->getDSModel($dsid)) !== FALSE) { |
|
|
|
@ -1622,6 +1636,12 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* setDisplayInFieldset ?? |
|
|
|
|
* @param type $dsid |
|
|
|
|
* @param type $value |
|
|
|
|
* @return boolean |
|
|
|
|
*/ |
|
|
|
|
public function setDisplayInFieldset($dsid, $value = TRUE) { |
|
|
|
|
$ret = FALSE; |
|
|
|
|
if (self::validDsid($dsid) && ($ds = $this->getDSModel($dsid)) !== FALSE) { |
|
|
|
@ -1637,6 +1657,15 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* setDefaultDispMeth ?? |
|
|
|
|
* @param type $dsid |
|
|
|
|
* @param type $module |
|
|
|
|
* @param type $file |
|
|
|
|
* @param type $class |
|
|
|
|
* @param type $method |
|
|
|
|
* @return boolean |
|
|
|
|
*/ |
|
|
|
|
public function setDefaultDispMeth($dsid, $module, $file, $class, $method) { |
|
|
|
|
$ret = FALSE; |
|
|
|
|
|
|
|
|
@ -1663,11 +1692,19 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
$found->setAttribute('default', 'true'); |
|
|
|
|
$ret = TRUE; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* removeDispMeth ?? |
|
|
|
|
* @param type $dsid |
|
|
|
|
* @param type $module |
|
|
|
|
* @param type $file |
|
|
|
|
* @param type $class |
|
|
|
|
* @param type $method |
|
|
|
|
* @return boolean |
|
|
|
|
*/ |
|
|
|
|
public function removeDispMeth($dsid, $module, $file, $class, $method) { |
|
|
|
|
$ret = FALSE; |
|
|
|
|
if (self::validDsid($dsid) && ($ds = $this->getDSModel($dsid)) !== FALSE) { |
|
|
|
@ -1686,11 +1723,20 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
$ds->removeChild($found); |
|
|
|
|
$ret = TRUE; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* addDispMeth ?? |
|
|
|
|
* @param type $dsid |
|
|
|
|
* @param type $module |
|
|
|
|
* @param type $file |
|
|
|
|
* @param type $class |
|
|
|
|
* @param type $method |
|
|
|
|
* @param type $default |
|
|
|
|
* @return boolean |
|
|
|
|
*/ |
|
|
|
|
public function addDispMeth($dsid, $module, $file, $class, $method, $default = FALSE) { |
|
|
|
|
$ret = FALSE; |
|
|
|
|
if (self::validDsid($dsid) && ($ds = $this->getDSModel($dsid)) !== FALSE) { |
|
|
|
@ -1708,6 +1754,11 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* getAddDsMethod ?? |
|
|
|
|
* @param type $ds |
|
|
|
|
* @return type |
|
|
|
|
*/ |
|
|
|
|
public function getAddDsMethod($ds) { |
|
|
|
|
$ret = FALSE; |
|
|
|
|
if (($ds = $this->getDSModel($ds)) !== FALSE) { |
|
|
|
@ -1725,6 +1776,11 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* getIngestRule ?? |
|
|
|
|
* @param type $rule_id |
|
|
|
|
* @return type |
|
|
|
|
*/ |
|
|
|
|
public function getIngestRule($rule_id) { |
|
|
|
|
$ret = FALSE; |
|
|
|
|
if ($this->validate()) { |
|
|
|
@ -1735,6 +1791,12 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* removeAppliesTo ?? |
|
|
|
|
* @param type $rule_id |
|
|
|
|
* @param type $type |
|
|
|
|
* @return boolean |
|
|
|
|
*/ |
|
|
|
|
public function removeAppliesTo($rule_id, $type) { |
|
|
|
|
$ret = FALSE; |
|
|
|
|
if (($rule = $this->getIngestRule($rule_id)) !== FALSE) { |
|
|
|
@ -1754,6 +1816,12 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* addAppliesTo ?? |
|
|
|
|
* @param type $rule_id |
|
|
|
|
* @param type $type |
|
|
|
|
* @return boolean |
|
|
|
|
*/ |
|
|
|
|
public function addAppliesTo($rule_id, $type) { |
|
|
|
|
$ret = FALSE; |
|
|
|
|
if (($rule = $this->getIngestRule($rule_id)) !== FALSE) { |
|
|
|
@ -1772,6 +1840,17 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* addIngestMethods ?? |
|
|
|
|
* @param type $rule_id |
|
|
|
|
* @param type $module |
|
|
|
|
* @param type $file |
|
|
|
|
* @param type $class |
|
|
|
|
* @param type $method |
|
|
|
|
* @param type $dsid |
|
|
|
|
* @param type $modified_files_ext |
|
|
|
|
* @return boolean |
|
|
|
|
*/ |
|
|
|
|
public function addIngestMethod($rule_id, $module, $file, $class, $method, $dsid, $modified_files_ext) { |
|
|
|
|
$ret = FALSE; |
|
|
|
|
if (self::validDsid($dsid) && ($rule = $this->getIngestRule($rule_id)) !== FALSE) { |
|
|
|
@ -1790,6 +1869,15 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* removeIngestMethod ?? |
|
|
|
|
* @param type $rule_id |
|
|
|
|
* @param type $module |
|
|
|
|
* @param type $file |
|
|
|
|
* @param type $class |
|
|
|
|
* @param type $method |
|
|
|
|
* @return boolean |
|
|
|
|
*/ |
|
|
|
|
public function removeIngestMethod($rule_id, $module, $file, $class, $method) { |
|
|
|
|
$ret = FALSE; |
|
|
|
|
if (($rule = $this->getIngestRule($rule_id)) !== FALSE) { |
|
|
|
@ -1810,6 +1898,17 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* addIngestMethodParam ?? |
|
|
|
|
* @param type $rule_id |
|
|
|
|
* @param type $module |
|
|
|
|
* @param type $file |
|
|
|
|
* @param type $class |
|
|
|
|
* @param type $method |
|
|
|
|
* @param type $name |
|
|
|
|
* @param type $value |
|
|
|
|
* @return boolean |
|
|
|
|
*/ |
|
|
|
|
public function addIngestMethodParam($rule_id, $module, $file, $class, $method, $name, $value) { |
|
|
|
|
$ret = FALSE; |
|
|
|
|
if (($rule = $this->getIngestRule($rule_id)) !== FALSE) { |
|
|
|
@ -1852,6 +1951,16 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* removeIngestMethodParam ?? |
|
|
|
|
* @param type $rule_id |
|
|
|
|
* @param type $module |
|
|
|
|
* @param type $file |
|
|
|
|
* @param type $class |
|
|
|
|
* @param type $method |
|
|
|
|
* @param type $name |
|
|
|
|
* @return boolean |
|
|
|
|
*/ |
|
|
|
|
public function removeIngestMethodParam($rule_id, $module, $file, $class, $method, $name) { |
|
|
|
|
$ret = FALSE; |
|
|
|
|
if (($rule = $this->getIngestRule($rule_id)) !== FALSE) { |
|
|
|
@ -1885,12 +1994,16 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
$ret = TRUE; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* removeIngestRule ?? |
|
|
|
|
* @param type $rule_id |
|
|
|
|
* @return type |
|
|
|
|
*/ |
|
|
|
|
public function removeIngestRule($rule_id) { |
|
|
|
|
$ret = FALSE; |
|
|
|
|
if (($rule = $this->getIngestRule($rule_id)) !== FALSE) { |
|
|
|
@ -1899,6 +2012,17 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* addIngestRule ?? |
|
|
|
|
* @param type $applies_to |
|
|
|
|
* @param type $module |
|
|
|
|
* @param type $file |
|
|
|
|
* @param type $class |
|
|
|
|
* @param type $method |
|
|
|
|
* @param type $dsid |
|
|
|
|
* @param type $modified_files_ext |
|
|
|
|
* @return type |
|
|
|
|
*/ |
|
|
|
|
public function addIngestRule($applies_to, $module, $file, $class, $method, $dsid, $modified_files_ext) { |
|
|
|
|
$ret = FALSE; |
|
|
|
|
if (self::validDsid($dsid) && $this->validate()) { |
|
|
|
@ -1913,6 +2037,10 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* getIngestRules ?? |
|
|
|
|
* @return type |
|
|
|
|
*/ |
|
|
|
|
public function getIngestRules() { |
|
|
|
|
$ret = FALSE; |
|
|
|
|
if ($this->validate()) { |
|
|
|
@ -1945,7 +2073,6 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$rule['ingest_methods'][] = $method; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$ret[] = $rule; |
|
|
|
@ -1954,6 +2081,10 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* getIngestFormAttributes ?? |
|
|
|
|
* @return type |
|
|
|
|
*/ |
|
|
|
|
public function getIngestFormAttributes() { |
|
|
|
|
$ret = FALSE; |
|
|
|
|
if ($this->validate()) { |
|
|
|
@ -1962,11 +2093,18 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
'page' => $ingest_formEl->getAttribute('page'), |
|
|
|
|
'hide_file_chooser' => strtolower($ingest_formEl->getAttribute('hide_file_chooser')) == 'true', |
|
|
|
|
'redirect' => strtolower($ingest_formEl->getAttribute('redirect')) == 'false' ? FALSE : TRUE); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* editIngestFormAttributes ?? |
|
|
|
|
* @param type $dsid |
|
|
|
|
* @param type $page |
|
|
|
|
* @param type $hide_file_chooser |
|
|
|
|
* @param type $redirect |
|
|
|
|
* @return boolean |
|
|
|
|
*/ |
|
|
|
|
public function editIngestFormAttributes($dsid, $page, $hide_file_chooser = FALSE, $redirect = TRUE) { |
|
|
|
|
$ret = FALSE; |
|
|
|
|
if (self::validDsid($dsid) && $this->validate()) { |
|
|
|
@ -1990,6 +2128,10 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* getIngestFormBuilderMethod |
|
|
|
|
* @return type |
|
|
|
|
*/ |
|
|
|
|
public function getIngestFormBuilderMethod() { |
|
|
|
|
$ret = FALSE; |
|
|
|
|
if ($this->validate()) { |
|
|
|
@ -2003,6 +2145,15 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* editIngestFormBuilderMethod ?? |
|
|
|
|
* @param type $module |
|
|
|
|
* @param type $file |
|
|
|
|
* @param type $class |
|
|
|
|
* @param type $method |
|
|
|
|
* @param type $handler |
|
|
|
|
* @return boolean |
|
|
|
|
*/ |
|
|
|
|
public function editIngestFormBuilderMethod($module, $file, $class, $method, $handler) { |
|
|
|
|
$ret = FALSE; |
|
|
|
|
if ($this->validate()) { |
|
|
|
@ -2131,7 +2282,6 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
return FALSE; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Edits a form element with attribute name='$name' from the 'forms' element. |
|
|
|
|
* |
|
|
|
|