public function __construct($options = null) { if (is_array($options)) { // Received if (array_key_exists('localeFieldName', $options)) { $this->setLocaleFieldName($options['localeFieldName']); } $options['format'] = "/.*/"; } parent::__construct($options); }
public function __construct($options = null) { $this->_messageTemplates[self::INVALID] = trlKwfStatic("Invalid type given. The value should be a string or a integer"); $this->_messageTemplates[self::NO_MATCH] = trlKwfStatic("'%value%' does not appear to be a postal code"); parent::__construct($options); }