__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
declare(strict_types=1);
namespace OpenSpout\Writer\Common\Manager;
use OpenSpout\Common\Entity\Row;
use OpenSpout\Common\Exception\IOException;
use OpenSpout\Writer\Common\Entity\Sheet;
use OpenSpout\Writer\Common\Entity\Worksheet;
use OpenSpout\Writer\Exception\SheetNotFoundException;
use OpenSpout\Writer\Exception\WriterException;
/**
* @internal
*/
interface WorkbookManagerInterface
{
/**
* Creates a new sheet in the workbook and make it the current sheet.
* The writing will resume where it stopped (i.e. data won't be truncated).
*
* @return Worksheet The created sheet
*
* @throws IOException If unable to open the sheet for writing
*/
public function addNewSheetAndMakeItCurrent(): Worksheet;
/**
* @return Worksheet[] All the workbook's sheets
*/
public function getWorksheets(): array;
/**
* Returns the current sheet.
*
* @return Worksheet The current sheet
*/
public function getCurrentWorksheet(): Worksheet;
/**
* Sets the given sheet as the current one. New data will be written to this sheet.
* The writing will resume where it stopped (i.e. data won't be truncated).
*
* @param Sheet $sheet The "external" sheet to set as current
*
* @throws SheetNotFoundException If the given sheet does not exist in the workbook
*/
public function setCurrentSheet(Sheet $sheet): void;
/**
* Adds a row to the current sheet.
* If shouldCreateNewSheetsAutomatically option is set to true, it will handle pagination
* with the creation of new worksheets if one worksheet has reached its maximum capicity.
*
* @param Row $row The row to be added
*
* @throws IOException If trying to create a new sheet and unable to open the sheet for writing
* @throws WriterException If unable to write data
*/
public function addRowToCurrentWorksheet(Row $row): void;
/**
* Closes the workbook and all its associated sheets.
* All the necessary files are written to disk and zipped together to create the final file.
* All the temporary files are then deleted.
*
* @param resource $finalFilePointer Pointer to the spreadsheet that will be created
*/
public function close($finalFilePointer): void;
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Style | Folder | 0777 |
|
|
| AbstractWorkbookManager.php | File | 9.24 KB | 0777 |
|
| RegisteredStyle.php | File | 675 B | 0777 |
|
| SheetManager.php | File | 4.39 KB | 0777 |
|
| WorkbookManagerInterface.php | File | 2.28 KB | 0777 |
|
| WorksheetManagerInterface.php | File | 1.07 KB | 0777 |
|