$workSheet
$workSheet : \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet
Autofilter Worksheet.
$workSheet : \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet
Autofilter Worksheet.
$range : string
Autofilter Range.
$columns : \PhpOffice\PhpSpreadsheet\Worksheet\AutoFilter\Column[]
Autofilter Column Ruleset.
$fromReplace : array
Search/Replace arrays to convert Excel wildcard syntax to a regexp syntax for preg_matching.
getColumnByOffset(int $pColumnOffset) : \PhpOffice\PhpSpreadsheet\Worksheet\AutoFilter\Column
Get a specified AutoFilter Column by it's offset.
int | $pColumnOffset | Column offset within range (starting from 0) |
shiftColumn(string $fromColumn, string $toColumn) : $this
Shift an AutoFilter Column Rule to a different column.
Note: This method bypasses validation of the destination column to ensure it is within this AutoFilter range. Nor does it verify whether any column rule already exists at $toColumn, but will simply override any existing value. Use with caution.
string | $fromColumn | Column name (e.g. A) |
string | $toColumn | Column name (e.g. B) |
dynamicFilterDateRange(string $dynamicRuleType, \PhpOffice\PhpSpreadsheet\Worksheet\AutoFilter\Column $filterColumn) : array
Convert a dynamic rule daterange to a custom filter range expression for ease of calculation.
string | $dynamicRuleType | |
\PhpOffice\PhpSpreadsheet\Worksheet\AutoFilter\Column | $filterColumn |