瀏覽代碼

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();