public function createGroupActionControls($formInputs = null, $groupActions = null, $useSelectAll = false) {
		$result = '';
		if (empty($formInputs) || !is_array($formInputs) ||
			(!empty($groupActions) && !is_array($groupActions)) ||
			(empty($groupActions) && !$useSelectAll)) {
			return $result;
		}
		if (empty($groupActions)) {
			$groupActions = [];
		}

		$colspan = null;
		$countFormInputs = count($formInputs);
		if ($countFormInputs > 2) {
			$colspan = $countFormInputs;
		}
		$selectOptions = [];
		foreach ($groupActions as $value => $text) {
			$selectOptions[] = compact('text', 'value');
		}

		$tableFoother = [];
		if ($useSelectAll) {
			if (!empty($colspan)) {
				$colspan--;
			}
			$tableFoother[] = $this->_getOptionsForElem('createGroupActionControls.selectAllBtn');
		}
		$inputField = '';
		if (!empty($selectOptions)) {
			$this->ExtBs3Form->unlockField('FilterGroup.action');
			$tableFoother[] = [
				$this->ExtBs3Form->hidden('FilterGroup.action') . $this->_getOptionsForElem('createGroupActionControls.groupDataProcTitle'),
				['colspan' => $colspan, 'class' => 'text-center']
			];
			$btnOptions = ['data-dialog-sel-options' => htmlentities(json_encode($selectOptions))];
			$optionsDefault = $this->_getOptionsForElem('createGroupActionControls.performActionBtn');
			$tableFoother[] = [
				$this->ViewExtension->button(
					'fas fa-cog',
					'btn-warning',
					$btnOptions + $optionsDefault
				),
				['class' => 'action text-center']];
		} else {
			if (!empty($colspan)) {
				$colspan++;
			}
			$tableFoother[] = ['',
				['colspan' => $colspan]];
		}

		$result = $this->Html->tableCells([$tableFoother], ['class' => 'active'], ['class' => 'active']);

		return $result;
	}
public function createGroupActionControls($formInputs = null, $groupActions = null, $useSelectAll = false) {
		$result = '';
		if (empty($formInputs) || !is_array($formInputs) ||
			(!empty($groupActions) && !is_array($groupActions)) ||
			(empty($groupActions) && !$useSelectAll)) {
			return $result;
		}
		if (empty($groupActions)) {
			$groupActions = [];
		}

		$colspan = null;
		$countFormInputs = count($formInputs);
		if ($countFormInputs > 2) {
			$colspan = $countFormInputs;
		}
		$selectOptions = [];
		foreach ($groupActions as $value => $text) {
			$selectOptions[] = compact('text', 'value');
		}

		$tableFoother = [];
		if ($useSelectAll) {
			if (!empty($colspan)) {
				$colspan--;
			}
			$tableFoother[] = $this->_getOptionsForElem('createGroupActionControls.selectAllBtn');
		}
		$inputField = '';
		if (!empty($selectOptions)) {
			$this->ExtBs3Form->unlockField('FilterGroup.action');
			$tableFoother[] = [
				$this->ExtBs3Form->hidden('FilterGroup.action') . $this->_getOptionsForElem('createGroupActionControls.groupDataProcTitle'),
				['colspan' => $colspan, 'class' => 'text-center']
			];
			$btnOptions = ['data-dialog-sel-options' => htmlentities(json_encode($selectOptions))];
			$optionsDefault = $this->_getOptionsForElem('createGroupActionControls.performActionBtn');
			$tableFoother[] = [
				$this->ViewExtension->button(
					'fas fa-cog',
					'btn-warning',
					$btnOptions + $optionsDefault
				),
				['class' => 'action text-center']];
		} else {
			if (!empty($colspan)) {
				$colspan++;
			}
			$tableFoother[] = ['',
				['colspan' => $colspan]];
		}

		$result = $this->Html->tableCells([$tableFoother], ['class' => 'active'], ['class' => 'active']);

		return $result;
	}
public function createGroupActionControls ( $ formInputs = null , $ groupActions = null , $ useSelectAll = false ) { $ result = '' ; if ( empty ( $ formInputs ) || ! is_array ( $ formInputs ) || ( ! empty ( $ groupActions ) && ! is_array ( $ groupActions ) ) || ( empty ( $ groupActions ) && ! $ useSelectAll ) ) { return $ result ; } if ( empty ( $ groupActions ) ) { $ groupActions = [ ] ; } $ colspan = null ; $ countFormInputs = count ( $ formInputs ) ; if ( $ countFormInputs > 2 ) { $ colspan = $ countFormInputs ; } $ selectOptions = [ ] ; foreach ( $ groupActions as $ value => $ text ) { $ selectOptions [ ] = compact ( 'text' , 'value' ) ; } $ tableFoother = [ ] ; if ( $ useSelectAll ) { if ( ! empty ( $ colspan ) ) { $ colspan -- ; } $ tableFoother [ ] = $ this -> _getOptionsForElem ( 'createGroupActionControls.selectAllBtn' ) ; } $ inputField = '' ; if ( ! empty ( $ selectOptions ) ) { $ this -> ExtBs3Form -> unlockField ( 'FilterGroup.action' ) ; $ tableFoother [ ] = [ $ this -> ExtBs3Form -> hidden ( 'FilterGroup.action' ) . $ this -> _getOptionsForElem ( 'createGroupActionControls.groupDataProcTitle' ) , [ 'colspan' => $ colspan , 'class' => 'text-center' ] ] ; $ btnOptions = [ 'data-dialog-sel-options' => htmlentities ( json_encode ( $ selectOptions ) ) ] ; $ optionsDefault = $ this -> _getOptionsForElem ( 'createGroupActionControls.performActionBtn' ) ; $ tableFoother [ ] = [ $ this -> ViewExtension -> button ( 'fas fa-cog' , 'btn-warning' , $ btnOptions + $ optionsDefault ) , [ 'class' => 'action text-center' ] ] ; } else { if ( ! empty ( $ colspan ) ) { $ colspan ++ ; } $ tableFoother [ ] = [ '' , [ 'colspan' => $ colspan ] ] ; } $ result = $ this -> Html -> tableCells ( [ $ tableFoother ] , [ 'class' => 'active' ] , [ 'class' => 'active' ] ) ; return $ result ; }
Returns a row of table foother with group actions controls.

@param array $formInputs Array of inputs for filter form
@param array $groupActions List of group actions.
@param bool $useSelectAll If True, display `Select all` button.

@return string Row of table foother.
Returns a row of table foother with group actions controls .