get_table_field_types() public static méthode

public static get_table_field_types ( )
 function getCMSFields()
 {
     $fields = parent::getCMSFields();
     $fieldList = array("Country" => "Country", "State" => "State", "City" => "City", "PostalCode" => "PostCode", "WeightMin" => "WeightMin", "WeightMax" => "WeightMax", "VolumeMin" => "VolumeMin", "VolumeMax" => "VolumeMax", "ValueMin" => "ValueMin", "ValueMax" => "ValueMax", "QuantityMin" => "QuantityMin", "QuantityMax" => "QuantityMax", "Rate" => "Rate");
     $fieldTypes = array_merge(RegionRestriction::get_table_field_types(), array("WeightMin" => "TextField", "WeightMax" => "TextField", "VolumeMin" => "TextField", "VolumeMax" => "TextField", "ValueMin" => "TextField", "ValueMax" => "TextField", "QuantityMin" => "TextField", "QuantityMax" => "TextField", "Rate" => "TextField"));
     $fields->fieldByName('Root')->removeByName("Rates");
     if ($this->isInDB()) {
         $tablefield = new TableField("Rates", "TableShippingRate", $fieldList, $fieldTypes);
         $tablefield->setCustomSourceItems($this->Rates());
         $fields->addFieldToTab("Root.Main", $tablefield);
     }
     return $fields;
 }
 function getCMSFields()
 {
     $fields = parent::getCMSFields();
     $fieldList = array_merge(RegionRestriction::$field_labels, array('Rate' => 'Rate', 'Name' => 'Name'));
     $fieldTypes = array_merge(RegionRestriction::get_table_field_types(), array('Rate' => 'TextField', 'Name' => 'TextField'));
     $fields->fieldByName("Root")->removeByName('TaxRates');
     //remove tax rates tab
     if ($this->isInDB()) {
         $tablefield = new TableField("TaxRates", "TaxRate", $fieldList, $fieldTypes);
         $tablefield->setCustomSourceItems($this->TaxRates());
         $fields->addFieldsToTab("Root.Main", array(new LabelField("TaxRatesHelp", "Enter tax class rates for specific regions. Rates should be entered in decimal form, for example 0.05 = 5%."), $tablefield));
     }
     return $fields;
 }