ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
TextElement.php
Go to the documentation of this file.
1 <?php
35 {
41  private $_text;
42 
48  public function __construct($pText = '')
49  {
50  // Initialise variables
51  $this->_text = $pText;
52  }
53 
59  public function getText() {
60  return $this->_text;
61  }
62 
69  public function setText($pText = '') {
70  $this->_text = $pText;
71  return $this;
72  }
73 
79  public function getFont() {
80  return null;
81  }
82 
88  public function getHashCode() {
89  return md5(
90  $this->_text
91  . __CLASS__
92  );
93  }
94 
98  public function __clone() {
99  $vars = get_object_vars($this);
100  foreach ($vars as $key => $value) {
101  if (is_object($value)) {
102  $this->$key = clone $value;
103  } else {
104  $this->$key = $value;
105  }
106  }
107  }
108 }
getHashCode()
Get hash code.
Definition: TextElement.php:88
setText($pText='')
Set text.
Definition: TextElement.php:69
__clone()
Implement PHP __clone to create a deep clone, not just a shallow copy.
Definition: TextElement.php:98
__construct($pText='')
Create a new PHPExcel_RichText_TextElement instance.
Definition: TextElement.php:48