code: function FieldValidator(rules, config)
      {
          this.rules      = rules;
          this.fieldLabel = undefined;
          if (config) {
              this.setConfig(config);
          }
      }
docs: Object to validate rules again data field
  @param array  rules  list of rules to apply
  @param object config configuration object