From 19985dbb8c0aa66dc4bf7905abc1148de909097d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Tue, 11 Jan 2022 12:35:47 +0100 Subject: prvi-commit --- .../excel/PHPExcel/Writer/Excel2007/WriterPart.php | 81 ++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 admin/survey/excel/PHPExcel/Writer/Excel2007/WriterPart.php (limited to 'admin/survey/excel/PHPExcel/Writer/Excel2007/WriterPart.php') diff --git a/admin/survey/excel/PHPExcel/Writer/Excel2007/WriterPart.php b/admin/survey/excel/PHPExcel/Writer/Excel2007/WriterPart.php new file mode 100644 index 0000000..b5f91b6 --- /dev/null +++ b/admin/survey/excel/PHPExcel/Writer/Excel2007/WriterPart.php @@ -0,0 +1,81 @@ +_parentWriter = $pWriter; + } + + /** + * Get parent IWriter object + * + * @return PHPExcel_Writer_IWriter + * @throws Exception + */ + public function getParentWriter() { + if (!is_null($this->_parentWriter)) { + return $this->_parentWriter; + } else { + throw new Exception("No parent PHPExcel_Writer_IWriter assigned."); + } + } + + /** + * Set parent IWriter object + * + * @param PHPExcel_Writer_IWriter $pWriter + * @throws Exception + */ + public function __construct(PHPExcel_Writer_IWriter $pWriter = null) { + if (!is_null($pWriter)) { + $this->_parentWriter = $pWriter; + } + } + +} -- cgit v1.2.3