protected function _getLdapFieldsValidationRules() {
		$result = [];
		$ldapFields = $this->_modelConfigSync->getLdapFieldsInfo();
		if (empty($ldapFields)) {
			return $result;
		}

		$localFields = $this->getListLocalFields();
		if (empty($localFields)) {
			return $result;
		}

		foreach ($ldapFields as $ldapFieldName => $ldapFieldInfo) {
			if (!isset($ldapFieldInfo['rules']) || empty($ldapFieldInfo['rules'])) {
				continue;
			}

			if (!in_array($ldapFieldName, $localFields)) {
				continue;
			}

			$result[$ldapFieldName] = $ldapFieldInfo['rules'];
		}

		return $result;
	}
protected function _getLdapFieldsValidationRules() {
		$result = [];
		$ldapFields = $this->_modelConfigSync->getLdapFieldsInfo();
		if (empty($ldapFields)) {
			return $result;
		}

		$localFields = $this->getListLocalFields();
		if (empty($localFields)) {
			return $result;
		}

		foreach ($ldapFields as $ldapFieldName => $ldapFieldInfo) {
			if (!isset($ldapFieldInfo['rules']) || empty($ldapFieldInfo['rules'])) {
				continue;
			}

			if (!in_array($ldapFieldName, $localFields)) {
				continue;
			}

			$result[$ldapFieldName] = $ldapFieldInfo['rules'];
		}

		return $result;
	}
protected function _getLdapFieldsValidationRules ( ) { $ result = [ ] ; $ ldapFields = $ this -> _modelConfigSync -> getLdapFieldsInfo ( ) ; if ( empty ( $ ldapFields ) ) { return $ result ; } $ localFields = $ this -> getListLocalFields ( ) ; if ( empty ( $ localFields ) ) { return $ result ; } foreach ( $ ldapFields as $ ldapFieldName => $ ldapFieldInfo ) { if ( ! isset ( $ ldapFieldInfo [ 'rules' ] ) || empty ( $ ldapFieldInfo [ 'rules' ] ) ) { continue ; } if ( ! in_array ( $ ldapFieldName , $ localFields ) ) { continue ; } $ result [ $ ldapFieldName ] = $ ldapFieldInfo [ 'rules' ] ; } return $ result ; }
Return list of validation rules for `ldap` fields

@return array Return list of validation rules.
Return list of validation rules for ldap fields