ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
Run.php
Go to the documentation of this file.
1 <?php
28 if (!defined('PHPEXCEL_ROOT')) {
32  define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
33 }
34 
36 require_once PHPEXCEL_ROOT . 'PHPExcel/RichText/ITextElement.php';
37 
39 require_once PHPEXCEL_ROOT . 'PHPExcel/RichText/TextElement.php';
40 
42 require_once PHPEXCEL_ROOT . 'PHPExcel/Style/Font.php';
43 
44 
53 {
59  private $_font;
60 
66  public function __construct($pText = '')
67  {
68  // Initialise variables
69  $this->setText($pText);
70  $this->_font = new PHPExcel_Style_Font();
71  }
72 
78  public function getFont() {
79  return $this->_font;
80  }
81 
89  public function setFont(PHPExcel_Style_Font $pFont = null) {
90  $this->_font = $pFont;
91  return $this;
92  }
93 
99  public function getHashCode() {
100  return md5(
101  $this->getText()
102  . $this->_font->getHashCode()
103  . __CLASS__
104  );
105  }
106 
110  public function __clone() {
111  $vars = get_object_vars($this);
112  foreach ($vars as $key => $value) {
113  if (is_object($value)) {
114  $this->$key = clone $value;
115  } else {
116  $this->$key = $value;
117  }
118  }
119  }
120 }