Commits

Sidharth Kuruvila committed 4a48406

Added a method for creating checkbox fields

Comments (0)

Files changed (1)

updates/UpdateUtils.php

   function textField($fieldName){
     $this->createField($fieldName, array('uiType'=>2));
   }
+
+
+  /** 
+   * Create a checkbox field
+   */
+  function checkboxField($fieldName){
+    $this->createField($fieldName, array('uiType'=>56, 'typeOfData' => 'C~O', 'columnType' => 'VARCHAR(3) DEFAULT 0'));
+  }
   /**
    * Create a new field
    * 
   }
 }
 
-?>
+?>