ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
PHPExcel_RichText_TextElement Class Reference
+ Inheritance diagram for PHPExcel_RichText_TextElement:
+ Collaboration diagram for PHPExcel_RichText_TextElement:

Public Member Functions

 __construct ($pText='')
 Create a new PHPExcel_RichText_TextElement instance. More...
 
 getText ()
 Get text. More...
 
 setText ($pText='')
 Set text. More...
 
 getFont ()
 Get font. More...
 
 getHashCode ()
 Get hash code. More...
 
 __clone ()
 Implement PHP __clone to create a deep clone, not just a shallow copy. More...
 

Private Attributes

 $_text
 

Detailed Description

Definition at line 34 of file TextElement.php.

Constructor & Destructor Documentation

◆ __construct()

PHPExcel_RichText_TextElement::__construct (   $pText = '')

Create a new PHPExcel_RichText_TextElement instance.

Parameters
string$pTextText

Definition at line 48 of file TextElement.php.

49  {
50  // Initialise variables
51  $this->_text = $pText;
52  }

Member Function Documentation

◆ __clone()

PHPExcel_RichText_TextElement::__clone ( )

Implement PHP __clone to create a deep clone, not just a shallow copy.

Definition at line 98 of file TextElement.php.

References $key.

98  {
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  }
$key
Definition: croninfo.php:18

◆ getFont()

PHPExcel_RichText_TextElement::getFont ( )

Get font.

Returns
PHPExcel_Style_Font

Implements PHPExcel_RichText_ITextElement.

Definition at line 79 of file TextElement.php.

79  {
80  return null;
81  }

◆ getHashCode()

PHPExcel_RichText_TextElement::getHashCode ( )

Get hash code.

Returns
string Hash code

Implements PHPExcel_RichText_ITextElement.

Definition at line 88 of file TextElement.php.

88  {
89  return md5(
90  $this->_text
91  . __CLASS__
92  );
93  }

◆ getText()

PHPExcel_RichText_TextElement::getText ( )

Get text.

Returns
string Text

Implements PHPExcel_RichText_ITextElement.

Definition at line 59 of file TextElement.php.

References $_text.

59  {
60  return $this->_text;
61  }

◆ setText()

PHPExcel_RichText_TextElement::setText (   $pText = '')

Set text.

Parameters
$pTextstring Text
Returns
PHPExcel_RichText_ITextElement

Implements PHPExcel_RichText_ITextElement.

Definition at line 69 of file TextElement.php.

69  {
70  $this->_text = $pText;
71  return $this;
72  }

Field Documentation

◆ $_text

PHPExcel_RichText_TextElement::$_text
private

Definition at line 41 of file TextElement.php.

Referenced by getText().


The documentation for this class was generated from the following file: