public function PHPExcel_Worksheet::setAutoFilter in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet.php \PHPExcel_Worksheet::setAutoFilter()
Set AutoFilter
Parameters
PHPExcel_Worksheet_AutoFilter|string $pValue: A simple string containing a Cell range like 'A1:E10' is permitted for backward compatibility @throws PHPExcel_Exception @return PHPExcel_Worksheet
1 call to PHPExcel_Worksheet::setAutoFilter()
- PHPExcel_Worksheet::setAutoFilterByColumnAndRow in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Worksheet.php - Set Autofilter Range by using numeric cell coordinates
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Worksheet.php, line 1905
Class
- PHPExcel_Worksheet
- PHPExcel_Worksheet
Code
public function setAutoFilter($pValue) {
$pRange = strtoupper($pValue);
if (is_string($pValue)) {
$this->_autoFilter
->setRange($pValue);
}
elseif (is_object($pValue) && $pValue instanceof PHPExcel_Worksheet_AutoFilter) {
$this->_autoFilter = $pValue;
}
return $this;
}