public function PHPExcel_Worksheet_AutoFilter_Column_Rule::setRule in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/AutoFilter/Column/Rule.php \PHPExcel_Worksheet_AutoFilter_Column_Rule::setRule()
* Set AutoFilter Rule * *
Parameters
string $pOperator: * @param string|string[] $pValue * @param string $pGrouping * @throws PHPExcel_Exception * @return PHPExcel_Worksheet_AutoFilter_Column_Rule
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Worksheet/ AutoFilter/ Column/ Rule.php, line 412
Class
- PHPExcel_Worksheet_AutoFilter_Column_Rule
- PHPExcel_Worksheet_AutoFilter_Column_Rule
Code
public function setRule($pOperator = self::AUTOFILTER_COLUMN_RULE_EQUAL, $pValue = '', $pGrouping = NULL) {
$this
->setOperator($pOperator);
$this
->setValue($pValue);
// Only set grouping if it's been passed in as a user-supplied argument,
// otherwise we're calculating it when we setValue() and don't want to overwrite that
// If the user supplies an argumnet for grouping, then on their own head be it
if ($pGrouping !== NULL) {
$this
->setGrouping($pGrouping);
}
return $this;
}