WorkbookView
Table of Contents
- $spreadsheet : Spreadsheet
- __construct() : mixed
- getAttributes() : SimpleXMLElement
- testSimpleXml() : SimpleXMLElement
- viewSettings() : void
- autoFilterDateGrouping() : void
- castXsdBooleanToBool() : bool
- Convert an 'xsd:boolean' XML value to a PHP boolean value.
- firstSheet() : void
- horizontalScroll() : void
- minimized() : void
- sheetTabs() : void
- tabRatio() : void
- verticalScroll() : void
- visibility() : void
Properties
$spreadsheet
private
Spreadsheet
$spreadsheet
Methods
__construct()
public
__construct(Spreadsheet $spreadsheet) : mixed
Parameters
- $spreadsheet : Spreadsheet
Return values
mixed —getAttributes()
public
static getAttributes(SimpleXMLElement|null $value[, string $ns = '' ]) : SimpleXMLElement
Parameters
- $value : SimpleXMLElement|null
- $ns : string = ''
Return values
SimpleXMLElement —testSimpleXml()
public
static testSimpleXml(mixed $value) : SimpleXMLElement
Parameters
- $value : mixed
Return values
SimpleXMLElement —viewSettings()
public
viewSettings(SimpleXMLElement $xmlWorkbook, mixed $mainNS, array<string|int, mixed> $mapSheetId, bool $readDataOnly) : void
Parameters
- $xmlWorkbook : SimpleXMLElement
- $mainNS : mixed
- $mapSheetId : array<string|int, mixed>
- $readDataOnly : bool
Return values
void —autoFilterDateGrouping()
private
autoFilterDateGrouping(SimpleXMLElement $workbookViewAttributes) : void
Parameters
- $workbookViewAttributes : SimpleXMLElement
Return values
void —castXsdBooleanToBool()
Convert an 'xsd:boolean' XML value to a PHP boolean value.
private
castXsdBooleanToBool(string $xsdBoolean) : bool
A valid 'xsd:boolean' XML value can be one of the following four values: 'true', 'false', '1', '0'. It is case sensitive.
Note that just doing '(bool) $xsdBoolean' is not safe, since '(bool) "false"' returns true.
Parameters
- $xsdBoolean : string
-
An XML string value of type 'xsd:boolean'
Tags
Return values
bool —Boolean value
firstSheet()
private
firstSheet(SimpleXMLElement $workbookViewAttributes) : void
Parameters
- $workbookViewAttributes : SimpleXMLElement
Return values
void —horizontalScroll()
private
horizontalScroll(SimpleXMLElement $workbookViewAttributes) : void
Parameters
- $workbookViewAttributes : SimpleXMLElement
Return values
void —minimized()
private
minimized(SimpleXMLElement $workbookViewAttributes) : void
Parameters
- $workbookViewAttributes : SimpleXMLElement
Return values
void —sheetTabs()
private
sheetTabs(SimpleXMLElement $workbookViewAttributes) : void
Parameters
- $workbookViewAttributes : SimpleXMLElement
Return values
void —tabRatio()
private
tabRatio(SimpleXMLElement $workbookViewAttributes) : void
Parameters
- $workbookViewAttributes : SimpleXMLElement
Return values
void —verticalScroll()
private
verticalScroll(SimpleXMLElement $workbookViewAttributes) : void
Parameters
- $workbookViewAttributes : SimpleXMLElement
Return values
void —visibility()
private
visibility(SimpleXMLElement $workbookViewAttributes) : void
Parameters
- $workbookViewAttributes : SimpleXMLElement