Author: david
Date: Thu Sep 24 10:33:37 2009
New Revision: 3494
Log:
Add information object ROOT_ID to root object.
Modified:
trunk/lib/task/migrate/QubitMigrate107to108.class.php
Modified: trunk/lib/task/migrate/QubitMigrate107to108.class.php
==============================================================================
--- trunk/lib/task/migrate/QubitMigrate107to108.class.php Thu Sep 24
09:53:58 2009 (r3493)
+++ trunk/lib/task/migrate/QubitMigrate107to108.class.php Thu Sep 24
10:33:37 2009 (r3494)
@@ -37,6 +37,9 @@
// Delete "stub" objects
$this->deleteStubObjects();
+ // Add ROOT_ID to root information object
+ $this->addInformationObjectRootId();
+
// Insert new taxonomy and terms
$this->addAclGroups();
$this->addAclActions();
@@ -78,6 +81,16 @@
return $this;
}
+ protected function addInformationObjectRootId()
+ {
+ if (null !== ($rootInformationObjectKey =
$this->getRowKey('QubitInformationObject', 'lft', '1')))
+ {
+ $this->data['QubitInformationObject'][$rootInformationObjectKey]['id'] =
'<?php echo QubitInformationObject::ROOT_ID."\n" ?>';
+ }
+
+ return $this;
+ }
+
protected function addAclGroups()
{
$this->data['QubitAclGroup'] = array(
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---