Author: sevein
Date: Sun Oct 10 11:45:11 2010
New Revision: 8051

Log:
Bump data version and update migration script in order to add function as an UI 
label QubitSetting.

Modified:
   trunk/data/fixtures/settings.yml
   trunk/lib/task/migrate/QubitMigrate109.class.php

Modified: trunk/data/fixtures/settings.yml
==============================================================================
--- trunk/data/fixtures/settings.yml    Sun Oct 10 11:23:15 2010        (r8050)
+++ trunk/data/fixtures/settings.yml    Sun Oct 10 11:45:11 2010        (r8051)
@@ -3,7 +3,7 @@
     name: version
     editable: 0
     deleteable: 0
-    value: 49
+    value: 50
   QubitSetting_2:
     name: upload_dir
     editable: 0

Modified: trunk/lib/task/migrate/QubitMigrate109.class.php
==============================================================================
--- trunk/lib/task/migrate/QubitMigrate109.class.php    Sun Oct 10 11:23:15 
2010        (r8050)
+++ trunk/lib/task/migrate/QubitMigrate109.class.php    Sun Oct 10 11:45:11 
2010        (r8051)
@@ -65,6 +65,9 @@
 
       case 48:
         $this->addShowTooltipsSetting();
+
+      case 49:
+        $this->addFunctionUiLabel();
     }
 
     // Delete "stub" objects
@@ -380,6 +383,28 @@
   }
 
   /**
+   * Ver 50: Add "function" UI label QubitSetting
+   *
+   * @return QubitMigrate109 this object
+   */
+  protected function addFunctionUiLabel()
+  {
+    $this->data['QubitSetting']['function_ui_label'] = array(
+      'name' => 'function',
+      'scope' => 'ui_label',
+      'editable' => 1,
+      'deleteable' => 0,
+      'source_culture' => 'en',
+      'value' => array(
+        'en' => 'Function',
+        'es' => 'Función',
+        'fr' => 'Fonction',
+        'pt' => 'Funçao'));
+
+    return $this;
+  }
+  
+  /**
    * Sort information objects by lft value so that parent objects are inserted
    * before their children.
    *

-- 
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