Example #1
0
 /**
  * Alter the default field set
  *
  * @return array
  */
 protected function getTestRatesSchema()
 {
     $result = parent::getTestRatesSchema();
     $result[static::SCHEMA_FIELD_SRC_COUNTRY][static::SCHEMA_CLASS] = 'XLite\\View\\FormField\\Input\\Text';
     $result[static::SCHEMA_FIELD_SRC_COUNTRY][static::SCHEMA_ATTRIBUTES] = array('readonly' => 'readonly');
     return $result;
 }
Example #2
0
 /**
  * Get fields for schema
  *
  * @return array
  */
 protected function getTestRatesSchema()
 {
     $fields = array();
     foreach ($this->schemaTestRates as $fieldName => $field) {
         $fields[$fieldName] = $field;
         if ($fieldName == static::SCHEMA_FIELD_WEIGHT) {
             $fields[static::SCHEMA_FIELD_DIMENSIONS] = array(self::SCHEMA_CLASS => 'XLite\\Module\\XC\\AuctionInc\\View\\FormField\\Input\\Dimensions', self::SCHEMA_LABEL => 'Dimensions');
         }
     }
     $this->schemaTestRates = $fields;
     $this->schemaTestRates[static::SCHEMA_FIELD_SEP_SRC_ADDRESS][static::SCHEMA_LABEL] = 'Origin address';
     return parent::getTestRatesSchema();
 }