|
|
@@ -105,6 +105,11 @@ XMLEOF;
|
|
|
$xsdDatePattern = '[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}';
|
|
|
$xsdRestrictions[] = '<xs:pattern value="' . $xsdDatePattern . '"/>';
|
|
|
}
|
|
|
+ else if (substr($colType, 0, 4) == 'year') {
|
|
|
+ $xsdType = 'token';
|
|
|
+ $xsdDatePattern = '[0-9]{4}';
|
|
|
+ $xsdRestrictions[] = '<xs:pattern value="' . $xsdDatePattern . '"/>';
|
|
|
+ }
|
|
|
else if (substr($colType, 0, 4) == 'enum') {
|
|
|
$xsdType = 'string';
|
|
|
|