Explorar o código

added missing getXsdTypes in AntAclBase

Piotr Labudda %!s(int64=8) %!d(string=hai) anos
pai
achega
2cca4658bf
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      SE/se-lib/AntAclBase.php

+ 8 - 0
SE/se-lib/AntAclBase.php

@@ -89,6 +89,14 @@ class AntAclBase extends Core_AclBase {
 		}
 		}
 	}
 	}
 
 
+	public function getXsdTypes() { // @returns [ fieldName => xsdType, ... ]
+		$fields = $this->getFields();
+		return array_combine(
+			array_map( V::makePick('fieldNamespace'), $fields ),
+			array_map( V::makePick('xsdType'), $fields )
+		);
+	}
+
 	public function getVisibleFieldListByIdZasob() {
 	public function getVisibleFieldListByIdZasob() {
 		$this->_fetchInfoFromZasobyIfNeeded();
 		$this->_fetchInfoFromZasobyIfNeeded();
 		$fields = $this->getRealFieldListByIdZasob();
 		$fields = $this->getRealFieldListByIdZasob();