ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
WriterPart.php
Go to the documentation of this file.
1 <?php
37 {
43  private $_parentWriter;
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)) {
63  return $this->_parentWriter;
64  } else {
65  throw new 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 }