protected function _createPaginationTableRow($paginationFields = null) {
		$result = '';
		if (empty($paginationFields) || !is_array($paginationFields)) {
			return $result;
		}

		$tableHeader = [];
		$includeOptions = [
			'class' => null,
			'escape' => null,
		];
		foreach ($paginationFields as $paginationField => $paginationOptions) {
			if (is_int($paginationField)) {
				if (!is_string($paginationOptions)) {
					continue;
				}

				$paginationField = $paginationOptions;
				$paginationOptions = [];
			}
			if (strpos($paginationField, '.') === false) {
				continue;
			}

			if (!is_array($paginationOptions)) {
				$paginationOptions = [$paginationOptions];
			}

			$paginationFieldUse = $paginationField;
			if (isset($paginationOptions['pagination-field']) && !empty($paginationOptions['pagination-field'])) {
				$paginationFieldUse = $paginationOptions['pagination-field'];
			}
			$label = $paginationFieldUse;
			if (isset($paginationOptions['label']) && !empty($paginationOptions['label'])) {
				$label = $paginationOptions['label'];
			}

			$paginationSortLink = $label;
			$paginationOptionsUse = array_intersect_key($paginationOptions, $includeOptions);
			if (!isset($paginationOptions['disabled']) || !$paginationOptions['disabled']) {
				$paginationSortLink = $this->ViewExtension->paginationSortPjax($paginationFieldUse, $label, $paginationOptionsUse);
			}

			if (isset($paginationOptions['class-header']) && !empty($paginationOptions['class-header'])) {
				$paginationSortLink = [$paginationSortLink => ['class' => $paginationOptions['class-header']]];
			}
			$tableHeader[] = $paginationSortLink;
		}
		$tableHeader[] = [$this->_getOptionsForElem('paginTableRowHeaderActTitle') => ['class' => 'action hide-popup']];
		$result = $this->Html->tableHeaders($tableHeader);

		return $result;
	}
protected function _createPaginationTableRow($paginationFields = null) {
		$result = '';
		if (empty($paginationFields) || !is_array($paginationFields)) {
			return $result;
		}

		$tableHeader = [];
		$includeOptions = [
			'class' => null,
			'escape' => null,
		];
		foreach ($paginationFields as $paginationField => $paginationOptions) {
			if (is_int($paginationField)) {
				if (!is_string($paginationOptions)) {
					continue;
				}

				$paginationField = $paginationOptions;
				$paginationOptions = [];
			}
			if (strpos($paginationField, '.') === false) {
				continue;
			}

			if (!is_array($paginationOptions)) {
				$paginationOptions = [$paginationOptions];
			}

			$paginationFieldUse = $paginationField;
			if (isset($paginationOptions['pagination-field']) && !empty($paginationOptions['pagination-field'])) {
				$paginationFieldUse = $paginationOptions['pagination-field'];
			}
			$label = $paginationFieldUse;
			if (isset($paginationOptions['label']) && !empty($paginationOptions['label'])) {
				$label = $paginationOptions['label'];
			}

			$paginationSortLink = $label;
			$paginationOptionsUse = array_intersect_key($paginationOptions, $includeOptions);
			if (!isset($paginationOptions['disabled']) || !$paginationOptions['disabled']) {
				$paginationSortLink = $this->ViewExtension->paginationSortPjax($paginationFieldUse, $label, $paginationOptionsUse);
			}

			if (isset($paginationOptions['class-header']) && !empty($paginationOptions['class-header'])) {
				$paginationSortLink = [$paginationSortLink => ['class' => $paginationOptions['class-header']]];
			}
			$tableHeader[] = $paginationSortLink;
		}
		$tableHeader[] = [$this->_getOptionsForElem('paginTableRowHeaderActTitle') => ['class' => 'action hide-popup']];
		$result = $this->Html->tableHeaders($tableHeader);

		return $result;
	}
protected function _createPaginationTableRow ( $ paginationFields = null ) { $ result = '' ; if ( empty ( $ paginationFields ) || ! is_array ( $ paginationFields ) ) { return $ result ; } $ tableHeader = [ ] ; $ includeOptions = [ 'class' => null , 'escape' => null , ] ; foreach ( $ paginationFields as $ paginationField => $ paginationOptions ) { if ( is_int ( $ paginationField ) ) { if ( ! is_string ( $ paginationOptions ) ) { continue ; } $ paginationField = $ paginationOptions ; $ paginationOptions = [ ] ; } if ( strpos ( $ paginationField , '.' ) === false ) { continue ; } if ( ! is_array ( $ paginationOptions ) ) { $ paginationOptions = [ $ paginationOptions ] ; } $ paginationFieldUse = $ paginationField ; if ( isset ( $ paginationOptions [ 'pagination-field' ] ) && ! empty ( $ paginationOptions [ 'pagination-field' ] ) ) { $ paginationFieldUse = $ paginationOptions [ 'pagination-field' ] ; } $ label = $ paginationFieldUse ; if ( isset ( $ paginationOptions [ 'label' ] ) && ! empty ( $ paginationOptions [ 'label' ] ) ) { $ label = $ paginationOptions [ 'label' ] ; } $ paginationSortLink = $ label ; $ paginationOptionsUse = array_intersect_key ( $ paginationOptions , $ includeOptions ) ; if ( ! isset ( $ paginationOptions [ 'disabled' ] ) || ! $ paginationOptions [ 'disabled' ] ) { $ paginationSortLink = $ this -> ViewExtension -> paginationSortPjax ( $ paginationFieldUse , $ label , $ paginationOptionsUse ) ; } if ( isset ( $ paginationOptions [ 'class-header' ] ) && ! empty ( $ paginationOptions [ 'class-header' ] ) ) { $ paginationSortLink = [ $ paginationSortLink => [ 'class' => $ paginationOptions [ 'class-header' ] ] ] ; } $ tableHeader [ ] = $ paginationSortLink ; } $ tableHeader [ ] = [ $ this -> _getOptionsForElem ( 'paginTableRowHeaderActTitle' ) => [ 'class' => 'action hide-popup' ] ] ; $ result = $ this -> Html -> tableHeaders ( $ tableHeader ) ; return $ result ; }
Returns a row of table headers with pagination links

@param array $paginationFields Array of fields for pagination in format:
- `key`: field of filter in format `model.field`;
- `value`: HTML options for pagination link.
If pagination field is not equal filter form input field, use
option: `pagination-field` => `model.field`.
For disable pagination, use option: `disabled` => true.
For setting class of header cell, use option `class-header` => `class-name`.

@return string Row of table headers with pagination links.
Returns a row of table headers with pagination links