Documentation

WorkbookView
in package

Table of Contents

Properties

$spreadsheet  : Spreadsheet

Methods

__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

Methods

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, string $mainNS, array<string|int, mixed> $mapSheetId, bool $readDataOnly) : void
Parameters
$xmlWorkbook : SimpleXMLElement
$mainNS : string
$mapSheetId : array<string|int, mixed>
$readDataOnly : bool

autoFilterDateGrouping()

private autoFilterDateGrouping(SimpleXMLElement $workbookViewAttributes) : void
Parameters
$workbookViewAttributes : SimpleXMLElement

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
see
https://www.w3.org/TR/xmlschema11-2/#boolean
Return values
bool

Boolean value

firstSheet()

private firstSheet(SimpleXMLElement $workbookViewAttributes) : void
Parameters
$workbookViewAttributes : SimpleXMLElement

horizontalScroll()

private horizontalScroll(SimpleXMLElement $workbookViewAttributes) : void
Parameters
$workbookViewAttributes : SimpleXMLElement

minimized()

private minimized(SimpleXMLElement $workbookViewAttributes) : void
Parameters
$workbookViewAttributes : SimpleXMLElement

sheetTabs()

private sheetTabs(SimpleXMLElement $workbookViewAttributes) : void
Parameters
$workbookViewAttributes : SimpleXMLElement

tabRatio()

private tabRatio(SimpleXMLElement $workbookViewAttributes) : void
Parameters
$workbookViewAttributes : SimpleXMLElement

verticalScroll()

private verticalScroll(SimpleXMLElement $workbookViewAttributes) : void
Parameters
$workbookViewAttributes : SimpleXMLElement

visibility()

private visibility(SimpleXMLElement $workbookViewAttributes) : void
Parameters
$workbookViewAttributes : SimpleXMLElement

        
On this page

Search results