Author: jablko
Date: Tue Aug 11 11:45:53 2009
New Revision: 3001
Log:
Use switch statements in processForm()
Modified:
trunk/apps/qubit/modules/informationobject/actions/editDcAction.class.php
trunk/apps/qubit/modules/informationobject/actions/editIsadAction.class.php
trunk/apps/qubit/modules/informationobject/actions/editModsAction.class.php
trunk/apps/qubit/modules/informationobject/actions/editRadAction.class.php
Modified:
trunk/apps/qubit/modules/informationobject/actions/editDcAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/actions/editDcAction.class.php
Tue Aug 11 11:44:42 2009 (r3000)
+++ trunk/apps/qubit/modules/informationobject/actions/editDcAction.class.php
Tue Aug 11 11:45:53 2009 (r3001)
@@ -102,88 +102,99 @@
protected function processForm()
{
- if (isset($this->request->accessConditions))
+ foreach ($this->form as $field)
{
- $this->informationObject->accessConditions =
$this->form->getValue('accessConditions');
- }
+ if (isset($this->request[$field->getName()]))
+ {
+ switch ($field->getName())
+ {
+ case 'accessConditions':
+ $this->informationObject->accessConditions =
$this->form->getValue('accessConditions');
- if (isset($this->request->extentAndMedium))
- {
- $this->informationObject->extentAndMedium =
$this->form->getValue('extentAndMedium');
- }
+ break;
- if (isset($this->request->identifier))
- {
- $this->informationObject->identifier =
$this->form->getValue('identifier');
- }
+ case 'extentAndMedium':
+ $this->informationObject->extentAndMedium =
$this->form->getValue('extentAndMedium');
- if (isset($this->request->language))
- {
- if (!isset($this->language))
- {
- $this->language = new QubitProperty;
- $this->language->name = 'language';
- $this->informationObject->propertys[] = $this->language;
- }
+ break;
- $this->language->__set('value',
serialize($this->form->getValue('language')), array('sourceCulture' => true));
- }
+ case 'identifier':
+ $this->informationObject->identifier =
$this->form->getValue('identifier');
- if (isset($this->request->locationOfOriginals))
- {
- $this->informationObject->locationOfOriginals =
$this->form->getValue('locationOfOriginals');
- }
+ break;
- if (isset($this->request->relation))
- {
- if (!isset($this->relation))
- {
- $this->relation = new QubitProperty;
- $this->relation->name = 'relation';
- $this->relation->scope = 'dc';
- $this->informationObject->propertys[] = $this->relation;
- }
+ case 'language':
- $this->relation->value = serialize($this->form->getValue('relation'));
- }
+ if (!isset($this->language))
+ {
+ $this->language = new QubitProperty;
+ $this->language->name = 'language';
+ $this->informationObject->propertys[] = $this->language;
+ }
- if (isset($this->request->scopeAndContent))
- {
- $this->informationObject->scopeAndContent =
$this->form->getValue('scopeAndContent');
- }
+ $this->language->__set('value',
serialize($this->form->getValue('language')), array('sourceCulture' => true));
- if (isset($this->request->title))
- {
- $this->informationObject->title = $this->form->getValue('title');
- }
+ break;
- if (isset($this->request->typeIds))
- {
- $filtered = $flipped = array_flip($this->form->getValue('typeIds'));
+ case 'locationOfOriginals':
+ $this->informationObject->locationOfOriginals =
$this->form->getValue('locationOfOriginals');
- $criteria = new Criteria;
-
$this->informationObject->addObjectTermRelationsRelatedByObjectIdCriteria($criteria);
- QubitTermRelation::addJoinTermCriteria($criteria);
- $criteria->add(QubitTerm::TAXONOMY_ID, QubitTaxonomy::DC_TYPE_ID);
+ break;
- foreach (QubitObjectTermRelation::get($criteria) as $relation)
- {
- if (isset($flipped[$relation->term->id]))
- {
- unset($filtered[$relation->term->id]);
- }
- else
- {
- $relation->delete();
- }
- }
+ case 'relation':
- foreach ($filtered as $id => $key)
- {
- $relation = new QubitObjectTermRelation;
- $relation->termId = $id;
+ if (!isset($this->relation))
+ {
+ $this->relation = new QubitProperty;
+ $this->relation->name = 'relation';
+ $this->relation->scope = 'dc';
+ $this->informationObject->propertys[] = $this->relation;
+ }
+
+ $this->relation->value =
serialize($this->form->getValue('relation'));
+
+ break;
- $this->informationObject->objectTermRelationsRelatedByObjectId[] =
$relation;
+ case 'scopeAndContent':
+ $this->informationObject->scopeAndContent =
$this->form->getValue('scopeAndContent');
+
+ break;
+
+ case 'title':
+ $this->informationObject->title = $this->form->getValue('title');
+
+ break;
+
+ case 'typeIds':
+ $filtered = $flipped =
array_flip($this->form->getValue('typeIds'));
+
+ $criteria = new Criteria;
+
$this->informationObject->addObjectTermRelationsRelatedByObjectIdCriteria($criteria);
+ QubitTermRelation::addJoinTermCriteria($criteria);
+ $criteria->add(QubitTerm::TAXONOMY_ID, QubitTaxonomy::DC_TYPE_ID);
+
+ foreach (QubitObjectTermRelation::get($criteria) as $relation)
+ {
+ if (isset($flipped[$relation->term->id]))
+ {
+ unset($filtered[$relation->term->id]);
+ }
+ else
+ {
+ $relation->delete();
+ }
+ }
+
+ foreach ($filtered as $id => $key)
+ {
+ $relation = new QubitObjectTermRelation;
+ $relation->termId = $id;
+
+ $this->informationObject->objectTermRelationsRelatedByObjectId[]
= $relation;
+ }
+
+ break;
+ }
}
}
Modified:
trunk/apps/qubit/modules/informationobject/actions/editIsadAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/actions/editIsadAction.class.php
Tue Aug 11 11:44:42 2009 (r3000)
+++ trunk/apps/qubit/modules/informationobject/actions/editIsadAction.class.php
Tue Aug 11 11:45:53 2009 (r3001)
@@ -240,191 +240,203 @@
protected function processForm()
{
- if (isset($this->request->accessConditions))
+ foreach ($this->form as $field)
{
- $this->informationObject->accessConditions =
$this->form->getValue('accessConditions');
- }
+ if (isset($this->request[$field->getName()]))
+ {
+ switch ($field->getName())
+ {
+ case 'accessConditions':
+ $this->informationObject->accessConditions =
$this->form->getValue('accessConditions');
- if (isset($this->request->accruals))
- {
- $this->informationObject->accruals = $this->form->getValue('accruals');
- }
+ break;
- if (isset($this->request->acquisition))
- {
- $this->informationObject->acquisition =
$this->form->getValue('acquisition');
- }
+ case 'accruals':
+ $this->informationObject->accruals =
$this->form->getValue('accruals');
- if (isset($this->request->appraisal))
- {
- $this->informationObject->appraisal = $this->form->getValue('appraisal');
- }
+ break;
- if (isset($this->request->archivalHistory))
- {
- $this->informationObject->archivalHistory =
$this->form->getValue('archivalHistory');
- }
+ case 'acquisition':
+ $this->informationObject->acquisition =
$this->form->getValue('acquisition');
- if (isset($this->request->arrangement))
- {
- $this->informationObject->arrangement =
$this->form->getValue('arrangement');
- }
+ break;
- if (isset($this->request->creatorIds))
- {
- $filtered = $flipped = array_flip($this->form->getValue('creatorIds'));
+ case 'appraisal':
+ $this->informationObject->appraisal =
$this->form->getValue('appraisal');
- $criteria = new Criteria;
- $this->informationObject->addEventsCriteria($criteria);
- $criteria->add(QubitEvent::ACTOR_ID, null, Criteria::ISNOTNULL);
- $criteria->add(QubitEvent::TYPE_ID, QubitTerm::CREATION_ID);
+ break;
- foreach (QubitEvent::get($criteria) as $event)
- {
- if (isset($flipped[$event->actor->id]))
- {
- unset($filtered[$event->actor->id]);
- }
- else
- {
- $event->delete();
- }
- }
+ case 'archivalHistory':
+ $this->informationObject->archivalHistory =
$this->form->getValue('archivalHistory');
- foreach ($filtered as $id => $key)
- {
- $event = new QubitEvent;
- $event->actorId = $id;
- $event->typeId = QubitTerm::CREATION_ID;
+ break;
- $this->informationObject->events[] = $event;
- }
- }
+ case 'arrangement':
+ $this->informationObject->arrangement =
$this->form->getValue('arrangement');
- if (isset($this->request->descriptionIdentifier))
- {
- $this->informationObject->descriptionIdentifier =
$this->form->getValue('descriptionIdentifier');
- }
+ break;
- if (isset($this->request->extentAndMedium))
- {
- $this->informationObject->extentAndMedium =
$this->form->getValue('extentAndMedium');
- }
+ case 'creatorIds':
+ $filtered = $flipped =
array_flip($this->form->getValue('creatorIds'));
- if (isset($this->request->findingAids))
- {
- $this->informationObject->findingAids =
$this->form->getValue('findingAids');
- }
+ $criteria = new Criteria;
+ $this->informationObject->addEventsCriteria($criteria);
+ $criteria->add(QubitEvent::ACTOR_ID, null, Criteria::ISNOTNULL);
+ $criteria->add(QubitEvent::TYPE_ID, QubitTerm::CREATION_ID);
- if (isset($this->request->identifier))
- {
- $this->informationObject->identifier =
$this->form->getValue('identifier');
- }
+ foreach (QubitEvent::get($criteria) as $event)
+ {
+ if (isset($flipped[$event->actor->id]))
+ {
+ unset($filtered[$event->actor->id]);
+ }
+ else
+ {
+ $event->delete();
+ }
+ }
- if (isset($this->request->institutionResponsibleIdentifier))
- {
- $this->informationObject->institutionResponsibleIdentifier =
$this->form->getValue('institutionResponsibleIdentifier');
- }
+ foreach ($filtered as $id => $key)
+ {
+ $event = new QubitEvent;
+ $event->actorId = $id;
+ $event->typeId = QubitTerm::CREATION_ID;
- if (isset($this->request->languageOfMaterial))
- {
- if (!isset($this->languageOfMaterial))
- {
- $this->languageOfMaterial = new QubitProperty;
- $this->languageOfMaterial->name = 'languageOfMaterial';
- $this->informationObject->propertys[] = $this->languageOfMaterial;
- }
+ $this->informationObject->events[] = $event;
+ }
- $this->languageOfMaterial->__set('value',
serialize($this->form->getValue('languageOfMaterial')), array('sourceCulture'
=> true));
- }
+ break;
- if (isset($this->request->levelOfDetailId))
- {
- $this->informationObject->descriptionDetailId =
$this->form->getValue('levelOfDetailId');
- }
+ case 'descriptionIdentifier':
+ $this->informationObject->descriptionIdentifier =
$this->form->getValue('descriptionIdentifier');
- if (isset($this->request->locationOfCopies))
- {
- $this->informationObject->locationOfCopies =
$this->form->getValue('locationOfCopies');
- }
+ break;
- if (isset($this->request->locationOfOriginals))
- {
- $this->informationObject->locationOfOriginals =
$this->form->getValue('locationOfOriginals');
- }
+ case 'extentAndMedium':
+ $this->informationObject->extentAndMedium =
$this->form->getValue('extentAndMedium');
- if (isset($this->request->physicalCharacteristics))
- {
- $this->informationObject->physicalCharacteristics =
$this->form->getValue('physicalCharacteristics');
- }
+ break;
- if (isset($this->request->relatedUnitsOfDescription))
- {
- $this->informationObject->relatedUnitsOfDescription =
$this->form->getValue('relatedUnitsOfDescription');
- }
+ case 'findingAids':
+ $this->informationObject->findingAids =
$this->form->getValue('findingAids');
- if (isset($this->request->repositoryId))
- {
- $this->informationObject->repositoryId =
$this->form->getValue('repositoryId');
- }
+ break;
- if (isset($this->request->reproductionConditions))
- {
- $this->informationObject->reproductionConditions =
$this->form->getValue('reproductionConditions');
- }
+ case 'identifier':
+ $this->informationObject->identifier =
$this->form->getValue('identifier');
- if (isset($this->request->revisionHistory))
- {
- $this->informationObject->revisionHistory =
$this->form->getValue('revisionHistory');
- }
+ break;
- if (isset($this->request->rules))
- {
- $this->informationObject->rules = $this->form->getValue('rules');
- }
+ case 'institutionResponsibleIdentifier':
+ $this->informationObject->institutionResponsibleIdentifier =
$this->form->getValue('institutionResponsibleIdentifier');
- if (isset($this->request->scopeAndContent))
- {
- $this->informationObject->scopeAndContent =
$this->form->getValue('scopeAndContent');
- }
+ break;
- if (isset($this->request->scriptOfDescription))
- {
- if (!isset($this->scriptOfDescription))
- {
- $this->scriptOfDescription = new QubitProperty;
- $this->scriptOfDescription->name = 'scriptOfDescription';
- $this->informationObject->propertys[] = $this->scriptOfDescription;
- }
+ case 'languageOfMaterial':
- $this->scriptOfDescription->__set('value',
serialize($this->form->getValue('scriptOfDescription')), array('sourceCulture'
=> true));
- }
+ if (!isset($this->languageOfMaterial))
+ {
+ $this->languageOfMaterial = new QubitProperty;
+ $this->languageOfMaterial->name = 'languageOfMaterial';
+ $this->informationObject->propertys[] =
$this->languageOfMaterial;
+ }
- if (isset($this->request->scriptOfMaterial))
- {
- if (!isset($this->scriptOfMaterial))
- {
- $this->scriptOfMaterial = new QubitProperty;
- $this->scriptOfMaterial->name = 'scriptOfMaterial';
- $this->informationObject->propertys[] = $this->scriptOfMaterial;
- }
+ $this->languageOfMaterial->__set('value',
serialize($this->form->getValue('languageOfMaterial')), array('sourceCulture'
=> true));
- $this->scriptOfMaterial->__set('value',
serialize($this->form->getValue('scriptOfMaterial')), array('sourceCulture' =>
true));
- }
+ break;
- if (isset($this->request->sources))
- {
- $this->informationObject->sources = $this->form->getValue('sources');
- }
+ case 'levelOfDetailId':
+ $this->informationObject->descriptionDetailId =
$this->form->getValue('levelOfDetailId');
- if (isset($this->request->statusId))
- {
- $this->informationObject->descriptionStatusId =
$this->form->getValue('statusId');
- }
+ break;
- if (isset($this->request->title))
- {
- $this->informationObject->title = $this->form->getValue('title');
+ case 'locationOfCopies':
+ $this->informationObject->locationOfCopies =
$this->form->getValue('locationOfCopies');
+
+ break;
+
+ case 'locationOfOriginals':
+ $this->informationObject->locationOfOriginals =
$this->form->getValue('locationOfOriginals');
+
+ break;
+
+ case 'physicalCharacteristics':
+ $this->informationObject->physicalCharacteristics =
$this->form->getValue('physicalCharacteristics');
+
+ break;
+
+ case 'relatedUnitsOfDescription':
+ $this->informationObject->relatedUnitsOfDescription =
$this->form->getValue('relatedUnitsOfDescription');
+
+ break;
+
+ case 'repositoryId':
+ $this->informationObject->repositoryId =
$this->form->getValue('repositoryId');
+
+ break;
+
+ case 'reproductionConditions':
+ $this->informationObject->reproductionConditions =
$this->form->getValue('reproductionConditions');
+
+ break;
+
+ case 'revisionHistory':
+ $this->informationObject->revisionHistory =
$this->form->getValue('revisionHistory');
+
+ break;
+
+ case 'rules':
+ $this->informationObject->rules = $this->form->getValue('rules');
+
+ break;
+
+ case 'scopeAndContent':
+ $this->informationObject->scopeAndContent =
$this->form->getValue('scopeAndContent');
+
+ break;
+
+ case 'scriptOfDescription':
+
+ if (!isset($this->scriptOfDescription))
+ {
+ $this->scriptOfDescription = new QubitProperty;
+ $this->scriptOfDescription->name = 'scriptOfDescription';
+ $this->informationObject->propertys[] =
$this->scriptOfDescription;
+ }
+
+ $this->scriptOfDescription->__set('value',
serialize($this->form->getValue('scriptOfDescription')), array('sourceCulture'
=> true));
+
+ break;
+
+ case 'scriptOfMaterial':
+
+ if (!isset($this->scriptOfMaterial))
+ {
+ $this->scriptOfMaterial = new QubitProperty;
+ $this->scriptOfMaterial->name = 'scriptOfMaterial';
+ $this->informationObject->propertys[] = $this->scriptOfMaterial;
+ }
+
+ $this->scriptOfMaterial->__set('value',
serialize($this->form->getValue('scriptOfMaterial')), array('sourceCulture' =>
true));
+
+ break;
+
+ case 'sources':
+ $this->informationObject->sources =
$this->form->getValue('sources');
+
+ break;
+
+ case 'statusId':
+ $this->informationObject->descriptionStatusId =
$this->form->getValue('statusId');
+
+ break;
+
+ case 'title':
+ $this->informationObject->title = $this->form->getValue('title');
+
+ break;
+ }
+ }
}
return parent::processForm();
Modified:
trunk/apps/qubit/modules/informationobject/actions/editModsAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/actions/editModsAction.class.php
Tue Aug 11 11:44:42 2009 (r3000)
+++ trunk/apps/qubit/modules/informationobject/actions/editModsAction.class.php
Tue Aug 11 11:45:53 2009 (r3001)
@@ -72,60 +72,70 @@
protected function processForm()
{
- if (isset($this->request->accessConditions))
+ foreach ($this->form as $field)
{
- $this->informationObject->accessConditions =
$this->form->getValue('accessConditions');
- }
+ if (isset($this->request[$field->getName()]))
+ {
+ switch ($field->getName())
+ {
+ case 'accessConditions':
+ $this->informationObject->accessConditions =
$this->form->getValue('accessConditions');
- if (isset($this->request->identifier))
- {
- $this->informationObject->identifier =
$this->form->getValue('identifier');
- }
+ break;
- if (isset($this->request->language))
- {
- if (!isset($this->language))
- {
- $this->language = new QubitProperty;
- $this->language->name = 'language';
- $this->informationObject->propertys[] = $this->language;
- }
+ case 'identifier':
+ $this->informationObject->identifier =
$this->form->getValue('identifier');
- $this->language->__set('value',
serialize($this->form->getValue('language')), array('sourceCulture' => true));
- }
+ break;
- if (isset($this->request->title))
- {
- $this->informationObject->title = $this->form->getValue('title');
- }
+ case 'language':
- if (isset($this->request->typeIds))
- {
- $filtered = $flipped = array_flip($this->form->getValue('typeIds'));
+ if (!isset($this->language))
+ {
+ $this->language = new QubitProperty;
+ $this->language->name = 'language';
+ $this->informationObject->propertys[] = $this->language;
+ }
- $criteria = new Criteria;
-
$this->informationObject->addObjectTermRelationsRelatedByObjectIdCriteria($criteria);
- QubitTermRelation::addJoinTermCriteria($criteria);
- $criteria->add(QubitTerm::TAXONOMY_ID,
QubitTaxonomy::MODS_RESOURCE_TYPE_ID);
+ $this->language->__set('value',
serialize($this->form->getValue('language')), array('sourceCulture' => true));
- foreach (QubitObjectTermRelation::get($criteria) as $relation)
- {
- if (isset($flipped[$relation->term->id]))
- {
- unset($filtered[$relation->term->id]);
- }
- else
- {
- $relation->delete();
- }
- }
+ break;
- foreach ($filtered as $id => $key)
- {
- $relation = new QubitObjectTermRelation;
- $relation->termId = $id;
+ case 'title':
+ $this->informationObject->title = $this->form->getValue('title');
+
+ break;
- $this->informationObject->objectTermRelationsRelatedByObjectId[] =
$relation;
+ case 'typeIds':
+ $filtered = $flipped =
array_flip($this->form->getValue('typeIds'));
+
+ $criteria = new Criteria;
+
$this->informationObject->addObjectTermRelationsRelatedByObjectIdCriteria($criteria);
+ QubitTermRelation::addJoinTermCriteria($criteria);
+ $criteria->add(QubitTerm::TAXONOMY_ID,
QubitTaxonomy::MODS_RESOURCE_TYPE_ID);
+
+ foreach (QubitObjectTermRelation::get($criteria) as $relation)
+ {
+ if (isset($flipped[$relation->term->id]))
+ {
+ unset($filtered[$relation->term->id]);
+ }
+ else
+ {
+ $relation->delete();
+ }
+ }
+
+ foreach ($filtered as $id => $key)
+ {
+ $relation = new QubitObjectTermRelation;
+ $relation->termId = $id;
+
+ $this->informationObject->objectTermRelationsRelatedByObjectId[]
= $relation;
+ }
+
+ break;
+ }
}
}
Modified:
trunk/apps/qubit/modules/informationobject/actions/editRadAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/actions/editRadAction.class.php
Tue Aug 11 11:44:42 2009 (r3000)
+++ trunk/apps/qubit/modules/informationobject/actions/editRadAction.class.php
Tue Aug 11 11:45:53 2009 (r3001)
@@ -468,401 +468,429 @@
protected function processForm()
{
- if (isset($this->request->accessConditions))
+ foreach ($this->form as $field)
{
- $this->informationObject->accessConditions =
$this->form->getValue('accessConditions');
- }
+ if (isset($this->request[$field->getName()]))
+ {
+ switch ($field->getName())
+ {
+ case 'accessConditions':
+ $this->informationObject->accessConditions =
$this->form->getValue('accessConditions');
- if (isset($this->request->accruals))
- {
- $this->informationObject->accruals = $this->form->getValue('accruals');
- }
+ break;
- if (isset($this->request->acquisition))
- {
- $this->informationObject->acquisition =
$this->form->getValue('acquisition');
- }
+ case 'accruals':
+ $this->informationObject->accruals =
$this->form->getValue('accruals');
- if (isset($this->request->alternateTitle))
- {
- $this->informationObject->alternateTitle =
$this->form->getValue('alternateTitle');
- }
+ break;
- if (isset($this->request->archivalHistory))
- {
- $this->informationObject->archivalHistory =
$this->form->getValue('archivalHistory');
- }
+ case 'acquisition':
+ $this->informationObject->acquisition =
$this->form->getValue('acquisition');
- if (isset($this->request->arrangement))
- {
- $this->informationObject->arrangement =
$this->form->getValue('arrangement');
- }
+ break;
- if (isset($this->request->descriptionIdentifier))
- {
- $this->informationObject->descriptionIdentifier =
$this->form->getValue('descriptionIdentifier');
- }
+ case 'alternateTitle':
+ $this->informationObject->alternateTitle =
$this->form->getValue('alternateTitle');
- if (isset($this->request->edition))
- {
- $this->informationObject->edition = $this->form->getValue('edition');
- }
+ break;
- if (isset($this->request->editionStatementOfResponsibility))
- {
- if (!isset($this->editionStatementOfResponsibility))
- {
- $this->editionStatementOfResponsibility = new QubitProperty;
- $this->editionStatementOfResponsibility->name =
'editionStatementOfResponsibility';
- $this->editionStatementOfResponsibility->scope = 'rad';
- $this->informationObject->propertys[] =
$this->editionStatementOfResponsibility;
- }
+ case 'archivalHistory':
+ $this->informationObject->archivalHistory =
$this->form->getValue('archivalHistory');
- $this->editionStatementOfResponsibility->value =
serialize($this->form->getValue('editionStatementOfResponsibility'));
- }
+ break;
- if (isset($this->request->extentAndMedium))
- {
- $this->informationObject->extentAndMedium =
$this->form->getValue('extentAndMedium');
- }
+ case 'arrangement':
+ $this->informationObject->arrangement =
$this->form->getValue('arrangement');
- if (isset($this->request->findingAids))
- {
- $this->informationObject->findingAids =
$this->form->getValue('findingAids');
- }
+ break;
- if (isset($this->request->identifier))
- {
- $this->informationObject->identifier =
$this->form->getValue('identifier');
- }
+ case 'descriptionIdentifier':
+ $this->informationObject->descriptionIdentifier =
$this->form->getValue('descriptionIdentifier');
- if (isset($this->request->institutionResponsibleIdentifier))
- {
- $this->informationObject->institutionResponsibleIdentifier =
$this->form->getValue('institutionResponsibleIdentifier');
- }
+ break;
- if (isset($this->request->issuingJurisdictionAndDenomination))
- {
- if (!isset($this->issuingJurisdictionAndDenomination))
- {
- $this->issuingJurisdictionAndDenomination = new QubitProperty;
- $this->issuingJurisdictionAndDenomination->name =
'issuingJurisdictionAndDenomination';
- $this->issuingJurisdictionAndDenomination->scope = 'rad';
- $this->informationObject->propertys[] =
$this->issuingJurisdictionAndDenomination;
- }
+ case 'edition':
+ $this->informationObject->edition =
$this->form->getValue('edition');
- $this->issuingJurisdictionAndDenomination->value =
serialize($this->form->getValue('issuingJurisdictionAndDenomination'));
- }
+ break;
- if (isset($this->request->language))
- {
- if (!isset($this->language))
- {
- $this->language = new QubitProperty;
- $this->language->name = 'language';
- $this->informationObject->propertys[] = $this->language;
- }
+ case 'editionStatementOfResponsibility':
- $this->language->__set('value',
serialize($this->form->getValue('language')), array('sourceCulture' => true));
- }
+ if (!isset($this->editionStatementOfResponsibility))
+ {
+ $this->editionStatementOfResponsibility = new QubitProperty;
+ $this->editionStatementOfResponsibility->name =
'editionStatementOfResponsibility';
+ $this->editionStatementOfResponsibility->scope = 'rad';
+ $this->informationObject->propertys[] =
$this->editionStatementOfResponsibility;
+ }
- if (isset($this->request->languageOfDescription))
- {
- if (!isset($this->languageOfDescription))
- {
- $this->languageOfDescription = new QubitProperty;
- $this->languageOfDescription->name = 'languageOfDescription';
- $this->informationObject->propertys[] = $this->languageOfDescription;
- }
+ $this->editionStatementOfResponsibility->value =
serialize($this->form->getValue('editionStatementOfResponsibility'));
- $this->languageOfDescription->__set('value',
serialize($this->form->getValue('languageOfDescription')),
array('sourceCulture' => true));
- }
+ break;
- if (isset($this->request->levelOfDetailId))
- {
- $this->informationObject->descriptionDetailId =
$this->form->getValue('levelOfDetailId');
- }
+ case 'extentAndMedium':
+ $this->informationObject->extentAndMedium =
$this->form->getValue('extentAndMedium');
- if (isset($this->request->locationOfCopies))
- {
- $this->informationObject->locationOfCopies =
$this->form->getValue('locationOfCopies');
- }
+ break;
- if (isset($this->request->locationOfOriginals))
- {
- $this->informationObject->locationOfOriginals =
$this->form->getValue('locationOfOriginals');
- }
+ case 'findingAids':
+ $this->informationObject->findingAids =
$this->form->getValue('findingAids');
- if (isset($this->request->noteOnPublishersSeries))
- {
- if (!isset($this->noteOnPublishersSeries))
- {
- $this->noteOnPublishersSeries = new QubitProperty;
- $this->noteOnPublishersSeries->name = 'noteOnPublishersSeries';
- $this->noteOnPublishersSeries->scope = 'rad';
- $this->informationObject->propertys[] = $this->noteOnPublishersSeries;
- }
+ break;
- $this->noteOnPublishersSeries->value =
serialize($this->form->getValue('noteOnPublishersSeries'));
- }
+ case 'identifier':
+ $this->informationObject->identifier =
$this->form->getValue('identifier');
- if (isset($this->request->numberingWithinPublishersSeries))
- {
- if (!isset($this->numberingWithinPublishersSeries))
- {
- $this->numberingWithinPublishersSeries = new QubitProperty;
- $this->numberingWithinPublishersSeries->name =
'numberingWithinPublishersSeries';
- $this->numberingWithinPublishersSeries->scope = 'rad';
- $this->informationObject->propertys[] =
$this->numberingWithinPublishersSeries;
- }
+ break;
- $this->numberingWithinPublishersSeries->value =
serialize($this->form->getValue('numberingWithinPublishersSeries'));
- }
+ case 'institutionResponsibleIdentifier':
+ $this->informationObject->institutionResponsibleIdentifier =
$this->form->getValue('institutionResponsibleIdentifier');
- if (isset($this->request->otherTitleInformation))
- {
- if (!isset($this->otherTitleInformation))
- {
- $this->otherTitleInformation = new QubitProperty;
- $this->otherTitleInformation->name = 'otherTitleInformation';
- $this->otherTitleInformation->scope = 'rad';
- $this->informationObject->propertys[] = $this->otherTitleInformation;
- }
+ break;
- $this->otherTitleInformation->value =
serialize($this->form->getValue('otherTitleInformation'));
- }
+ case 'issuingJurisdictionAndDenomination':
- if (isset($this->request->otherTitleInformationOfPublishersSeries))
- {
- if (!isset($this->otherTitleInformationOfPublishersSeries))
- {
- $this->otherTitleInformationOfPublishersSeries = new QubitProperty;
- $this->otherTitleInformationOfPublishersSeries->name =
'otherTitleInformationOfPublishersSeries';
- $this->otherTitleInformationOfPublishersSeries->scope = 'rad';
- $this->informationObject->propertys[] =
$this->otherTitleInformationOfPublishersSeries;
- }
+ if (!isset($this->issuingJurisdictionAndDenomination))
+ {
+ $this->issuingJurisdictionAndDenomination = new QubitProperty;
+ $this->issuingJurisdictionAndDenomination->name =
'issuingJurisdictionAndDenomination';
+ $this->issuingJurisdictionAndDenomination->scope = 'rad';
+ $this->informationObject->propertys[] =
$this->issuingJurisdictionAndDenomination;
+ }
- $this->otherTitleInformationOfPublishersSeries->value =
serialize($this->form->getValue('otherTitleInformationOfPublishersSeries'));
- }
+ $this->issuingJurisdictionAndDenomination->value =
serialize($this->form->getValue('issuingJurisdictionAndDenomination'));
- if (isset($this->request->parallelTitleOfPublishersSeries))
- {
- if (!isset($this->parallelTitleOfPublishersSeries))
- {
- $this->parallelTitleOfPublishersSeries = new QubitProperty;
- $this->parallelTitleOfPublishersSeries->name =
'parallelTitleOfPublishersSeries';
- $this->parallelTitleOfPublishersSeries->scope = 'rad';
- $this->informationObject->propertys[] =
$this->parallelTitleOfPublishersSeries;
- }
+ break;
- $this->parallelTitleOfPublishersSeries->value =
serialize($this->form->getValue('parallelTitleOfPublishersSeries'));
- }
+ case 'language':
- if (isset($this->request->physicalCharacteristics))
- {
- $this->informationObject->physicalCharacteristics =
$this->form->getValue('physicalCharacteristics');
- }
+ if (!isset($this->language))
+ {
+ $this->language = new QubitProperty;
+ $this->language->name = 'language';
+ $this->informationObject->propertys[] = $this->language;
+ }
- if (isset($this->request->relatedUnitsOfDescription))
- {
- $this->informationObject->relatedUnitsOfDescription =
$this->form->getValue('relatedUnitsOfDescription');
- }
+ $this->language->__set('value',
serialize($this->form->getValue('language')), array('sourceCulture' => true));
- if (isset($this->request->repositoryId))
- {
- $this->informationObject->repositoryId =
$this->form->getValue('repositoryId');
- }
+ break;
- if (isset($this->request->reproductionConditions))
- {
- $this->informationObject->reproductionConditions =
$this->form->getValue('reproductionConditions');
- }
+ case 'languageOfDescription':
- if (isset($this->request->revisionHistory))
- {
- $this->informationObject->revisionHistory =
$this->form->getValue('revisionHistory');
- }
+ if (!isset($this->languageOfDescription))
+ {
+ $this->languageOfDescription = new QubitProperty;
+ $this->languageOfDescription->name = 'languageOfDescription';
+ $this->informationObject->propertys[] =
$this->languageOfDescription;
+ }
- if (isset($this->request->rules))
- {
- $this->informationObject->rules = $this->form->getValue('rules');
- }
+ $this->languageOfDescription->__set('value',
serialize($this->form->getValue('languageOfDescription')),
array('sourceCulture' => true));
- if (isset($this->request->scopeAndContent))
- {
- $this->informationObject->scopeAndContent =
$this->form->getValue('scopeAndContent');
- }
+ break;
- if (isset($this->request->script))
- {
- if (!isset($this->script))
- {
- $this->script = new QubitProperty;
- $this->script->name = 'script';
- $this->informationObject->propertys[] = $this->script;
- }
+ case 'levelOfDetailId':
+ $this->informationObject->descriptionDetailId =
$this->form->getValue('levelOfDetailId');
- $this->script->__set('value',
serialize($this->form->getValue('script')), array('sourceCulture' => true));
- }
+ break;
- if (isset($this->request->scriptOfDescription))
- {
- if (!isset($this->scriptOfDescription))
- {
- $this->scriptOfDescription = new QubitProperty;
- $this->scriptOfDescription->name = 'scriptOfDescription';
- $this->informationObject->propertys[] = $this->scriptOfDescription;
- }
+ case 'locationOfCopies':
+ $this->informationObject->locationOfCopies =
$this->form->getValue('locationOfCopies');
- $this->scriptOfDescription->__set('value',
serialize($this->form->getValue('scriptOfDescription')), array('sourceCulture'
=> true));
- }
+ break;
- if (isset($this->request->sources))
- {
- $this->informationObject->sources = $this->form->getValue('sources');
- }
+ case 'locationOfOriginals':
+ $this->informationObject->locationOfOriginals =
$this->form->getValue('locationOfOriginals');
- if (isset($this->request->standardNumber))
- {
- if (!isset($this->standardNumber))
- {
- $this->standardNumber = new QubitProperty;
- $this->standardNumber->name = 'standardNumber';
- $this->standardNumber->scope = 'rad';
- $this->informationObject->propertys[] = $this->standardNumber;
- }
+ break;
- $this->standardNumber->value =
serialize($this->form->getValue('standardNumber'));
- }
+ case 'noteOnPublishersSeries':
- if (isset($this->request->statementOfCoordinates))
- {
- if (!isset($this->statementOfCoordinates))
- {
- $this->statementOfCoordinates = new QubitProperty;
- $this->statementOfCoordinates->name = 'statementOfCoordinates';
- $this->statementOfCoordinates->scope = 'rad';
- $this->informationObject->propertys[] = $this->statementOfCoordinates;
- }
+ if (!isset($this->noteOnPublishersSeries))
+ {
+ $this->noteOnPublishersSeries = new QubitProperty;
+ $this->noteOnPublishersSeries->name = 'noteOnPublishersSeries';
+ $this->noteOnPublishersSeries->scope = 'rad';
+ $this->informationObject->propertys[] =
$this->noteOnPublishersSeries;
+ }
- $this->statementOfCoordinates->value =
serialize($this->form->getValue('statementOfCoordinates'));
- }
+ $this->noteOnPublishersSeries->value =
serialize($this->form->getValue('noteOnPublishersSeries'));
- if (isset($this->request->statementOfProjection))
- {
- if (!isset($this->statementOfProjection))
- {
- $this->statementOfProjection = new QubitProperty;
- $this->statementOfProjection->name = 'statementOfProjection';
- $this->statementOfProjection->scope = 'rad';
- $this->informationObject->propertys[] = $this->statementOfProjection;
- }
+ break;
- $this->statementOfProjection->value =
serialize($this->form->getValue('statementOfProjection'));
- }
+ case 'numberingWithinPublishersSeries':
- if
(isset($this->request->statementOfResponsibilityRelatingToPublishersSeries))
- {
- if (!isset($this->statementOfResponsibilityRelatingToPublishersSeries))
- {
- $this->statementOfResponsibilityRelatingToPublishersSeries = new
QubitProperty;
- $this->statementOfResponsibilityRelatingToPublishersSeries->name =
'statementOfResponsibilityRelatingToPublishersSeries';
- $this->statementOfResponsibilityRelatingToPublishersSeries->scope =
'rad';
- $this->informationObject->propertys[] =
$this->statementOfResponsibilityRelatingToPublishersSeries;
- }
+ if (!isset($this->numberingWithinPublishersSeries))
+ {
+ $this->numberingWithinPublishersSeries = new QubitProperty;
+ $this->numberingWithinPublishersSeries->name =
'numberingWithinPublishersSeries';
+ $this->numberingWithinPublishersSeries->scope = 'rad';
+ $this->informationObject->propertys[] =
$this->numberingWithinPublishersSeries;
+ }
- $this->statementOfResponsibilityRelatingToPublishersSeries->value =
serialize($this->form->getValue('statementOfResponsibilityRelatingToPublishersSeries'));
- }
+ $this->numberingWithinPublishersSeries->value =
serialize($this->form->getValue('numberingWithinPublishersSeries'));
- if (isset($this->request->statementOfScaleArchitectural))
- {
- if (!isset($this->statementOfScaleArchitectural))
- {
- $this->statementOfScaleArchitectural = new QubitProperty;
- $this->statementOfScaleArchitectural->name =
'statementOfScaleArchitectural';
- $this->statementOfScaleArchitectural->scope = 'rad';
- $this->informationObject->propertys[] =
$this->statementOfScaleArchitectural;
- }
+ break;
- $this->statementOfScaleArchitectural->value =
serialize($this->form->getValue('statementOfScaleArchitectural'));
- }
+ case 'otherTitleInformation':
- if (isset($this->request->statementOfScaleCartographic))
- {
- if (!isset($this->statementOfScaleCartographic))
- {
- $this->statementOfScaleCartographic = new QubitProperty;
- $this->statementOfScaleCartographic->name =
'statementOfScaleCartographic';
- $this->statementOfScaleCartographic->scope = 'rad';
- $this->informationObject->propertys[] =
$this->statementOfScaleCartographic;
- }
+ if (!isset($this->otherTitleInformation))
+ {
+ $this->otherTitleInformation = new QubitProperty;
+ $this->otherTitleInformation->name = 'otherTitleInformation';
+ $this->otherTitleInformation->scope = 'rad';
+ $this->informationObject->propertys[] =
$this->otherTitleInformation;
+ }
- $this->statementOfScaleCartographic->value =
serialize($this->form->getValue('statementOfScaleCartographic'));
- }
+ $this->otherTitleInformation->value =
serialize($this->form->getValue('otherTitleInformation'));
- if (isset($this->request->statusId))
- {
- $this->informationObject->descriptionStatusId =
$this->form->getValue('statusId');
- }
+ break;
- if (isset($this->request->title))
- {
- $this->informationObject->title = $this->form->getValue('title');
- }
+ case 'otherTitleInformationOfPublishersSeries':
- if (isset($this->request->titleProperOfPublishersSeries))
- {
- if (!isset($this->titleProperOfPublishersSeries))
- {
- $this->titleProperOfPublishersSeries = new QubitProperty;
- $this->titleProperOfPublishersSeries->name =
'titleProperOfPublishersSeries';
- $this->titleProperOfPublishersSeries->scope = 'rad';
- $this->informationObject->propertys[] =
$this->titleProperOfPublishersSeries;
- }
+ if (!isset($this->otherTitleInformationOfPublishersSeries))
+ {
+ $this->otherTitleInformationOfPublishersSeries = new
QubitProperty;
+ $this->otherTitleInformationOfPublishersSeries->name =
'otherTitleInformationOfPublishersSeries';
+ $this->otherTitleInformationOfPublishersSeries->scope = 'rad';
+ $this->informationObject->propertys[] =
$this->otherTitleInformationOfPublishersSeries;
+ }
- $this->titleProperOfPublishersSeries->value =
serialize($this->form->getValue('titleProperOfPublishersSeries'));
- }
+ $this->otherTitleInformationOfPublishersSeries->value =
serialize($this->form->getValue('otherTitleInformationOfPublishersSeries'));
- if (isset($this->request->titleStatementOfResponsibility))
- {
- if (!isset($this->titleStatementOfResponsibility))
- {
- $this->titleStatementOfResponsibility = new QubitProperty;
- $this->titleStatementOfResponsibility->name =
'titleStatementOfResponsibility';
- $this->titleStatementOfResponsibility->scope = 'rad';
- $this->informationObject->propertys[] =
$this->titleStatementOfResponsibility;
- }
+ break;
- $this->titleStatementOfResponsibility->value =
serialize($this->form->getValue('titleStatementOfResponsibility'));
- }
+ case 'parallelTitleOfPublishersSeries':
- if (isset($this->request->typeIds))
- {
- $filtered = $flipped = array_flip($this->form->getValue('typeIds'));
+ if (!isset($this->parallelTitleOfPublishersSeries))
+ {
+ $this->parallelTitleOfPublishersSeries = new QubitProperty;
+ $this->parallelTitleOfPublishersSeries->name =
'parallelTitleOfPublishersSeries';
+ $this->parallelTitleOfPublishersSeries->scope = 'rad';
+ $this->informationObject->propertys[] =
$this->parallelTitleOfPublishersSeries;
+ }
- $criteria = new Criteria;
-
$this->informationObject->addObjectTermRelationsRelatedByObjectIdCriteria($criteria);
- QubitTermRelation::addJoinTermCriteria($criteria);
- $criteria->add(QubitTerm::TAXONOMY_ID, QubitTaxonomy::MATERIAL_TYPE_ID);
+ $this->parallelTitleOfPublishersSeries->value =
serialize($this->form->getValue('parallelTitleOfPublishersSeries'));
- foreach (QubitObjectTermRelation::get($criteria) as $relation)
- {
- if (isset($flipped[$relation->term->id]))
- {
- unset($filtered[$relation->term->id]);
- }
- else
- {
- $relation->delete();
- }
- }
+ break;
- foreach ($filtered as $id => $key)
- {
- $relation = new QubitObjectTermRelation;
- $relation->termId = $id;
+ case 'physicalCharacteristics':
+ $this->informationObject->physicalCharacteristics =
$this->form->getValue('physicalCharacteristics');
+
+ break;
+
+ case 'relatedUnitsOfDescription':
+ $this->informationObject->relatedUnitsOfDescription =
$this->form->getValue('relatedUnitsOfDescription');
+
+ break;
+
+ case 'repositoryId':
+ $this->informationObject->repositoryId =
$this->form->getValue('repositoryId');
+
+ break;
+
+ case 'reproductionConditions':
+ $this->informationObject->reproductionConditions =
$this->form->getValue('reproductionConditions');
+
+ break;
+
+ case 'revisionHistory':
+ $this->informationObject->revisionHistory =
$this->form->getValue('revisionHistory');
+
+ break;
+
+ case 'rules':
+ $this->informationObject->rules = $this->form->getValue('rules');
+
+ break;
+
+ case 'scopeAndContent':
+ $this->informationObject->scopeAndContent =
$this->form->getValue('scopeAndContent');
+
+ break;
+
+ case 'script':
+
+ if (!isset($this->script))
+ {
+ $this->script = new QubitProperty;
+ $this->script->name = 'script';
+ $this->informationObject->propertys[] = $this->script;
+ }
- $this->informationObject->objectTermRelationsRelatedByObjectId[] =
$relation;
+ $this->script->__set('value',
serialize($this->form->getValue('script')), array('sourceCulture' => true));
+
+ break;
+
+ case 'scriptOfDescription':
+
+ if (!isset($this->scriptOfDescription))
+ {
+ $this->scriptOfDescription = new QubitProperty;
+ $this->scriptOfDescription->name = 'scriptOfDescription';
+ $this->informationObject->propertys[] =
$this->scriptOfDescription;
+ }
+
+ $this->scriptOfDescription->__set('value',
serialize($this->form->getValue('scriptOfDescription')), array('sourceCulture'
=> true));
+
+ break;
+
+ case 'sources':
+ $this->informationObject->sources =
$this->form->getValue('sources');
+
+ break;
+
+ case 'standardNumber':
+
+ if (!isset($this->standardNumber))
+ {
+ $this->standardNumber = new QubitProperty;
+ $this->standardNumber->name = 'standardNumber';
+ $this->standardNumber->scope = 'rad';
+ $this->informationObject->propertys[] = $this->standardNumber;
+ }
+
+ $this->standardNumber->value =
serialize($this->form->getValue('standardNumber'));
+
+ break;
+
+ case 'statementOfCoordinates':
+
+ if (!isset($this->statementOfCoordinates))
+ {
+ $this->statementOfCoordinates = new QubitProperty;
+ $this->statementOfCoordinates->name = 'statementOfCoordinates';
+ $this->statementOfCoordinates->scope = 'rad';
+ $this->informationObject->propertys[] =
$this->statementOfCoordinates;
+ }
+
+ $this->statementOfCoordinates->value =
serialize($this->form->getValue('statementOfCoordinates'));
+
+ break;
+
+ case 'statementOfProjection':
+
+ if (!isset($this->statementOfProjection))
+ {
+ $this->statementOfProjection = new QubitProperty;
+ $this->statementOfProjection->name = 'statementOfProjection';
+ $this->statementOfProjection->scope = 'rad';
+ $this->informationObject->propertys[] =
$this->statementOfProjection;
+ }
+
+ $this->statementOfProjection->value =
serialize($this->form->getValue('statementOfProjection'));
+
+ break;
+
+ case 'statementOfResponsibilityRelatingToPublishersSeries':
+
+ if
(!isset($this->statementOfResponsibilityRelatingToPublishersSeries))
+ {
+ $this->statementOfResponsibilityRelatingToPublishersSeries = new
QubitProperty;
+ $this->statementOfResponsibilityRelatingToPublishersSeries->name
= 'statementOfResponsibilityRelatingToPublishersSeries';
+
$this->statementOfResponsibilityRelatingToPublishersSeries->scope = 'rad';
+ $this->informationObject->propertys[] =
$this->statementOfResponsibilityRelatingToPublishersSeries;
+ }
+
+ $this->statementOfResponsibilityRelatingToPublishersSeries->value
=
serialize($this->form->getValue('statementOfResponsibilityRelatingToPublishersSeries'));
+
+ break;
+
+ case 'statementOfScaleArchitectural':
+
+ if (!isset($this->statementOfScaleArchitectural))
+ {
+ $this->statementOfScaleArchitectural = new QubitProperty;
+ $this->statementOfScaleArchitectural->name =
'statementOfScaleArchitectural';
+ $this->statementOfScaleArchitectural->scope = 'rad';
+ $this->informationObject->propertys[] =
$this->statementOfScaleArchitectural;
+ }
+
+ $this->statementOfScaleArchitectural->value =
serialize($this->form->getValue('statementOfScaleArchitectural'));
+
+ break;
+
+ case 'statementOfScaleCartographic':
+
+ if (!isset($this->statementOfScaleCartographic))
+ {
+ $this->statementOfScaleCartographic = new QubitProperty;
+ $this->statementOfScaleCartographic->name =
'statementOfScaleCartographic';
+ $this->statementOfScaleCartographic->scope = 'rad';
+ $this->informationObject->propertys[] =
$this->statementOfScaleCartographic;
+ }
+
+ $this->statementOfScaleCartographic->value =
serialize($this->form->getValue('statementOfScaleCartographic'));
+
+ break;
+
+ case 'statusId':
+ $this->informationObject->descriptionStatusId =
$this->form->getValue('statusId');
+
+ break;
+
+ case 'title':
+ $this->informationObject->title = $this->form->getValue('title');
+
+ break;
+
+ case 'titleProperOfPublishersSeries':
+
+ if (!isset($this->titleProperOfPublishersSeries))
+ {
+ $this->titleProperOfPublishersSeries = new QubitProperty;
+ $this->titleProperOfPublishersSeries->name =
'titleProperOfPublishersSeries';
+ $this->titleProperOfPublishersSeries->scope = 'rad';
+ $this->informationObject->propertys[] =
$this->titleProperOfPublishersSeries;
+ }
+
+ $this->titleProperOfPublishersSeries->value =
serialize($this->form->getValue('titleProperOfPublishersSeries'));
+
+ break;
+
+ case 'titleStatementOfResponsibility':
+
+ if (!isset($this->titleStatementOfResponsibility))
+ {
+ $this->titleStatementOfResponsibility = new QubitProperty;
+ $this->titleStatementOfResponsibility->name =
'titleStatementOfResponsibility';
+ $this->titleStatementOfResponsibility->scope = 'rad';
+ $this->informationObject->propertys[] =
$this->titleStatementOfResponsibility;
+ }
+
+ $this->titleStatementOfResponsibility->value =
serialize($this->form->getValue('titleStatementOfResponsibility'));
+
+ break;
+
+ case 'typeIds':
+ $filtered = $flipped =
array_flip($this->form->getValue('typeIds'));
+
+ $criteria = new Criteria;
+
$this->informationObject->addObjectTermRelationsRelatedByObjectIdCriteria($criteria);
+ QubitTermRelation::addJoinTermCriteria($criteria);
+ $criteria->add(QubitTerm::TAXONOMY_ID,
QubitTaxonomy::MATERIAL_TYPE_ID);
+
+ foreach (QubitObjectTermRelation::get($criteria) as $relation)
+ {
+ if (isset($flipped[$relation->term->id]))
+ {
+ unset($filtered[$relation->term->id]);
+ }
+ else
+ {
+ $relation->delete();
+ }
+ }
+
+ foreach ($filtered as $id => $key)
+ {
+ $relation = new QubitObjectTermRelation;
+ $relation->termId = $id;
+
+ $this->informationObject->objectTermRelationsRelatedByObjectId[]
= $relation;
+ }
+
+ break;
+ }
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---