|
|
@@ -2014,10 +2014,12 @@ class TableAcl extends Core_AclBase {
|
|
|
}
|
|
|
|
|
|
public function getXsdTypes() { // @returns [ fieldName => xsdType, ... ]
|
|
|
- $thisGetXsdType = [ $this, 'getXsdFieldType' ];
|
|
|
- return array_map(function ($field) use ($thisGetXsdType) {
|
|
|
- return $thisGetXsdType( $field['name'] );
|
|
|
- }, $this->getFields());
|
|
|
+ $xsdTypes = [];
|
|
|
+ foreach ($this->getFields() as $field) {
|
|
|
+ $fieldName = $field['name'];
|
|
|
+ $xsdTypes[ $fieldName ] = $this->getXsdFieldType( $fieldName );
|
|
|
+ }
|
|
|
+ return $xsdTypes;
|
|
|
}
|
|
|
public function getFieldsWithXsdTypes() {
|
|
|
$xsdTypes = [];
|