public function PHPExcel_Worksheet_SheetView::setView in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/SheetView.php \PHPExcel_Worksheet_SheetView::setView()
* Set View * * Valid values are * 'normal' self::SHEETVIEW_NORMAL * 'pageLayout' self::SHEETVIEW_PAGE_LAYOUT * 'pageBreakPreview' self::SHEETVIEW_PAGE_BREAK_PREVIEW * *
Parameters
string $pValue: * @throws PHPExcel_Exception * @return PHPExcel_Worksheet_SheetView
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Worksheet/ SheetView.php, line 161
Class
- PHPExcel_Worksheet_SheetView
- PHPExcel_Worksheet_SheetView
Code
public function setView($pValue = NULL) {
// MS Excel 2007 allows setting the view to 'normal', 'pageLayout' or 'pageBreakPreview'
// via the user interface
if ($pValue === NULL) {
$pValue = self::SHEETVIEW_NORMAL;
}
if (in_array($pValue, self::$_sheetViewTypes)) {
$this->_sheetviewType = $pValue;
}
else {
throw new PHPExcel_Exception("Invalid sheetview layout type.");
}
return $this;
}