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

Public Member Functions

 __construct ($pText='')
 Create a new PHPExcel_RichText_Run instance. More...
 
 getFont ()
 Get font. More...
 
 setFont (PHPExcel_Style_Font $pFont=null)
 Set font. More...
 
 getHashCode ()
 Get hash code. More...
 
 __clone ()
 Implement PHP __clone to create a deep clone, not just a shallow copy. More...
 
- Public Member Functions inherited from PHPExcel_RichText_TextElement
 __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

 $_font
 

Detailed Description

Definition at line 34 of file Run.php.

Constructor & Destructor Documentation

◆ __construct()

PHPExcel_RichText_Run::__construct (   $pText = '')

Create a new PHPExcel_RichText_Run instance.

Parameters
string$pTextText

Definition at line 48 of file Run.php.

References PHPExcel_RichText_ITextElement\setText().

49  {
50  // Initialise variables
51  $this->setText($pText);
52  $this->_font = new PHPExcel_Style_Font();
53  }
setText($pText='')
Set text.
+ Here is the call graph for this function:

Member Function Documentation

◆ __clone()

PHPExcel_RichText_Run::__clone ( )

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

Definition at line 92 of file Run.php.

References $key.

92  {
93  $vars = get_object_vars($this);
94  foreach ($vars as $key => $value) {
95  if (is_object($value)) {
96  $this->$key = clone $value;
97  } else {
98  $this->$key = $value;
99  }
100  }
101  }
$key
Definition: croninfo.php:18

◆ getFont()

PHPExcel_RichText_Run::getFont ( )

Get font.

Returns
PHPExcel_Style_Font

Implements PHPExcel_RichText_ITextElement.

Definition at line 60 of file Run.php.

References $_font.

60  {
61  return $this->_font;
62  }

◆ getHashCode()

PHPExcel_RichText_Run::getHashCode ( )

Get hash code.

Returns
string Hash code

Implements PHPExcel_RichText_ITextElement.

Definition at line 81 of file Run.php.

References PHPExcel_RichText_ITextElement\getText().

81  {
82  return md5(
83  $this->getText()
84  . $this->_font->getHashCode()
85  . __CLASS__
86  );
87  }
+ Here is the call graph for this function:

◆ setFont()

PHPExcel_RichText_Run::setFont ( PHPExcel_Style_Font  $pFont = null)

Set font.

Parameters
PHPExcel_Style_Font$pFontFont
Exceptions
PHPExcel_Exception
Returns
PHPExcel_RichText_ITextElement

Definition at line 71 of file Run.php.

Referenced by PHPExcel_RichText\__construct().

71  {
72  $this->_font = $pFont;
73  return $this;
74  }
+ Here is the caller graph for this function:

Field Documentation

◆ $_font

PHPExcel_RichText_Run::$_font
private

Definition at line 41 of file Run.php.

Referenced by getFont().


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