Преглед изворни кода

added missing getXsdTypes in AntAclBase

Piotr Labudda пре 8 година
родитељ
комит
2cca4658bf
1 измењених фајлова са 8 додато и 0 уклоњено
  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() {
 		$this->_fetchInfoFromZasobyIfNeeded();
 		$fields = $this->getRealFieldListByIdZasob();