ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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.
 getText ()
 Get text.
 setText ($pText= '')
 Set text.
 getFont ()
 Get font.
 getHashCode ()
 Get hash code.
 __clone ()
 Implement PHP __clone to create a deep clone, not just a shallow copy.

Private Attributes

 $_text

Detailed Description

Definition at line 49 of file TextElement.php.

Constructor & Destructor Documentation

PHPExcel_RichText_TextElement::__construct (   $pText = '')

Create a new PHPExcel_RichText_TextElement instance.

Parameters
string$pTextText

Reimplemented in PHPExcel_RichText_Run.

Definition at line 63 of file TextElement.php.

{
// Initialise variables
$this->_text = $pText;
}

Member Function Documentation

PHPExcel_RichText_TextElement::__clone ( )

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

Reimplemented in PHPExcel_RichText_Run.

Definition at line 113 of file TextElement.php.

References $key.

{
$vars = get_object_vars($this);
foreach ($vars as $key => $value) {
if (is_object($value)) {
$this->$key = clone $value;
} else {
$this->$key = $value;
}
}
}
PHPExcel_RichText_TextElement::getFont ( )

Get font.

Returns
PHPExcel_Style_Font

Implements PHPExcel_RichText_ITextElement.

Reimplemented in PHPExcel_RichText_Run.

Definition at line 94 of file TextElement.php.

{
return null;
}
PHPExcel_RichText_TextElement::getHashCode ( )

Get hash code.

Returns
string Hash code

Implements PHPExcel_RichText_ITextElement.

Reimplemented in PHPExcel_RichText_Run.

Definition at line 103 of file TextElement.php.

{
return md5(
$this->_text
. __CLASS__
);
}
PHPExcel_RichText_TextElement::getText ( )

Get text.

Returns
string Text

Implements PHPExcel_RichText_ITextElement.

Definition at line 74 of file TextElement.php.

References $_text.

{
return $this->_text;
}
PHPExcel_RichText_TextElement::setText (   $pText = '')

Set text.

Parameters
$pTextstring Text
Returns
PHPExcel_RichText_ITextElement

Implements PHPExcel_RichText_ITextElement.

Definition at line 84 of file TextElement.php.

{
$this->_text = $pText;
return $this;
}

Field Documentation

PHPExcel_RichText_TextElement::$_text
private

Definition at line 56 of file TextElement.php.

Referenced by getText().


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