ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
WriterPart.php
Go to the documentation of this file.
1 <?php
30 if (!defined('PHPEXCEL_ROOT')) {
34  define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../../');
35 }
36 
38 require_once PHPEXCEL_ROOT . 'PHPExcel/Writer/IWriter.php';
39 
40 
49 {
55  private $_parentWriter;
56 
63  public function setParentWriter(PHPExcel_Writer_IWriter $pWriter = null) {
64  $this->_parentWriter = $pWriter;
65  }
66 
73  public function getParentWriter() {
74  if (!is_null($this->_parentWriter)) {
75  return $this->_parentWriter;
76  } else {
77  throw new Exception("No parent PHPExcel_Writer_IWriter assigned.");
78  }
79  }
80 }