ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
PhpOffice\PhpSpreadsheet\Spreadsheet Class Reference
+ Collaboration diagram for PhpOffice\PhpSpreadsheet\Spreadsheet:

Public Member Functions

 hasMacros ()
 The workbook has macros ? More...
 
 setHasMacros ($hasMacros)
 Define if a workbook has macros. More...
 
 setMacrosCode ($macroCode)
 Set the macros code. More...
 
 getMacrosCode ()
 Return the macros code. More...
 
 setMacrosCertificate ($certificate)
 Set the macros certificate. More...
 
 hasMacrosCertificate ()
 Is the project signed ? More...
 
 getMacrosCertificate ()
 Return the macros certificate. More...
 
 discardMacros ()
 Remove all macros, certificate from spreadsheet. More...
 
 setRibbonXMLData ($target, $xmlData)
 set ribbon XML data. More...
 
 getRibbonXMLData ($what='all')
 retrieve ribbon XML Data. More...
 
 setRibbonBinObjects ($BinObjectsNames, $BinObjectsData)
 store binaries ribbon objects (pictures). More...
 
 getUnparsedLoadedData ()
 List of unparsed loaded data for export to same format with better compatibility. More...
 
 setUnparsedLoadedData (array $unparsedLoadedData)
 List of unparsed loaded data for export to same format with better compatibility. More...
 
 getRibbonBinObjects ($what='all')
 retrieve Binaries Ribbon Objects. More...
 
 hasRibbon ()
 This workbook have a custom UI ? More...
 
 hasRibbonBinObjects ()
 This workbook have additionnal object for the ribbon ? More...
 
 sheetCodeNameExists ($pSheetCodeName)
 Check if a sheet with a specified code name already exists. More...
 
 getSheetByCodeName ($pName)
 Get sheet by code name. More...
 
 __construct ()
 Create a new PhpSpreadsheet with one Worksheet. More...
 
 __destruct ()
 Code to execute when this worksheet is unset(). More...
 
 disconnectWorksheets ()
 Disconnect all worksheets from this PhpSpreadsheet workbook object, typically so that the PhpSpreadsheet object can be unset. More...
 
 getCalculationEngine ()
 Return the calculation engine for this worksheet. More...
 
 getProperties ()
 Get properties. More...
 
 setProperties (Document\Properties $pValue)
 Set properties. More...
 
 getSecurity ()
 Get security. More...
 
 setSecurity (Document\Security $pValue)
 Set security. More...
 
 getActiveSheet ()
 Get active sheet. More...
 
 createSheet ($sheetIndex=null)
 Create sheet and add it to this workbook. More...
 
 sheetNameExists ($pSheetName)
 Check if a sheet with a specified name already exists. More...
 
 addSheet (Worksheet $pSheet, $iSheetIndex=null)
 Add sheet. More...
 
 removeSheetByIndex ($pIndex)
 Remove sheet by index. More...
 
 getSheet ($pIndex)
 Get sheet by index. More...
 
 getAllSheets ()
 Get all sheets. More...
 
 getSheetByName ($pName)
 Get sheet by name. More...
 
 getIndex (Worksheet $pSheet)
 Get index for sheet. More...
 
 setIndexByName ($sheetName, $newIndex)
 Set index for sheet by sheet name. More...
 
 getSheetCount ()
 Get sheet count. More...
 
 getActiveSheetIndex ()
 Get active sheet index. More...
 
 setActiveSheetIndex ($pIndex)
 Set active sheet index. More...
 
 setActiveSheetIndexByName ($pValue)
 Set active sheet index by name. More...
 
 getSheetNames ()
 Get sheet names. More...
 
 addExternalSheet (Worksheet $pSheet, $iSheetIndex=null)
 Add external sheet. More...
 
 getNamedRanges ()
 Get an array of all Named Ranges. More...
 
 getNamedFormulae ()
 Get an array of all Named Formulae. More...
 
 getDefinedNames ()
 Get an array of all Defined Names (both named ranges and named formulae). More...
 
 addNamedRange (NamedRange $namedRange)
 Add a named range. More...
 
 addNamedFormula (NamedFormula $namedFormula)
 Add a named formula. More...
 
 addDefinedName (DefinedName $definedName)
 Add a defined name (either a named range or a named formula). More...
 
 getNamedRange (string $namedRange, ?Worksheet $pSheet=null)
 Get named range. More...
 
 getNamedFormula (string $namedFormula, ?Worksheet $pSheet=null)
 Get named formula. More...
 
 getDefinedName (string $definedName, ?Worksheet $pSheet=null)
 Get named range. More...
 
 removeNamedRange (string $namedRange, ?Worksheet $pSheet=null)
 Remove named range. More...
 
 removeNamedFormula (string $namedFormula, ?Worksheet $pSheet=null)
 Remove named formula. More...
 
 removeDefinedName (string $definedName, ?Worksheet $pSheet=null)
 Remove defined name. More...
 
 getWorksheetIterator ()
 Get worksheet iterator. More...
 
 copy ()
 Copy workbook (!= clone!). More...
 
 __clone ()
 Implement PHP __clone to create a deep clone, not just a shallow copy. More...
 
 getCellXfCollection ()
 Get the workbook collection of cellXfs. More...
 
 getCellXfByIndex ($pIndex)
 Get cellXf by index. More...
 
 getCellXfByHashCode ($pValue)
 Get cellXf by hash code. More...
 
 cellXfExists ($pCellStyle)
 Check if style exists in style collection. More...
 
 getDefaultStyle ()
 Get default style. More...
 
 addCellXf (Style $style)
 Add a cellXf to the workbook. More...
 
 removeCellXfByIndex ($pIndex)
 Remove cellXf by index. More...
 
 getCellXfSupervisor ()
 Get the cellXf supervisor. More...
 
 getCellStyleXfCollection ()
 Get the workbook collection of cellStyleXfs. More...
 
 getCellStyleXfByIndex ($pIndex)
 Get cellStyleXf by index. More...
 
 getCellStyleXfByHashCode ($pValue)
 Get cellStyleXf by hash code. More...
 
 addCellStyleXf (Style $pStyle)
 Add a cellStyleXf to the workbook. More...
 
 removeCellStyleXfByIndex ($pIndex)
 Remove cellStyleXf by index. More...
 
 garbageCollect ()
 Eliminate all unneeded cellXf and afterwards update the xfIndex for all cells and columns in the workbook. More...
 
 getID ()
 Return the unique ID value assigned to this spreadsheet workbook. More...
 
 getShowHorizontalScroll ()
 Get the visibility of the horizonal scroll bar in the application. More...
 
 setShowHorizontalScroll ($showHorizontalScroll)
 Set the visibility of the horizonal scroll bar in the application. More...
 
 getShowVerticalScroll ()
 Get the visibility of the vertical scroll bar in the application. More...
 
 setShowVerticalScroll ($showVerticalScroll)
 Set the visibility of the vertical scroll bar in the application. More...
 
 getShowSheetTabs ()
 Get the visibility of the sheet tabs in the application. More...
 
 setShowSheetTabs ($showSheetTabs)
 Set the visibility of the sheet tabs in the application. More...
 
 getMinimized ()
 Return whether the workbook window is minimized. More...
 
 setMinimized ($minimized)
 Set whether the workbook window is minimized. More...
 
 getAutoFilterDateGrouping ()
 Return whether to group dates when presenting the user with filtering optiomd in the user interface. More...
 
 setAutoFilterDateGrouping ($autoFilterDateGrouping)
 Set whether to group dates when presenting the user with filtering optiomd in the user interface. More...
 
 getFirstSheetIndex ()
 Return the first sheet in the book view. More...
 
 setFirstSheetIndex ($firstSheetIndex)
 Set the first sheet in the book view. More...
 
 getVisibility ()
 Return the visibility status of the workbook. More...
 
 setVisibility ($visibility)
 Set the visibility status of the workbook. More...
 
 getTabRatio ()
 Get the ratio between the workbook tabs bar and the horizontal scroll bar. More...
 
 setTabRatio ($tabRatio)
 Set the ratio between the workbook tabs bar and the horizontal scroll bar TabRatio is assumed to be out of 1000 of the horizontal window width. More...
 

Data Fields

const VISIBILITY_VISIBLE = 'visible'
 
const VISIBILITY_HIDDEN = 'hidden'
 
const VISIBILITY_VERY_HIDDEN = 'veryHidden'
 

Private Member Functions

 getExtensionOnly ($path)
 return the extension of a filename. More...
 
 getGlobalDefinedNameByType (string $name, bool $type)
 
 getLocalDefinedNameByType (string $name, bool $type, ?Worksheet $pSheet=null)
 

Private Attributes

const DEFINED_NAME_IS_RANGE = false
 
const DEFINED_NAME_IS_FORMULA = true
 
 $uniqueID
 
 $properties
 
 $security
 
 $workSheetCollection = []
 
 $calculationEngine
 
 $activeSheetIndex = 0
 
 $definedNames = []
 
 $cellXfSupervisor
 
 $cellXfCollection = []
 
 $cellStyleXfCollection = []
 
 $hasMacros = false
 
 $macrosCode
 
 $macrosCertificate
 
 $ribbonXMLData
 
 $ribbonBinObjects
 
 $unparsedLoadedData = []
 
 $showHorizontalScroll = true
 
 $showVerticalScroll = true
 
 $showSheetTabs = true
 
 $minimized = false
 
 $autoFilterDateGrouping = true
 
 $firstSheetIndex = 0
 
 $visibility = self::VISIBILITY_VISIBLE
 
 $tabRatio = 600
 

Static Private Attributes

static $workbookViewVisibilityValues
 

Detailed Description

Definition at line 11 of file Spreadsheet.php.

Constructor & Destructor Documentation

◆ __construct()

PhpOffice\PhpSpreadsheet\Spreadsheet::__construct ( )

Create a new PhpSpreadsheet with one Worksheet.

Definition at line 473 of file Spreadsheet.php.

474 {
475 $this->uniqueID = uniqid('', true);
476 $this->calculationEngine = new Calculation($this);
477
478 // Initialise worksheet collection and add one worksheet
479 $this->workSheetCollection = [];
480 $this->workSheetCollection[] = new Worksheet($this);
481 $this->activeSheetIndex = 0;
482
483 // Create document properties
484 $this->properties = new Document\Properties();
485
486 // Create document security
487 $this->security = new Document\Security();
488
489 // Set defined names
490 $this->definedNames = [];
491
492 // Create the cellXf supervisor
493 $this->cellXfSupervisor = new Style(true);
494 $this->cellXfSupervisor->bindParent($this);
495
496 // Create the default style
497 $this->addCellXf(new Style());
498 $this->addCellStyleXf(new Style());
499 }
addCellXf(Style $style)
Add a cellXf to the workbook.
addCellStyleXf(Style $pStyle)
Add a cellStyleXf to the workbook.

References PhpOffice\PhpSpreadsheet\Spreadsheet\addCellStyleXf(), and PhpOffice\PhpSpreadsheet\Spreadsheet\addCellXf().

+ Here is the call graph for this function:

◆ __destruct()

PhpOffice\PhpSpreadsheet\Spreadsheet::__destruct ( )

Code to execute when this worksheet is unset().

Definition at line 504 of file Spreadsheet.php.

505 {
506 $this->disconnectWorksheets();
507 $this->calculationEngine = null;
508 $this->cellXfCollection = [];
509 $this->cellStyleXfCollection = [];
510 }
disconnectWorksheets()
Disconnect all worksheets from this PhpSpreadsheet workbook object, typically so that the PhpSpreadsh...

References PhpOffice\PhpSpreadsheet\Spreadsheet\disconnectWorksheets().

+ Here is the call graph for this function:

Member Function Documentation

◆ __clone()

PhpOffice\PhpSpreadsheet\Spreadsheet::__clone ( )

Implement PHP __clone to create a deep clone, not just a shallow copy.

Definition at line 1123 of file Spreadsheet.php.

1124 {
1125 // @phpstan-ignore-next-line
1126 foreach ($this as $key => $val) {
1127 if (is_object($val) || (is_array($val))) {
1128 $this->{$key} = unserialize(serialize($val));
1129 }
1130 }
1131 }
$key
Definition: croninfo.php:18

References $key.

◆ addCellStyleXf()

PhpOffice\PhpSpreadsheet\Spreadsheet::addCellStyleXf ( Style  $pStyle)

Add a cellStyleXf to the workbook.

Definition at line 1291 of file Spreadsheet.php.

1291 : void
1292 {
1293 $this->cellStyleXfCollection[] = $pStyle;
1294 $pStyle->setIndex(count($this->cellStyleXfCollection) - 1);
1295 }
setIndex($pValue)
Set own index in style collection.
Definition: Style.php:646

References PhpOffice\PhpSpreadsheet\Style\Style\setIndex().

Referenced by PhpOffice\PhpSpreadsheet\Spreadsheet\__construct().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addCellXf()

PhpOffice\PhpSpreadsheet\Spreadsheet::addCellXf ( Style  $style)

Add a cellXf to the workbook.

Definition at line 1202 of file Spreadsheet.php.

1202 : void
1203 {
1204 $this->cellXfCollection[] = $style;
1205 $style->setIndex(count($this->cellXfCollection) - 1);
1206 }
$style
Definition: example_012.php:70

References $style.

Referenced by PhpOffice\PhpSpreadsheet\Spreadsheet\__construct(), and PhpOffice\PhpSpreadsheet\Spreadsheet\addExternalSheet().

+ Here is the caller graph for this function:

◆ addDefinedName()

PhpOffice\PhpSpreadsheet\Spreadsheet::addDefinedName ( DefinedName  $definedName)

Add a defined name (either a named range or a named formula).

If a defined named with this name already exists, then this will replace the existing value.

Definition at line 936 of file Spreadsheet.php.

936 : void
937 {
938 $upperCaseName = StringHelper::strToUpper($definedName->getName());
939 if ($definedName->getScope() == null) {
940 // global scope
941 $this->definedNames[$upperCaseName] = $definedName;
942 } else {
943 // local scope
944 $this->definedNames[$definedName->getScope()->getTitle() . '!' . $upperCaseName] = $definedName;
945 }
946 }
static strToUpper($pValue)
Convert a UTF-8 encoded string to upper case.

References PhpOffice\PhpSpreadsheet\DefinedName\getName(), PhpOffice\PhpSpreadsheet\DefinedName\getScope(), and PhpOffice\PhpSpreadsheet\Shared\StringHelper\strToUpper().

Referenced by PhpOffice\PhpSpreadsheet\Spreadsheet\addNamedFormula(), and PhpOffice\PhpSpreadsheet\Spreadsheet\addNamedRange().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addExternalSheet()

PhpOffice\PhpSpreadsheet\Spreadsheet::addExternalSheet ( Worksheet  $pSheet,
  $iSheetIndex = null 
)

Add external sheet.

Parameters
Worksheet$pSheetExternal sheet to add
null | int$iSheetIndexIndex where sheet should go (0,1,..., or null for last)
Returns
Worksheet

Definition at line 848 of file Spreadsheet.php.

849 {
850 if ($this->sheetNameExists($pSheet->getTitle())) {
851 throw new Exception("Workbook already contains a worksheet named '{$pSheet->getTitle()}'. Rename the external sheet first.");
852 }
853
854 // count how many cellXfs there are in this workbook currently, we will need this below
855 $countCellXfs = count($this->cellXfCollection);
856
857 // copy all the shared cellXfs from the external workbook and append them to the current
858 foreach ($pSheet->getParent()->getCellXfCollection() as $cellXf) {
859 $this->addCellXf(clone $cellXf);
860 }
861
862 // move sheet to this workbook
863 $pSheet->rebindParent($this);
864
865 // update the cellXfs
866 foreach ($pSheet->getCoordinates(false) as $coordinate) {
867 $cell = $pSheet->getCell($coordinate);
868 $cell->setXfIndex($cell->getXfIndex() + $countCellXfs);
869 }
870
871 return $this->addSheet($pSheet, $iSheetIndex);
872 }
addSheet(Worksheet $pSheet, $iSheetIndex=null)
Add sheet.
sheetNameExists($pSheetName)
Check if a sheet with a specified name already exists.

References PhpOffice\PhpSpreadsheet\Spreadsheet\addCellXf(), PhpOffice\PhpSpreadsheet\Spreadsheet\addSheet(), and PhpOffice\PhpSpreadsheet\Spreadsheet\sheetNameExists().

+ Here is the call graph for this function:

◆ addNamedFormula()

PhpOffice\PhpSpreadsheet\Spreadsheet::addNamedFormula ( NamedFormula  $namedFormula)

Add a named formula.

If a named formula with this name already exists, then this will replace the existing value.

Definition at line 927 of file Spreadsheet.php.

927 : void
928 {
929 $this->addDefinedName($namedFormula);
930 }
addDefinedName(DefinedName $definedName)
Add a defined name (either a named range or a named formula).

References PhpOffice\PhpSpreadsheet\Spreadsheet\addDefinedName().

+ Here is the call graph for this function:

◆ addNamedRange()

PhpOffice\PhpSpreadsheet\Spreadsheet::addNamedRange ( NamedRange  $namedRange)

Add a named range.

If a named range with this name already exists, then this will replace the existing value.

Definition at line 918 of file Spreadsheet.php.

918 : void
919 {
920 $this->addDefinedName($namedRange);
921 }

References PhpOffice\PhpSpreadsheet\Spreadsheet\addDefinedName().

+ Here is the call graph for this function:

◆ addSheet()

PhpOffice\PhpSpreadsheet\Spreadsheet::addSheet ( Worksheet  $pSheet,
  $iSheetIndex = null 
)

Add sheet.

Parameters
null | int$iSheetIndexIndex where sheet should go (0,1,..., or null for last)
Returns
Worksheet

Definition at line 615 of file Spreadsheet.php.

616 {
617 if ($this->sheetNameExists($pSheet->getTitle())) {
618 throw new Exception(
619 "Workbook already contains a worksheet named '{$pSheet->getTitle()}'. Rename this worksheet first."
620 );
621 }
622
623 if ($iSheetIndex === null) {
624 if ($this->activeSheetIndex < 0) {
625 $this->activeSheetIndex = 0;
626 }
627 $this->workSheetCollection[] = $pSheet;
628 } else {
629 // Insert the sheet at the requested index
630 array_splice(
631 $this->workSheetCollection,
632 $iSheetIndex,
633 0,
634 [$pSheet]
635 );
636
637 // Adjust active sheet index if necessary
638 if ($this->activeSheetIndex >= $iSheetIndex) {
640 }
641 }
642
643 if ($pSheet->getParent() === null) {
644 $pSheet->rebindParent($this);
645 }
646
647 return $pSheet;
648 }

References PhpOffice\PhpSpreadsheet\Spreadsheet\$activeSheetIndex, and PhpOffice\PhpSpreadsheet\Spreadsheet\sheetNameExists().

Referenced by PhpOffice\PhpSpreadsheet\Spreadsheet\addExternalSheet(), and PhpOffice\PhpSpreadsheet\Spreadsheet\createSheet().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cellXfExists()

PhpOffice\PhpSpreadsheet\Spreadsheet::cellXfExists (   $pCellStyle)

Check if style exists in style collection.

Parameters
Style$pCellStyle
Returns
bool

Definition at line 1180 of file Spreadsheet.php.

1181 {
1182 return in_array($pCellStyle, $this->cellXfCollection, true);
1183 }

◆ copy()

PhpOffice\PhpSpreadsheet\Spreadsheet::copy ( )

Copy workbook (!= clone!).

Returns
Spreadsheet

Definition at line 1107 of file Spreadsheet.php.

1108 {
1109 $copied = clone $this;
1110
1111 $worksheetCount = count($this->workSheetCollection);
1112 for ($i = 0; $i < $worksheetCount; ++$i) {
1113 $this->workSheetCollection[$i] = $this->workSheetCollection[$i]->copy();
1114 $this->workSheetCollection[$i]->rebindParent($this);
1115 }
1116
1117 return $copied;
1118 }
$i
Definition: disco.tpl.php:19

References $i.

◆ createSheet()

PhpOffice\PhpSpreadsheet\Spreadsheet::createSheet (   $sheetIndex = null)

Create sheet and add it to this workbook.

Parameters
null | int$sheetIndexIndex where sheet should go (0,1,..., or null for last)
Returns
Worksheet

Definition at line 588 of file Spreadsheet.php.

589 {
590 $newSheet = new Worksheet($this);
591 $this->addSheet($newSheet, $sheetIndex);
592
593 return $newSheet;
594 }

References PhpOffice\PhpSpreadsheet\Spreadsheet\addSheet().

Referenced by PhpOffice\PhpSpreadsheet\Reader\Html\loadDocument(), PhpOffice\PhpSpreadsheet\Reader\Slk\loadIntoExisting(), and PhpOffice\PhpSpreadsheet\Reader\Csv\loadIntoExisting().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ discardMacros()

PhpOffice\PhpSpreadsheet\Spreadsheet::discardMacros ( )

Remove all macros, certificate from spreadsheet.

Definition at line 276 of file Spreadsheet.php.

276 : void
277 {
278 $this->hasMacros = false;
279 $this->macrosCode = null;
280 $this->macrosCertificate = null;
281 }
hasMacros()
The workbook has macros ?

References PhpOffice\PhpSpreadsheet\Spreadsheet\hasMacros().

+ Here is the call graph for this function:

◆ disconnectWorksheets()

PhpOffice\PhpSpreadsheet\Spreadsheet::disconnectWorksheets ( )

Disconnect all worksheets from this PhpSpreadsheet workbook object, typically so that the PhpSpreadsheet object can be unset.

Definition at line 516 of file Spreadsheet.php.

516 : void
517 {
518 foreach ($this->workSheetCollection as $worksheet) {
519 $worksheet->disconnectCells();
520 unset($worksheet);
521 }
522 $this->workSheetCollection = [];
523 }

Referenced by PhpOffice\PhpSpreadsheet\Spreadsheet\__destruct().

+ Here is the caller graph for this function:

◆ garbageCollect()

PhpOffice\PhpSpreadsheet\Spreadsheet::garbageCollect ( )

Eliminate all unneeded cellXf and afterwards update the xfIndex for all cells and columns in the workbook.

Definition at line 1314 of file Spreadsheet.php.

1314 : void
1315 {
1316 // how many references are there to each cellXf ?
1317 $countReferencesCellXf = [];
1318 foreach ($this->cellXfCollection as $index => $cellXf) {
1319 $countReferencesCellXf[$index] = 0;
1320 }
1321
1322 foreach ($this->getWorksheetIterator() as $sheet) {
1323 // from cells
1324 foreach ($sheet->getCoordinates(false) as $coordinate) {
1325 $cell = $sheet->getCell($coordinate);
1326 ++$countReferencesCellXf[$cell->getXfIndex()];
1327 }
1328
1329 // from row dimensions
1330 foreach ($sheet->getRowDimensions() as $rowDimension) {
1331 if ($rowDimension->getXfIndex() !== null) {
1332 ++$countReferencesCellXf[$rowDimension->getXfIndex()];
1333 }
1334 }
1335
1336 // from column dimensions
1337 foreach ($sheet->getColumnDimensions() as $columnDimension) {
1338 ++$countReferencesCellXf[$columnDimension->getXfIndex()];
1339 }
1340 }
1341
1342 // remove cellXfs without references and create mapping so we can update xfIndex
1343 // for all cells and columns
1344 $countNeededCellXfs = 0;
1345 $map = [];
1346 foreach ($this->cellXfCollection as $index => $cellXf) {
1347 if ($countReferencesCellXf[$index] > 0 || $index == 0) { // we must never remove the first cellXf
1348 ++$countNeededCellXfs;
1349 } else {
1350 unset($this->cellXfCollection[$index]);
1351 }
1352 $map[$index] = $countNeededCellXfs - 1;
1353 }
1354 $this->cellXfCollection = array_values($this->cellXfCollection);
1355
1356 // update the index for all cellXfs
1357 foreach ($this->cellXfCollection as $i => $cellXf) {
1358 $cellXf->setIndex($i);
1359 }
1360
1361 // make sure there is always at least one cellXf (there should be)
1362 if (empty($this->cellXfCollection)) {
1363 $this->cellXfCollection[] = new Style();
1364 }
1365
1366 // update the xfIndex for all cells, row dimensions, column dimensions
1367 foreach ($this->getWorksheetIterator() as $sheet) {
1368 // for all cells
1369 foreach ($sheet->getCoordinates(false) as $coordinate) {
1370 $cell = $sheet->getCell($coordinate);
1371 $cell->setXfIndex($map[$cell->getXfIndex()]);
1372 }
1373
1374 // for all row dimensions
1375 foreach ($sheet->getRowDimensions() as $rowDimension) {
1376 if ($rowDimension->getXfIndex() !== null) {
1377 $rowDimension->setXfIndex($map[$rowDimension->getXfIndex()]);
1378 }
1379 }
1380
1381 // for all column dimensions
1382 foreach ($sheet->getColumnDimensions() as $columnDimension) {
1383 $columnDimension->setXfIndex($map[$columnDimension->getXfIndex()]);
1384 }
1385
1386 // also do garbage collection for all the sheets
1387 $sheet->garbageCollect();
1388 }
1389 }
getWorksheetIterator()
Get worksheet iterator.
$index
Definition: metadata.php:60

References $i, $index, $map, and PhpOffice\PhpSpreadsheet\Spreadsheet\getWorksheetIterator().

+ Here is the call graph for this function:

◆ getActiveSheet()

◆ getActiveSheetIndex()

PhpOffice\PhpSpreadsheet\Spreadsheet::getActiveSheetIndex ( )

Get active sheet index.

Returns
int Active sheet index

Definition at line 780 of file Spreadsheet.php.

781 {
783 }

References PhpOffice\PhpSpreadsheet\Spreadsheet\$activeSheetIndex.

Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\Workbook\writeBookViews().

+ Here is the caller graph for this function:

◆ getAllSheets()

PhpOffice\PhpSpreadsheet\Spreadsheet::getAllSheets ( )

Get all sheets.

Returns
Worksheet[]

Definition at line 699 of file Spreadsheet.php.

References PhpOffice\PhpSpreadsheet\Spreadsheet\$workSheetCollection.

◆ getAutoFilterDateGrouping()

PhpOffice\PhpSpreadsheet\Spreadsheet::getAutoFilterDateGrouping ( )

Return whether to group dates when presenting the user with filtering optiomd in the user interface.

Returns
bool true if workbook window is minimized

Definition at line 1487 of file Spreadsheet.php.

References PhpOffice\PhpSpreadsheet\Spreadsheet\$autoFilterDateGrouping.

Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\Workbook\writeBookViews().

+ Here is the caller graph for this function:

◆ getCalculationEngine()

PhpOffice\PhpSpreadsheet\Spreadsheet::getCalculationEngine ( )

Return the calculation engine for this worksheet.

Returns
null|Calculation

Definition at line 530 of file Spreadsheet.php.

References PhpOffice\PhpSpreadsheet\Spreadsheet\$calculationEngine.

◆ getCellStyleXfByHashCode()

PhpOffice\PhpSpreadsheet\Spreadsheet::getCellStyleXfByHashCode (   $pValue)

Get cellStyleXf by hash code.

Parameters
string$pValue
Returns
false|Style

Definition at line 1277 of file Spreadsheet.php.

1278 {
1279 foreach ($this->cellStyleXfCollection as $cellStyleXf) {
1280 if ($cellStyleXf->getHashCode() === $pValue) {
1281 return $cellStyleXf;
1282 }
1283 }
1284
1285 return false;
1286 }

◆ getCellStyleXfByIndex()

PhpOffice\PhpSpreadsheet\Spreadsheet::getCellStyleXfByIndex (   $pIndex)

Get cellStyleXf by index.

Parameters
int$pIndexIndex to cellXf
Returns
Style

Definition at line 1265 of file Spreadsheet.php.

1266 {
1267 return $this->cellStyleXfCollection[$pIndex];
1268 }

◆ getCellStyleXfCollection()

PhpOffice\PhpSpreadsheet\Spreadsheet::getCellStyleXfCollection ( )

Get the workbook collection of cellStyleXfs.

Returns
Style[]

Definition at line 1253 of file Spreadsheet.php.

References PhpOffice\PhpSpreadsheet\Spreadsheet\$cellStyleXfCollection.

◆ getCellXfByHashCode()

PhpOffice\PhpSpreadsheet\Spreadsheet::getCellXfByHashCode (   $pValue)

Get cellXf by hash code.

Parameters
string$pValue
Returns
false|Style

Definition at line 1162 of file Spreadsheet.php.

1163 {
1164 foreach ($this->cellXfCollection as $cellXf) {
1165 if ($cellXf->getHashCode() === $pValue) {
1166 return $cellXf;
1167 }
1168 }
1169
1170 return false;
1171 }

◆ getCellXfByIndex()

PhpOffice\PhpSpreadsheet\Spreadsheet::getCellXfByIndex (   $pIndex)

Get cellXf by index.

Parameters
int$pIndex
Returns
Style

Definition at line 1150 of file Spreadsheet.php.

1151 {
1152 return $this->cellXfCollection[$pIndex];
1153 }

◆ getCellXfCollection()

PhpOffice\PhpSpreadsheet\Spreadsheet::getCellXfCollection ( )

◆ getCellXfSupervisor()

PhpOffice\PhpSpreadsheet\Spreadsheet::getCellXfSupervisor ( )

Get the cellXf supervisor.

Returns
Style

Definition at line 1243 of file Spreadsheet.php.

References PhpOffice\PhpSpreadsheet\Spreadsheet\$cellXfSupervisor.

◆ getDefaultStyle()

PhpOffice\PhpSpreadsheet\Spreadsheet::getDefaultStyle ( )

Get default style.

Returns
Style

Definition at line 1190 of file Spreadsheet.php.

1191 {
1192 if (isset($this->cellXfCollection[0])) {
1193 return $this->cellXfCollection[0];
1194 }
1195
1196 throw new Exception('No default style found for this workbook');
1197 }

Referenced by PhpOffice\PhpSpreadsheet\Reader\Slk\processPFinal(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeCellStyleXf().

+ Here is the caller graph for this function:

◆ getDefinedName()

PhpOffice\PhpSpreadsheet\Spreadsheet::getDefinedName ( string  $definedName,
?Worksheet  $pSheet = null 
)

Get named range.

Parameters
null | Worksheet$pSheetScope. Use null for global scope

Definition at line 1014 of file Spreadsheet.php.

1014 : ?DefinedName
1015 {
1016 $returnValue = null;
1017
1018 if ($definedName !== '') {
1019 $definedName = StringHelper::strToUpper($definedName);
1020 // first look for global defined name
1021 if (isset($this->definedNames[$definedName])) {
1022 $returnValue = $this->definedNames[$definedName];
1023 }
1024
1025 // then look for local defined name (has priority over global defined name if both names exist)
1026 if (($pSheet !== null) && isset($this->definedNames[$pSheet->getTitle() . '!' . $definedName])) {
1027 $returnValue = $this->definedNames[$pSheet->getTitle() . '!' . $definedName];
1028 }
1029 }
1030
1031 return $returnValue;
1032 }

References PhpOffice\PhpSpreadsheet\Shared\StringHelper\strToUpper().

+ Here is the call graph for this function:

◆ getDefinedNames()

PhpOffice\PhpSpreadsheet\Spreadsheet::getDefinedNames ( )

Get an array of all Defined Names (both named ranges and named formulae).

Returns
DefinedName[]

Definition at line 909 of file Spreadsheet.php.

909 : array
910 {
911 return $this->definedNames;
912 }

References PhpOffice\PhpSpreadsheet\Spreadsheet\$definedNames.

◆ getExtensionOnly()

PhpOffice\PhpSpreadsheet\Spreadsheet::getExtensionOnly (   $path)
private

return the extension of a filename.

Internal use for a array_map callback (php<5.3 don't like lambda function).

Parameters
mixed$path
Returns
string

Definition at line 372 of file Spreadsheet.php.

373 {
374 $extension = pathinfo($path, PATHINFO_EXTENSION);
375
376 return is_array($extension) ? '' : $extension;
377 }
$path
Definition: aliased.php:25

References $path.

◆ getFirstSheetIndex()

PhpOffice\PhpSpreadsheet\Spreadsheet::getFirstSheetIndex ( )

Return the first sheet in the book view.

Returns
int First sheet in book view

Definition at line 1508 of file Spreadsheet.php.

References PhpOffice\PhpSpreadsheet\Spreadsheet\$firstSheetIndex.

Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\Workbook\writeBookViews().

+ Here is the caller graph for this function:

◆ getGlobalDefinedNameByType()

PhpOffice\PhpSpreadsheet\Spreadsheet::getGlobalDefinedNameByType ( string  $name,
bool  $type 
)
private

Definition at line 988 of file Spreadsheet.php.

988 : ?DefinedName
989 {
990 if (isset($this->definedNames[$name]) && $this->definedNames[$name]->isFormula() === $type) {
991 return $this->definedNames[$name];
992 }
993
994 return null;
995 }
$type

References $name, and $type.

Referenced by PhpOffice\PhpSpreadsheet\Spreadsheet\getNamedFormula(), and PhpOffice\PhpSpreadsheet\Spreadsheet\getNamedRange().

+ Here is the caller graph for this function:

◆ getID()

PhpOffice\PhpSpreadsheet\Spreadsheet::getID ( )

Return the unique ID value assigned to this spreadsheet workbook.

Returns
string

Definition at line 1396 of file Spreadsheet.php.

References PhpOffice\PhpSpreadsheet\Spreadsheet\$uniqueID.

◆ getIndex()

PhpOffice\PhpSpreadsheet\Spreadsheet::getIndex ( Worksheet  $pSheet)

Get index for sheet.

Returns
int index

Definition at line 728 of file Spreadsheet.php.

729 {
730 foreach ($this->workSheetCollection as $key => $value) {
731 if ($value->getHashCode() === $pSheet->getHashCode()) {
732 return $key;
733 }
734 }
735
736 throw new Exception('Sheet does not exist.');
737 }

References $key, and PhpOffice\PhpSpreadsheet\IComparable\getHashCode().

Referenced by PhpOffice\PhpSpreadsheet\Spreadsheet\setActiveSheetIndexByName(), and PhpOffice\PhpSpreadsheet\Spreadsheet\setIndexByName().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLocalDefinedNameByType()

PhpOffice\PhpSpreadsheet\Spreadsheet::getLocalDefinedNameByType ( string  $name,
bool  $type,
?Worksheet  $pSheet = null 
)
private

Definition at line 997 of file Spreadsheet.php.

997 : ?DefinedName
998 {
999 if (
1000 ($pSheet !== null) && isset($this->definedNames[$pSheet->getTitle() . '!' . $name])
1001 && $this->definedNames[$pSheet->getTitle() . '!' . $name]->isFormula() === $type
1002 ) {
1003 return $this->definedNames[$pSheet->getTitle() . '!' . $name];
1004 }
1005
1006 return null;
1007 }

References $name, and $type.

Referenced by PhpOffice\PhpSpreadsheet\Spreadsheet\getNamedFormula(), and PhpOffice\PhpSpreadsheet\Spreadsheet\getNamedRange().

+ Here is the caller graph for this function:

◆ getMacrosCertificate()

PhpOffice\PhpSpreadsheet\Spreadsheet::getMacrosCertificate ( )

Return the macros certificate.

Returns
null|string

Definition at line 268 of file Spreadsheet.php.

References PhpOffice\PhpSpreadsheet\Spreadsheet\$macrosCertificate.

◆ getMacrosCode()

PhpOffice\PhpSpreadsheet\Spreadsheet::getMacrosCode ( )

Return the macros code.

Returns
null|string

Definition at line 238 of file Spreadsheet.php.

References PhpOffice\PhpSpreadsheet\Spreadsheet\$macrosCode.

◆ getMinimized()

PhpOffice\PhpSpreadsheet\Spreadsheet::getMinimized ( )

Return whether the workbook window is minimized.

Returns
bool true if workbook window is minimized

Definition at line 1466 of file Spreadsheet.php.

References PhpOffice\PhpSpreadsheet\Spreadsheet\$minimized.

Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\Workbook\writeBookViews().

+ Here is the caller graph for this function:

◆ getNamedFormula()

PhpOffice\PhpSpreadsheet\Spreadsheet::getNamedFormula ( string  $namedFormula,
?Worksheet  $pSheet = null 
)

Get named formula.

Parameters
null | Worksheet$pSheetScope. Use null for global scope

Definition at line 973 of file Spreadsheet.php.

973 : ?NamedFormula
974 {
975 $returnValue = null;
976
977 if ($namedFormula !== '') {
978 $namedFormula = StringHelper::strToUpper($namedFormula);
979 // first look for global named formula
980 $returnValue = $this->getGlobalDefinedNameByType($namedFormula, self::DEFINED_NAME_IS_FORMULA);
981 // then look for local named formula (has priority over global named formula if both names exist)
982 $returnValue = $this->getLocalDefinedNameByType($namedFormula, self::DEFINED_NAME_IS_FORMULA, $pSheet) ?: $returnValue;
983 }
984
985 return $returnValue instanceof NamedFormula ? $returnValue : null;
986 }
getLocalDefinedNameByType(string $name, bool $type, ?Worksheet $pSheet=null)
getGlobalDefinedNameByType(string $name, bool $type)

References PhpOffice\PhpSpreadsheet\Spreadsheet\getGlobalDefinedNameByType(), PhpOffice\PhpSpreadsheet\Spreadsheet\getLocalDefinedNameByType(), and PhpOffice\PhpSpreadsheet\Shared\StringHelper\strToUpper().

Referenced by PhpOffice\PhpSpreadsheet\Spreadsheet\removeNamedFormula().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getNamedFormulae()

PhpOffice\PhpSpreadsheet\Spreadsheet::getNamedFormulae ( )

Get an array of all Named Formulae.

Returns
DefinedName[]

Definition at line 894 of file Spreadsheet.php.

894 : array
895 {
896 return array_filter(
897 $this->definedNames,
898 function (DefinedName $definedName) {
899 return $definedName->isFormula() === self::DEFINED_NAME_IS_FORMULA;
900 }
901 );
902 }
isFormula()
Identify whether this is a named range or a named formula.

References PhpOffice\PhpSpreadsheet\DefinedName\isFormula().

+ Here is the call graph for this function:

◆ getNamedRange()

PhpOffice\PhpSpreadsheet\Spreadsheet::getNamedRange ( string  $namedRange,
?Worksheet  $pSheet = null 
)

Get named range.

Parameters
null | Worksheet$pSheetScope. Use null for global scope

Definition at line 953 of file Spreadsheet.php.

953 : ?NamedRange
954 {
955 $returnValue = null;
956
957 if ($namedRange !== '') {
958 $namedRange = StringHelper::strToUpper($namedRange);
959 // first look for global named range
960 $returnValue = $this->getGlobalDefinedNameByType($namedRange, self::DEFINED_NAME_IS_RANGE);
961 // then look for local named range (has priority over global named range if both names exist)
962 $returnValue = $this->getLocalDefinedNameByType($namedRange, self::DEFINED_NAME_IS_RANGE, $pSheet) ?: $returnValue;
963 }
964
965 return $returnValue instanceof NamedRange ? $returnValue : null;
966 }

References PhpOffice\PhpSpreadsheet\Spreadsheet\getGlobalDefinedNameByType(), PhpOffice\PhpSpreadsheet\Spreadsheet\getLocalDefinedNameByType(), and PhpOffice\PhpSpreadsheet\Shared\StringHelper\strToUpper().

Referenced by PhpOffice\PhpSpreadsheet\Spreadsheet\removeNamedRange().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getNamedRanges()

PhpOffice\PhpSpreadsheet\Spreadsheet::getNamedRanges ( )

Get an array of all Named Ranges.

Returns
DefinedName[]

Definition at line 879 of file Spreadsheet.php.

879 : array
880 {
881 return array_filter(
882 $this->definedNames,
883 function (DefinedName $definedName) {
884 return $definedName->isFormula() === self::DEFINED_NAME_IS_RANGE;
885 }
886 );
887 }

References PhpOffice\PhpSpreadsheet\DefinedName\isFormula().

+ Here is the call graph for this function:

◆ getProperties()

◆ getRibbonBinObjects()

PhpOffice\PhpSpreadsheet\Spreadsheet::getRibbonBinObjects (   $what = 'all')

retrieve Binaries Ribbon Objects.

Parameters
string$what
Returns
null|array

Definition at line 386 of file Spreadsheet.php.

387 {
388 $ReturnData = null;
389 $what = strtolower($what);
390 switch ($what) {
391 case 'all':
393
394 break;
395 case 'names':
396 case 'data':
397 if (is_array($this->ribbonBinObjects) && isset($this->ribbonBinObjects[$what])) {
398 $ReturnData = $this->ribbonBinObjects[$what];
399 }
400
401 break;
402 case 'types':
403 if (
404 is_array($this->ribbonBinObjects) &&
405 isset($this->ribbonBinObjects['data']) && is_array($this->ribbonBinObjects['data'])
406 ) {
407 $tmpTypes = array_keys($this->ribbonBinObjects['data']);
408 $ReturnData = array_unique(array_map([$this, 'getExtensionOnly'], $tmpTypes));
409 } else {
410 $ReturnData = []; // the caller want an array... not null if empty
411 }
412
413 break;
414 }
415
416 return $ReturnData;
417 }

References PhpOffice\PhpSpreadsheet\Spreadsheet\$ribbonBinObjects.

Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\ContentTypes\writeContentTypes(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\RelsRibbon\writeRibbonRelationships().

+ Here is the caller graph for this function:

◆ getRibbonXMLData()

PhpOffice\PhpSpreadsheet\Spreadsheet::getRibbonXMLData (   $what = 'all')

retrieve ribbon XML Data.

Parameters
string$what
Returns
null|array|string

Definition at line 305 of file Spreadsheet.php.

306 {
307 $returnData = null;
308 $what = strtolower($what);
309 switch ($what) {
310 case 'all':
311 $returnData = $this->ribbonXMLData;
312
313 break;
314 case 'target':
315 case 'data':
316 if (is_array($this->ribbonXMLData) && isset($this->ribbonXMLData[$what])) {
317 $returnData = $this->ribbonXMLData[$what];
318 }
319
320 break;
321 }
322
323 return $returnData;
324 }

References PhpOffice\PhpSpreadsheet\Spreadsheet\$ribbonXMLData.

Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\Rels\writeRelationships().

+ Here is the caller graph for this function:

◆ getSecurity()

PhpOffice\PhpSpreadsheet\Spreadsheet::getSecurity ( )

Get security.

Returns
Document\Security

Definition at line 558 of file Spreadsheet.php.

References PhpOffice\PhpSpreadsheet\Spreadsheet\$security.

Referenced by PhpOffice\PhpSpreadsheet\Reader\Xlsx\readProtection(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Workbook\writeWorkbookProtection().

+ Here is the caller graph for this function:

◆ getSheet()

PhpOffice\PhpSpreadsheet\Spreadsheet::getSheet (   $pIndex)

Get sheet by index.

Parameters
int$pIndexSheet index
Returns
Worksheet

Definition at line 681 of file Spreadsheet.php.

682 {
683 if (!isset($this->workSheetCollection[$pIndex])) {
684 $numSheets = $this->getSheetCount();
685
686 throw new Exception(
687 "Your requested sheet index: {$pIndex} is out of bounds. The actual number of sheets is {$numSheets}."
688 );
689 }
690
691 return $this->workSheetCollection[$pIndex];
692 }

References PhpOffice\PhpSpreadsheet\Spreadsheet\getSheetCount().

Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\allConditionalStyles(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Drawing\allDrawings(), PhpOffice\PhpSpreadsheet\Spreadsheet\getActiveSheet(), PhpOffice\PhpSpreadsheet\Spreadsheet\getSheetNames(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\ContentTypes\writeContentTypes(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\DocProps\writeDocPropsApp(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Workbook\writeSheets().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSheetByCodeName()

PhpOffice\PhpSpreadsheet\Spreadsheet::getSheetByCodeName (   $pName)

Get sheet by code name.

Warning : sheet don't have always a code name !

Parameters
string$pNameSheet name
Returns
null|Worksheet

Definition at line 458 of file Spreadsheet.php.

459 {
460 $worksheetCount = count($this->workSheetCollection);
461 for ($i = 0; $i < $worksheetCount; ++$i) {
462 if ($this->workSheetCollection[$i]->getCodeName() == $pName) {
463 return $this->workSheetCollection[$i];
464 }
465 }
466
467 return null;
468 }

References $i.

Referenced by PhpOffice\PhpSpreadsheet\Spreadsheet\sheetCodeNameExists().

+ Here is the caller graph for this function:

◆ getSheetByName()

PhpOffice\PhpSpreadsheet\Spreadsheet::getSheetByName (   $pName)

Get sheet by name.

Parameters
string$pNameSheet name
Returns
null|Worksheet

Definition at line 711 of file Spreadsheet.php.

712 {
713 $worksheetCount = count($this->workSheetCollection);
714 for ($i = 0; $i < $worksheetCount; ++$i) {
715 if ($this->workSheetCollection[$i]->getTitle() === trim($pName, "'")) {
716 return $this->workSheetCollection[$i];
717 }
718 }
719
720 return null;
721 }

References $i.

Referenced by PhpOffice\PhpSpreadsheet\Spreadsheet\setActiveSheetIndexByName(), PhpOffice\PhpSpreadsheet\Spreadsheet\setIndexByName(), PhpOffice\PhpSpreadsheet\Reader\Ods\setSelected(), and PhpOffice\PhpSpreadsheet\Spreadsheet\sheetNameExists().

+ Here is the caller graph for this function:

◆ getSheetCount()

◆ getSheetNames()

PhpOffice\PhpSpreadsheet\Spreadsheet::getSheetNames ( )

Get sheet names.

Returns
string[]

Definition at line 829 of file Spreadsheet.php.

830 {
831 $returnValue = [];
832 $worksheetCount = $this->getSheetCount();
833 for ($i = 0; $i < $worksheetCount; ++$i) {
834 $returnValue[] = $this->getSheet($i)->getTitle();
835 }
836
837 return $returnValue;
838 }

References $i, PhpOffice\PhpSpreadsheet\Spreadsheet\getSheet(), and PhpOffice\PhpSpreadsheet\Spreadsheet\getSheetCount().

+ Here is the call graph for this function:

◆ getShowHorizontalScroll()

PhpOffice\PhpSpreadsheet\Spreadsheet::getShowHorizontalScroll ( )

Get the visibility of the horizonal scroll bar in the application.

Returns
bool True if horizonal scroll bar is visible

Definition at line 1406 of file Spreadsheet.php.

References PhpOffice\PhpSpreadsheet\Spreadsheet\$showHorizontalScroll.

Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\Workbook\writeBookViews().

+ Here is the caller graph for this function:

◆ getShowSheetTabs()

PhpOffice\PhpSpreadsheet\Spreadsheet::getShowSheetTabs ( )

Get the visibility of the sheet tabs in the application.

Returns
bool True if the sheet tabs are visible

Definition at line 1446 of file Spreadsheet.php.

References PhpOffice\PhpSpreadsheet\Spreadsheet\$showSheetTabs.

Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\Workbook\writeBookViews().

+ Here is the caller graph for this function:

◆ getShowVerticalScroll()

PhpOffice\PhpSpreadsheet\Spreadsheet::getShowVerticalScroll ( )

Get the visibility of the vertical scroll bar in the application.

Returns
bool True if vertical scroll bar is visible

Definition at line 1426 of file Spreadsheet.php.

References PhpOffice\PhpSpreadsheet\Spreadsheet\$showVerticalScroll.

Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\Workbook\writeBookViews().

+ Here is the caller graph for this function:

◆ getTabRatio()

PhpOffice\PhpSpreadsheet\Spreadsheet::getTabRatio ( )

Get the ratio between the workbook tabs bar and the horizontal scroll bar.

TabRatio is assumed to be out of 1000 of the horizontal window width.

Returns
int Ratio between the workbook tabs bar and the horizontal scroll bar

Definition at line 1574 of file Spreadsheet.php.

References PhpOffice\PhpSpreadsheet\Spreadsheet\$tabRatio.

Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\Workbook\writeBookViews().

+ Here is the caller graph for this function:

◆ getUnparsedLoadedData()

PhpOffice\PhpSpreadsheet\Spreadsheet::getUnparsedLoadedData ( )

List of unparsed loaded data for export to same format with better compatibility.

It has to be minimized when the library start to support currently unparsed data.

Definition at line 349 of file Spreadsheet.php.

References PhpOffice\PhpSpreadsheet\Spreadsheet\$unparsedLoadedData.

Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\ContentTypes\writeContentTypes().

+ Here is the caller graph for this function:

◆ getVisibility()

PhpOffice\PhpSpreadsheet\Spreadsheet::getVisibility ( )

Return the visibility status of the workbook.

This may be one of the following three values:

  • visibile
Returns
string Visible status

Definition at line 1535 of file Spreadsheet.php.

References PhpOffice\PhpSpreadsheet\Spreadsheet\$visibility.

Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\Workbook\writeBookViews().

+ Here is the caller graph for this function:

◆ getWorksheetIterator()

PhpOffice\PhpSpreadsheet\Spreadsheet::getWorksheetIterator ( )

Get worksheet iterator.

Returns
Iterator

Definition at line 1097 of file Spreadsheet.php.

1098 {
1099 return new Iterator($this);
1100 }

Referenced by PhpOffice\PhpSpreadsheet\Spreadsheet\garbageCollect(), and PhpOffice\PhpSpreadsheet\ReferenceHelper\updateNamedFormulas().

+ Here is the caller graph for this function:

◆ hasMacros()

◆ hasMacrosCertificate()

PhpOffice\PhpSpreadsheet\Spreadsheet::hasMacrosCertificate ( )

Is the project signed ?

Returns
bool true|false

Definition at line 258 of file Spreadsheet.php.

259 {
260 return $this->macrosCertificate !== null;
261 }

Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\ContentTypes\writeContentTypes().

+ Here is the caller graph for this function:

◆ hasRibbon()

PhpOffice\PhpSpreadsheet\Spreadsheet::hasRibbon ( )

This workbook have a custom UI ?

Returns
bool

Definition at line 424 of file Spreadsheet.php.

425 {
426 return $this->ribbonXMLData !== null;
427 }

Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\Rels\writeRelationships().

+ Here is the caller graph for this function:

◆ hasRibbonBinObjects()

PhpOffice\PhpSpreadsheet\Spreadsheet::hasRibbonBinObjects ( )

This workbook have additionnal object for the ribbon ?

Returns
bool

Definition at line 434 of file Spreadsheet.php.

435 {
436 return $this->ribbonBinObjects !== null;
437 }

Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\ContentTypes\writeContentTypes().

+ Here is the caller graph for this function:

◆ removeCellStyleXfByIndex()

PhpOffice\PhpSpreadsheet\Spreadsheet::removeCellStyleXfByIndex (   $pIndex)

Remove cellStyleXf by index.

Parameters
int$pIndexIndex to cellXf

Definition at line 1302 of file Spreadsheet.php.

1302 : void
1303 {
1304 if ($pIndex > count($this->cellStyleXfCollection) - 1) {
1305 throw new Exception('CellStyleXf index is out of bounds.');
1306 }
1307 array_splice($this->cellStyleXfCollection, $pIndex, 1);
1308 }

◆ removeCellXfByIndex()

PhpOffice\PhpSpreadsheet\Spreadsheet::removeCellXfByIndex (   $pIndex)

Remove cellXf by index.

It is ensured that all cells get their xf index updated.

Parameters
int$pIndexIndex to cellXf

Definition at line 1213 of file Spreadsheet.php.

1213 : void
1214 {
1215 if ($pIndex > count($this->cellXfCollection) - 1) {
1216 throw new Exception('CellXf index is out of bounds.');
1217 }
1218
1219 // first remove the cellXf
1220 array_splice($this->cellXfCollection, $pIndex, 1);
1221
1222 // then update cellXf indexes for cells
1223 foreach ($this->workSheetCollection as $worksheet) {
1224 foreach ($worksheet->getCoordinates(false) as $coordinate) {
1225 $cell = $worksheet->getCell($coordinate);
1226 $xfIndex = $cell->getXfIndex();
1227 if ($xfIndex > $pIndex) {
1228 // decrease xf index by 1
1229 $cell->setXfIndex($xfIndex - 1);
1230 } elseif ($xfIndex == $pIndex) {
1231 // set to default xf index 0
1232 $cell->setXfIndex(0);
1233 }
1234 }
1235 }
1236 }

◆ removeDefinedName()

PhpOffice\PhpSpreadsheet\Spreadsheet::removeDefinedName ( string  $definedName,
?Worksheet  $pSheet = null 
)

Remove defined name.

Parameters
null | Worksheet$pSheetscope: use null for global scope
Returns
$this

Definition at line 1073 of file Spreadsheet.php.

1073 : self
1074 {
1075 $definedName = StringHelper::strToUpper($definedName);
1076
1077 if ($pSheet === null) {
1078 if (isset($this->definedNames[$definedName])) {
1079 unset($this->definedNames[$definedName]);
1080 }
1081 } else {
1082 if (isset($this->definedNames[$pSheet->getTitle() . '!' . $definedName])) {
1083 unset($this->definedNames[$pSheet->getTitle() . '!' . $definedName]);
1084 } elseif (isset($this->definedNames[$definedName])) {
1085 unset($this->definedNames[$definedName]);
1086 }
1087 }
1088
1089 return $this;
1090 }

References PhpOffice\PhpSpreadsheet\Shared\StringHelper\strToUpper().

Referenced by PhpOffice\PhpSpreadsheet\Spreadsheet\removeNamedFormula(), and PhpOffice\PhpSpreadsheet\Spreadsheet\removeNamedRange().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeNamedFormula()

PhpOffice\PhpSpreadsheet\Spreadsheet::removeNamedFormula ( string  $namedFormula,
?Worksheet  $pSheet = null 
)

Remove named formula.

Parameters
null | Worksheet$pSheetscope: use null for global scope
Returns
$this

Definition at line 1057 of file Spreadsheet.php.

1057 : self
1058 {
1059 if ($this->getNamedFormula($namedFormula, $pSheet) === null) {
1060 return $this;
1061 }
1062
1063 return $this->removeDefinedName($namedFormula, $pSheet);
1064 }
removeDefinedName(string $definedName, ?Worksheet $pSheet=null)
Remove defined name.
getNamedFormula(string $namedFormula, ?Worksheet $pSheet=null)
Get named formula.

References PhpOffice\PhpSpreadsheet\Spreadsheet\getNamedFormula(), and PhpOffice\PhpSpreadsheet\Spreadsheet\removeDefinedName().

+ Here is the call graph for this function:

◆ removeNamedRange()

PhpOffice\PhpSpreadsheet\Spreadsheet::removeNamedRange ( string  $namedRange,
?Worksheet  $pSheet = null 
)

Remove named range.

Parameters
null | Worksheet$pSheetscope: use null for global scope
Returns
$this

Definition at line 1041 of file Spreadsheet.php.

1041 : self
1042 {
1043 if ($this->getNamedRange($namedRange, $pSheet) === null) {
1044 return $this;
1045 }
1046
1047 return $this->removeDefinedName($namedRange, $pSheet);
1048 }
getNamedRange(string $namedRange, ?Worksheet $pSheet=null)
Get named range.

References PhpOffice\PhpSpreadsheet\Spreadsheet\getNamedRange(), and PhpOffice\PhpSpreadsheet\Spreadsheet\removeDefinedName().

+ Here is the call graph for this function:

◆ removeSheetByIndex()

PhpOffice\PhpSpreadsheet\Spreadsheet::removeSheetByIndex (   $pIndex)

Remove sheet by index.

Parameters
int$pIndexActive sheet index

Definition at line 655 of file Spreadsheet.php.

655 : void
656 {
657 $numSheets = count($this->workSheetCollection);
658 if ($pIndex > $numSheets - 1) {
659 throw new Exception(
660 "You tried to remove a sheet by the out of bounds index: {$pIndex}. The actual number of sheets is {$numSheets}."
661 );
662 }
663 array_splice($this->workSheetCollection, $pIndex, 1);
664
665 // Adjust active sheet index if necessary
666 if (
667 ($this->activeSheetIndex >= $pIndex) &&
668 ($this->activeSheetIndex > 0 || $numSheets <= 1)
669 ) {
671 }
672 }

References PhpOffice\PhpSpreadsheet\Spreadsheet\$activeSheetIndex.

◆ setActiveSheetIndex()

PhpOffice\PhpSpreadsheet\Spreadsheet::setActiveSheetIndex (   $pIndex)

Set active sheet index.

Parameters
int$pIndexActive sheet index
Returns
Worksheet

Definition at line 792 of file Spreadsheet.php.

793 {
794 $numSheets = count($this->workSheetCollection);
795
796 if ($pIndex > $numSheets - 1) {
797 throw new Exception(
798 "You tried to set a sheet active by the out of bounds index: {$pIndex}. The actual number of sheets is {$numSheets}."
799 );
800 }
801 $this->activeSheetIndex = $pIndex;
802
803 return $this->getActiveSheet();
804 }

References PhpOffice\PhpSpreadsheet\Spreadsheet\getActiveSheet().

Referenced by PhpOffice\PhpSpreadsheet\Reader\Html\loadDocument(), PhpOffice\PhpSpreadsheet\Reader\Slk\loadIntoExisting(), PhpOffice\PhpSpreadsheet\Reader\Csv\loadIntoExisting(), PhpOffice\PhpSpreadsheet\Spreadsheet\setActiveSheetIndexByName(), and PhpOffice\PhpSpreadsheet\Helper\Sample\write().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setActiveSheetIndexByName()

PhpOffice\PhpSpreadsheet\Spreadsheet::setActiveSheetIndexByName (   $pValue)

Set active sheet index by name.

Parameters
string$pValueSheet title
Returns
Worksheet

Definition at line 813 of file Spreadsheet.php.

814 {
815 if (($worksheet = $this->getSheetByName($pValue)) instanceof Worksheet) {
816 $this->setActiveSheetIndex($this->getIndex($worksheet));
817
818 return $worksheet;
819 }
820
821 throw new Exception('Workbook does not contain sheet:' . $pValue);
822 }
setActiveSheetIndex($pIndex)
Set active sheet index.
getSheetByName($pName)
Get sheet by name.
getIndex(Worksheet $pSheet)
Get index for sheet.

References PhpOffice\PhpSpreadsheet\Spreadsheet\getIndex(), PhpOffice\PhpSpreadsheet\Spreadsheet\getSheetByName(), and PhpOffice\PhpSpreadsheet\Spreadsheet\setActiveSheetIndex().

+ Here is the call graph for this function:

◆ setAutoFilterDateGrouping()

PhpOffice\PhpSpreadsheet\Spreadsheet::setAutoFilterDateGrouping (   $autoFilterDateGrouping)

Set whether to group dates when presenting the user with filtering optiomd in the user interface.

Parameters
bool$autoFilterDateGroupingtrue if workbook window is minimized

Definition at line 1498 of file Spreadsheet.php.

1498 : void
1499 {
1500 $this->autoFilterDateGrouping = (bool) $autoFilterDateGrouping;
1501 }

References PhpOffice\PhpSpreadsheet\Spreadsheet\$autoFilterDateGrouping.

◆ setFirstSheetIndex()

PhpOffice\PhpSpreadsheet\Spreadsheet::setFirstSheetIndex (   $firstSheetIndex)

Set the first sheet in the book view.

Parameters
int$firstSheetIndexFirst sheet in book view

Definition at line 1518 of file Spreadsheet.php.

1518 : void
1519 {
1520 if ($firstSheetIndex >= 0) {
1521 $this->firstSheetIndex = (int) $firstSheetIndex;
1522 } else {
1523 throw new Exception('First sheet index must be a positive integer.');
1524 }
1525 }

References PhpOffice\PhpSpreadsheet\Spreadsheet\$firstSheetIndex.

◆ setHasMacros()

PhpOffice\PhpSpreadsheet\Spreadsheet::setHasMacros (   $hasMacros)

Define if a workbook has macros.

Parameters
bool$hasMacrostrue|false

Definition at line 217 of file Spreadsheet.php.

217 : void
218 {
219 $this->hasMacros = (bool) $hasMacros;
220 }

References PhpOffice\PhpSpreadsheet\Spreadsheet\$hasMacros, and PhpOffice\PhpSpreadsheet\Spreadsheet\hasMacros().

Referenced by PhpOffice\PhpSpreadsheet\Spreadsheet\setMacrosCode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setIndexByName()

PhpOffice\PhpSpreadsheet\Spreadsheet::setIndexByName (   $sheetName,
  $newIndex 
)

Set index for sheet by sheet name.

Parameters
string$sheetNameSheet name to modify index for
int$newIndexNew index for the sheet
Returns
int New sheet index

Definition at line 747 of file Spreadsheet.php.

748 {
749 $oldIndex = $this->getIndex($this->getSheetByName($sheetName));
750 $pSheet = array_splice(
751 $this->workSheetCollection,
752 $oldIndex,
753 1
754 );
755 array_splice(
756 $this->workSheetCollection,
757 $newIndex,
758 0,
759 $pSheet
760 );
761
762 return $newIndex;
763 }

References PhpOffice\PhpSpreadsheet\Spreadsheet\getIndex(), and PhpOffice\PhpSpreadsheet\Spreadsheet\getSheetByName().

+ Here is the call graph for this function:

◆ setMacrosCertificate()

PhpOffice\PhpSpreadsheet\Spreadsheet::setMacrosCertificate (   $certificate)

Set the macros certificate.

Parameters
null | string$certificate

Definition at line 248 of file Spreadsheet.php.

248 : void
249 {
250 $this->macrosCertificate = $certificate;
251 }
if(@file_exists(dirname(__FILE__).'/lang/eng.php')) $certificate
Definition: example_052.php:77

References $certificate.

◆ setMacrosCode()

PhpOffice\PhpSpreadsheet\Spreadsheet::setMacrosCode (   $macroCode)

Set the macros code.

Parameters
string$macroCodestring|null

Definition at line 227 of file Spreadsheet.php.

227 : void
228 {
229 $this->macrosCode = $macroCode;
230 $this->setHasMacros($macroCode !== null);
231 }
setHasMacros($hasMacros)
Define if a workbook has macros.

References PhpOffice\PhpSpreadsheet\Spreadsheet\setHasMacros().

+ Here is the call graph for this function:

◆ setMinimized()

PhpOffice\PhpSpreadsheet\Spreadsheet::setMinimized (   $minimized)

Set whether the workbook window is minimized.

Parameters
bool$minimizedtrue if workbook window is minimized

Definition at line 1476 of file Spreadsheet.php.

1476 : void
1477 {
1478 $this->minimized = (bool) $minimized;
1479 }

References PhpOffice\PhpSpreadsheet\Spreadsheet\$minimized.

◆ setProperties()

PhpOffice\PhpSpreadsheet\Spreadsheet::setProperties ( Document\Properties  $pValue)

Set properties.

Definition at line 548 of file Spreadsheet.php.

548 : void
549 {
550 $this->properties = $pValue;
551 }

◆ setRibbonBinObjects()

PhpOffice\PhpSpreadsheet\Spreadsheet::setRibbonBinObjects (   $BinObjectsNames,
  $BinObjectsData 
)

store binaries ribbon objects (pictures).

Parameters
null | mixed$BinObjectsNames
null | mixed$BinObjectsData

Definition at line 332 of file Spreadsheet.php.

332 : void
333 {
334 if ($BinObjectsNames !== null && $BinObjectsData !== null) {
335 $this->ribbonBinObjects = ['names' => $BinObjectsNames, 'data' => $BinObjectsData];
336 } else {
337 $this->ribbonBinObjects = null;
338 }
339 }

Referenced by PhpOffice\PhpSpreadsheet\Reader\Xlsx\readRibbon().

+ Here is the caller graph for this function:

◆ setRibbonXMLData()

PhpOffice\PhpSpreadsheet\Spreadsheet::setRibbonXMLData (   $target,
  $xmlData 
)

set ribbon XML data.

Parameters
null | mixed$target
null | mixed$xmlData

Definition at line 289 of file Spreadsheet.php.

289 : void
290 {
291 if ($target !== null && $xmlData !== null) {
292 $this->ribbonXMLData = ['target' => $target, 'data' => $xmlData];
293 } else {
294 $this->ribbonXMLData = null;
295 }
296 }
$target
Definition: test.php:19

References $target.

Referenced by PhpOffice\PhpSpreadsheet\Reader\Xlsx\readRibbon().

+ Here is the caller graph for this function:

◆ setSecurity()

PhpOffice\PhpSpreadsheet\Spreadsheet::setSecurity ( Document\Security  $pValue)

Set security.

Definition at line 566 of file Spreadsheet.php.

566 : void
567 {
568 $this->security = $pValue;
569 }

◆ setShowHorizontalScroll()

PhpOffice\PhpSpreadsheet\Spreadsheet::setShowHorizontalScroll (   $showHorizontalScroll)

Set the visibility of the horizonal scroll bar in the application.

Parameters
bool$showHorizontalScrollTrue if horizonal scroll bar is visible

Definition at line 1416 of file Spreadsheet.php.

1416 : void
1417 {
1418 $this->showHorizontalScroll = (bool) $showHorizontalScroll;
1419 }

References PhpOffice\PhpSpreadsheet\Spreadsheet\$showHorizontalScroll.

◆ setShowSheetTabs()

PhpOffice\PhpSpreadsheet\Spreadsheet::setShowSheetTabs (   $showSheetTabs)

Set the visibility of the sheet tabs in the application.

Parameters
bool$showSheetTabsTrue if sheet tabs are visible

Definition at line 1456 of file Spreadsheet.php.

1456 : void
1457 {
1458 $this->showSheetTabs = (bool) $showSheetTabs;
1459 }

References PhpOffice\PhpSpreadsheet\Spreadsheet\$showSheetTabs.

◆ setShowVerticalScroll()

PhpOffice\PhpSpreadsheet\Spreadsheet::setShowVerticalScroll (   $showVerticalScroll)

Set the visibility of the vertical scroll bar in the application.

Parameters
bool$showVerticalScrollTrue if vertical scroll bar is visible

Definition at line 1436 of file Spreadsheet.php.

1436 : void
1437 {
1438 $this->showVerticalScroll = (bool) $showVerticalScroll;
1439 }

References PhpOffice\PhpSpreadsheet\Spreadsheet\$showVerticalScroll.

◆ setTabRatio()

PhpOffice\PhpSpreadsheet\Spreadsheet::setTabRatio (   $tabRatio)

Set the ratio between the workbook tabs bar and the horizontal scroll bar TabRatio is assumed to be out of 1000 of the horizontal window width.

Parameters
int$tabRatioRatio between the tabs bar and the horizontal scroll bar

Definition at line 1585 of file Spreadsheet.php.

1585 : void
1586 {
1587 if ($tabRatio >= 0 || $tabRatio <= 1000) {
1588 $this->tabRatio = (int) $tabRatio;
1589 } else {
1590 throw new Exception('Tab ratio must be between 0 and 1000.');
1591 }
1592 }

References PhpOffice\PhpSpreadsheet\Spreadsheet\$tabRatio.

◆ setUnparsedLoadedData()

PhpOffice\PhpSpreadsheet\Spreadsheet::setUnparsedLoadedData ( array  $unparsedLoadedData)

List of unparsed loaded data for export to same format with better compatibility.

It has to be minimized when the library start to support currently unparsed data.

Definition at line 360 of file Spreadsheet.php.

360 : void
361 {
362 $this->unparsedLoadedData = $unparsedLoadedData;
363 }

References PhpOffice\PhpSpreadsheet\Spreadsheet\$unparsedLoadedData.

◆ setVisibility()

PhpOffice\PhpSpreadsheet\Spreadsheet::setVisibility (   $visibility)

Set the visibility status of the workbook.

Valid values are:

  • 'visible' (self::VISIBILITY_VISIBLE): Workbook window is visible
  • 'hidden' (self::VISIBILITY_HIDDEN): Workbook window is hidden, but can be shown by the user via the user interface
  • 'veryHidden' (self::VISIBILITY_VERY_HIDDEN): Workbook window is hidden and cannot be shown in the user interface.
Parameters
string$visibilityvisibility status of the workbook

Definition at line 1555 of file Spreadsheet.php.

1555 : void
1556 {
1557 if ($visibility === null) {
1559 }
1560
1561 if (in_array($visibility, self::$workbookViewVisibilityValues)) {
1562 $this->visibility = $visibility;
1563 } else {
1564 throw new Exception('Invalid visibility value.');
1565 }
1566 }

References PhpOffice\PhpSpreadsheet\Spreadsheet\$visibility, and PhpOffice\PhpSpreadsheet\Spreadsheet\VISIBILITY_VISIBLE.

◆ sheetCodeNameExists()

PhpOffice\PhpSpreadsheet\Spreadsheet::sheetCodeNameExists (   $pSheetCodeName)

Check if a sheet with a specified code name already exists.

Parameters
string$pSheetCodeNameName of the worksheet to check
Returns
bool

Definition at line 446 of file Spreadsheet.php.

447 {
448 return $this->getSheetByCodeName($pSheetCodeName) !== null;
449 }
getSheetByCodeName($pName)
Get sheet by code name.

References PhpOffice\PhpSpreadsheet\Spreadsheet\getSheetByCodeName().

+ Here is the call graph for this function:

◆ sheetNameExists()

PhpOffice\PhpSpreadsheet\Spreadsheet::sheetNameExists (   $pSheetName)

Check if a sheet with a specified name already exists.

Parameters
string$pSheetNameName of the worksheet to check
Returns
bool

Definition at line 603 of file Spreadsheet.php.

604 {
605 return $this->getSheetByName($pSheetName) !== null;
606 }

References PhpOffice\PhpSpreadsheet\Spreadsheet\getSheetByName().

Referenced by PhpOffice\PhpSpreadsheet\Spreadsheet\addExternalSheet(), and PhpOffice\PhpSpreadsheet\Spreadsheet\addSheet().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $activeSheetIndex

PhpOffice\PhpSpreadsheet\Spreadsheet::$activeSheetIndex = 0
private

◆ $autoFilterDateGrouping

PhpOffice\PhpSpreadsheet\Spreadsheet::$autoFilterDateGrouping = true
private

◆ $calculationEngine

PhpOffice\PhpSpreadsheet\Spreadsheet::$calculationEngine
private

◆ $cellStyleXfCollection

PhpOffice\PhpSpreadsheet\Spreadsheet::$cellStyleXfCollection = []
private

◆ $cellXfCollection

PhpOffice\PhpSpreadsheet\Spreadsheet::$cellXfCollection = []
private

◆ $cellXfSupervisor

PhpOffice\PhpSpreadsheet\Spreadsheet::$cellXfSupervisor
private

◆ $definedNames

PhpOffice\PhpSpreadsheet\Spreadsheet::$definedNames = []
private

◆ $firstSheetIndex

PhpOffice\PhpSpreadsheet\Spreadsheet::$firstSheetIndex = 0
private

◆ $hasMacros

PhpOffice\PhpSpreadsheet\Spreadsheet::$hasMacros = false
private

◆ $macrosCertificate

PhpOffice\PhpSpreadsheet\Spreadsheet::$macrosCertificate
private

◆ $macrosCode

PhpOffice\PhpSpreadsheet\Spreadsheet::$macrosCode
private

Definition at line 109 of file Spreadsheet.php.

Referenced by PhpOffice\PhpSpreadsheet\Spreadsheet\getMacrosCode().

◆ $minimized

PhpOffice\PhpSpreadsheet\Spreadsheet::$minimized = false
private

◆ $properties

PhpOffice\PhpSpreadsheet\Spreadsheet::$properties
private

Definition at line 39 of file Spreadsheet.php.

Referenced by PhpOffice\PhpSpreadsheet\Spreadsheet\getProperties().

◆ $ribbonBinObjects

PhpOffice\PhpSpreadsheet\Spreadsheet::$ribbonBinObjects
private

◆ $ribbonXMLData

PhpOffice\PhpSpreadsheet\Spreadsheet::$ribbonXMLData
private

◆ $security

PhpOffice\PhpSpreadsheet\Spreadsheet::$security
private

Definition at line 46 of file Spreadsheet.php.

Referenced by PhpOffice\PhpSpreadsheet\Spreadsheet\getSecurity().

◆ $showHorizontalScroll

PhpOffice\PhpSpreadsheet\Spreadsheet::$showHorizontalScroll = true
private

◆ $showSheetTabs

PhpOffice\PhpSpreadsheet\Spreadsheet::$showSheetTabs = true
private

◆ $showVerticalScroll

PhpOffice\PhpSpreadsheet\Spreadsheet::$showVerticalScroll = true
private

◆ $tabRatio

PhpOffice\PhpSpreadsheet\Spreadsheet::$tabRatio = 600
private

◆ $uniqueID

PhpOffice\PhpSpreadsheet\Spreadsheet::$uniqueID
private

Definition at line 32 of file Spreadsheet.php.

Referenced by PhpOffice\PhpSpreadsheet\Spreadsheet\getID().

◆ $unparsedLoadedData

PhpOffice\PhpSpreadsheet\Spreadsheet::$unparsedLoadedData = []
private

◆ $visibility

PhpOffice\PhpSpreadsheet\Spreadsheet::$visibility = self::VISIBILITY_VISIBLE
private

◆ $workbookViewVisibilityValues

PhpOffice\PhpSpreadsheet\Spreadsheet::$workbookViewVisibilityValues
staticprivate

◆ $workSheetCollection

PhpOffice\PhpSpreadsheet\Spreadsheet::$workSheetCollection = []
private

Definition at line 53 of file Spreadsheet.php.

Referenced by PhpOffice\PhpSpreadsheet\Spreadsheet\getAllSheets().

◆ DEFINED_NAME_IS_FORMULA

const PhpOffice\PhpSpreadsheet\Spreadsheet::DEFINED_NAME_IS_FORMULA = true
private

Definition at line 19 of file Spreadsheet.php.

◆ DEFINED_NAME_IS_RANGE

const PhpOffice\PhpSpreadsheet\Spreadsheet::DEFINED_NAME_IS_RANGE = false
private

Definition at line 18 of file Spreadsheet.php.

◆ VISIBILITY_HIDDEN

const PhpOffice\PhpSpreadsheet\Spreadsheet::VISIBILITY_HIDDEN = 'hidden'

Definition at line 15 of file Spreadsheet.php.

◆ VISIBILITY_VERY_HIDDEN

const PhpOffice\PhpSpreadsheet\Spreadsheet::VISIBILITY_VERY_HIDDEN = 'veryHidden'

Definition at line 16 of file Spreadsheet.php.

◆ VISIBILITY_VISIBLE

const PhpOffice\PhpSpreadsheet\Spreadsheet::VISIBILITY_VISIBLE = 'visible'

Definition at line 14 of file Spreadsheet.php.

Referenced by PhpOffice\PhpSpreadsheet\Spreadsheet\setVisibility().


The documentation for this class was generated from the following file: