public function getListFieldsLabelExtend($useAlternative = false, $excludeFields = null) {
		$language = (string)Configure::read('Config.language');
		$cachePath = 'local_fields_label_ext_' .
			md5(serialize(func_get_args()) . '_' . $language);
		$cached = Cache::read($cachePath, CAKE_LDAP_CACHE_KEY_LDAP_SYNC_DB);
		if ($cached !== false) {
			return $cached;
		}

		$fieldsInfo = $this->getExtendFieldsInfo();
		$result = $this->_getLabelForFields($fieldsInfo, $useAlternative, true);
		if (!empty($excludeFields)) {
			$result = array_diff_key($result, array_flip((array)$excludeFields));
		}

		Cache::write($cachePath, $result, CAKE_LDAP_CACHE_KEY_LDAP_SYNC_DB);

		return $result;
	}
public function getListFieldsLabelExtend($useAlternative = false, $excludeFields = null) {
		$language = (string)Configure::read('Config.language');
		$cachePath = 'local_fields_label_ext_' .
			md5(serialize(func_get_args()) . '_' . $language);
		$cached = Cache::read($cachePath, CAKE_LDAP_CACHE_KEY_LDAP_SYNC_DB);
		if ($cached !== false) {
			return $cached;
		}

		$fieldsInfo = $this->getExtendFieldsInfo();
		$result = $this->_getLabelForFields($fieldsInfo, $useAlternative, true);
		if (!empty($excludeFields)) {
			$result = array_diff_key($result, array_flip((array)$excludeFields));
		}

		Cache::write($cachePath, $result, CAKE_LDAP_CACHE_KEY_LDAP_SYNC_DB);

		return $result;
	}
public function getListFieldsLabelExtend ( $ useAlternative = false , $ excludeFields = null ) { $ language = ( string ) Configure :: read ( 'Config.language' ) ; $ cachePath = 'local_fields_label_ext_' . md5 ( serialize ( func_get_args ( ) ) . '_' . $ language ) ; $ cached = Cache :: read ( $ cachePath , CAKE_LDAP_CACHE_KEY_LDAP_SYNC_DB ) ; if ( $ cached !== false ) { return $ cached ; } $ fieldsInfo = $ this -> getExtendFieldsInfo ( ) ; $ result = $ this -> _getLabelForFields ( $ fieldsInfo , $ useAlternative , true ) ; if ( ! empty ( $ excludeFields ) ) { $ result = array_diff_key ( $ result , array_flip ( ( array ) $ excludeFields ) ) ; } Cache :: write ( $ cachePath , $ result , CAKE_LDAP_CACHE_KEY_LDAP_SYNC_DB ) ; return $ result ; }
Return list of labels for extended fields order by Priority

@param bool $useAlternative If True, use alternative label,
or normanl label otherwise.
@param array|string $excludeFields List of fields for excluding
from result
@return array Return list of labels for fields.
Return list of labels for extended fields order by Priority