/**
  * Generates the SQL to select the required fields.
  * This makes sure the form is cached and up to date.
  * See I2CE_FormStoage_DB for additional comments on parameters.
  * @see I2CE_FormStorage_DB::getRecords
  */
 public function getFields($form, $fields = array(), $parent, $where_data = array(), $ordering = array(), $limit = false, $field_reference_callback = null, $mod_time = -1, $user = false)
 {
     $cachedForm = new I2CE_CachedForm($form);
     $cachedForm->generateCachedTable(false);
     unset($cachedForm);
     return parent::getFields($form, $fields, $parent, $where_data, $ordering, $limit, $field_reference_callback, $mod_time, $user);
 }
 /**
  * Generates the SQL to select the required fields.
  * This makes sure the form is cached and up to date.
  * See I2CE_FormStoage_DB for additional comments on parameters.
  * @see I2CE_FormStorage_DB::getRecords
  */
 public function getFields($form, $fields = array(), $parent, $where_data = array(), $ordering = array(), $limit = false, $field_reference_callback = null, $mod_time = -1, $user = false)
 {
     try {
         $cachedForm = new I2CE_CachedForm($form);
     } catch (Exception $e) {
         I2CE::raiseError("Could not cache form {$form}");
         return false;
     }
     $cachedForm->generateCachedTable();
     unset($cachedForm);
     return parent::getFields($form, $fields, $parent, $where_data, $ordering, $limit, $field_reference_callback, $mod_time, $user);
 }