ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
WriterPart.php
Go to the documentation of this file.
1<?php
37{
44
51 public function setParentWriter(PHPExcel_Writer_IWriter $pWriter = null) {
52 $this->_parentWriter = $pWriter;
53 }
54
61 public function getParentWriter() {
62 if (!is_null($this->_parentWriter)) {
64 } else {
65 throw new PHPExcel_Writer_Exception("No parent PHPExcel_Writer_IWriter assigned.");
66 }
67 }
68
75 public function __construct(PHPExcel_Writer_IWriter $pWriter = null) {
76 if (!is_null($pWriter)) {
77 $this->_parentWriter = $pWriter;
78 }
79 }
80
81}
An exception for terminatinating execution or to throw for unit testing.
getParentWriter()
Get parent IWriter object.
Definition: WriterPart.php:61
__construct(PHPExcel_Writer_IWriter $pWriter=null)
Set parent IWriter object.
Definition: WriterPart.php:75
setParentWriter(PHPExcel_Writer_IWriter $pWriter=null)
Set parent IWriter object.
Definition: WriterPart.php:51