public function PHPExcel_Worksheet_AutoFilter_Column::deleteRule in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/AutoFilter/Column.php \PHPExcel_Worksheet_AutoFilter_Column::deleteRule()
* Delete a specified AutoFilter Column Rule * If the number of rules is reduced to 1, then we reset And/Or logic to Or * *
Parameters
integer $pIndex Rule index in the ruleset array: * @return PHPExcel_Worksheet_AutoFilter_Column
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Worksheet/ AutoFilter/ Column.php, line 343
Class
- PHPExcel_Worksheet_AutoFilter_Column
- PHPExcel_Worksheet_AutoFilter_Column
Code
public function deleteRule($pIndex) {
if (isset($this->_ruleset[$pIndex])) {
unset($this->_ruleset[$pIndex]);
// If we've just deleted down to a single rule, then reset And/Or joining to Or
if (count($this->_ruleset) <= 1) {
$this
->setJoin(self::AUTOFILTER_COLUMN_JOIN_OR);
}
}
return $this;
}