░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/moodle/public/lib/openspout/src/Writer/Common/Entity
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: Worksheet.php
<?php declare(strict_types=1); namespace OpenSpout\Writer\Common\Entity; /** * Entity describing a Worksheet. */ final class Worksheet { /** @var string Path to the XML file that will contain the sheet data */ private readonly string $filePath; /** @var null|resource Pointer to the sheet data file (e.g. xl/worksheets/sheet1.xml) */ private $filePointer; /** @var Sheet The "external" sheet */ private readonly Sheet $externalSheet; /** @var int Maximum number of columns among all the written rows */ private int $maxNumColumns = 0; /** @var int Index of the last written row */ private int $lastWrittenRowIndex = 0; /** * Worksheet constructor. */ public function __construct(string $worksheetFilePath, Sheet $externalSheet) { $this->filePath = $worksheetFilePath; $this->externalSheet = $externalSheet; } public function getFilePath(): string { return $this->filePath; } /** * @return resource */ public function getFilePointer() { \assert(null !== $this->filePointer); return $this->filePointer; } /** * @param resource $filePointer */ public function setFilePointer($filePointer): void { $this->filePointer = $filePointer; } public function getExternalSheet(): Sheet { return $this->externalSheet; } public function getMaxNumColumns(): int { return $this->maxNumColumns; } public function setMaxNumColumns(int $maxNumColumns): void { $this->maxNumColumns = $maxNumColumns; } public function getLastWrittenRowIndex(): int { return $this->lastWrittenRowIndex; } public function setLastWrittenRowIndex(int $lastWrittenRowIndex): void { $this->lastWrittenRowIndex = $lastWrittenRowIndex; } /** * @return int The ID of the worksheet */ public function getId(): int { // sheet index is zero-based, while ID is 1-based return $this->externalSheet->getIndex() + 1; } }
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 Sheet.php
PHP
6.1 KB
2026-02-11 01:44
EDIT
📄 Workbook.php
PHP
873 B
2026-02-11 01:44
EDIT
📄 Worksheet.php
PHP
2.1 KB
2026-02-11 01:44
EDIT