Author: david
Date: Wed Nov 18 13:43:12 2009
New Revision: 3912

Log:
Add ISDF function types to 1.1 migration script.

Modified:
   trunk/lib/task/migrate/QubitMigrate108to110.class.php

Modified: trunk/lib/task/migrate/QubitMigrate108to110.class.php
==============================================================================
--- trunk/lib/task/migrate/QubitMigrate108to110.class.php       Wed Nov 18 
11:39:47 2009        (r3911)
+++ trunk/lib/task/migrate/QubitMigrate108to110.class.php       Wed Nov 18 
13:43:12 2009        (r3912)
@@ -37,6 +37,9 @@
     // Delete "stub" objects
     $this->deleteStubObjects();
 
+    // Add function taxonomies and terms
+    $this->addIsdfFunctionTypes();
+
     // Alter table data
     $this->alterQubitSettings();
     $this->alterQubitStaticPages();
@@ -62,6 +65,58 @@
   }
 
   /**
+   * Add ISDF function types to 'Function' taxonomy
+   *
+   * @return QubitMigrate107to108 this object
+   */
+  protected function addIsdfFunctionTypes()
+  {
+    $this->data['QubitTerm']['QubitTerm_function_function'] = array(
+      'taxonomy_id' => '<?php echo QubitTaxonomy::FUNCTION_ID."\n" ?>',
+      'parent_id' => '<?php echo QubitTerm::ROOT_ID."\n" ?>',
+      'source_culture' => 'en',
+      'name' => array(
+        'de' => 'Funktion',
+        'en' => 'Function',
+        'es' => 'Funcion',
+        'fr' => 'Fonction'
+      )
+    );
+    $this->data['QubitTerm']['QubitTerm_function_Subfunction'] = array(
+      'taxonomy_id' => '<?php echo QubitTaxonomy::FUNCTION_ID."\n" ?>',
+      'parent_id' => '<?php echo QubitTerm::ROOT_ID."\n" ?>',
+      'source_culture' => 'en',
+      'name' => array('en' => 'Subfunction')
+    );
+    $this->data['QubitTerm']['QubitTerm_function_Business_process'] = array(
+      'taxonomy_id' => '<?php echo QubitTaxonomy::FUNCTION_ID."\n" ?>',
+      'parent_id' => '<?php echo QubitTerm::ROOT_ID."\n" ?>',
+      'source_culture' => 'en',
+      'name' => array('en' => 'Business process')
+    );
+    $this->data['QubitTerm']['QubitTerm_function_Activity'] = array(
+      'taxonomy_id' => '<?php echo QubitTaxonomy::FUNCTION_ID."\n" ?>',
+      'parent_id' => '<?php echo QubitTerm::ROOT_ID."\n" ?>',
+      'source_culture' => 'en',
+      'name' => array('en' => 'Activity')
+    );
+    $this->data['QubitTerm']['QubitTerm_function_Task'] = array(
+      'taxonomy_id' => '<?php echo QubitTaxonomy::FUNCTION_ID."\n" ?>',
+      'parent_id' => '<?php echo QubitTerm::ROOT_ID."\n" ?>',
+      'source_culture' => 'en',
+      'name' => array('en' => 'Task')
+    );
+    $this->data['QubitTerm']['QubitTerm_function_Transaction'] = array(
+      'taxonomy_id' => '<?php echo QubitTaxonomy::FUNCTION_ID."\n" ?>',
+      'parent_id' => '<?php echo QubitTerm::ROOT_ID."\n" ?>',
+      'source_culture' => 'en',
+      'name' => array('en' => 'Transaction')
+    );
+
+    return $this;
+  }
+
+  /**
    * Alter QubitSetting data
    *
    * @return QubitMigrate107to108 this object
@@ -76,6 +131,8 @@
         $this->data['QubitSetting'][$settingVersionKey]['value'][$culture] = 
preg_replace('/1\.0\.8(\.1)?/', '1.1.0', $value);
       }
     }
+
+    return $this;
   }
 
   /**

--

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.com/group/qubit-commits?hl=en.


Reply via email to