فهرست منبع

Merge branch 'master' of ssh://biuro.biall-net.pl:2222/plabudda/se

a.binder 8 سال پیش
والد
کامیت
00ca7452e6
1فایلهای تغییر یافته به همراه12 افزوده شده و 0 حذف شده
  1. 12 0
      SE/se-lib/AntAclBase.php

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

@@ -124,6 +124,18 @@ class AntAclBase extends Core_AclBase {
 	//   $field = $this->_getField($fieldName);
 	//   return $field['xsdType'];
 	// }
+	public function getField($idField) {
+		DBG::log($this->getFields(), 'array', "fields");
+		foreach ($this->getFields() as $field) {
+			if (!$field['isActive']) continue;
+			if (!$field['idZasob']) continue;
+			if ($idField == $field['idZasob']) {
+				$field['name'] = $field['fieldNamespace'];
+				return $field;
+			}
+		}
+		return null;
+	}
 	public function getXsdFieldType($fieldName) {
 		$field = $this->_getField($fieldName);
 		return $field['xsdType'];