ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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...
 
 getText ()
 Get text. More...
 
 setText ($pText='')
 Set text. More...
 
 getFont ()
 Get font. More...
 
 getHashCode ()
 Get hash code. 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

Reimplemented from PHPExcel_RichText_TextElement.

Definition at line 48 of file Run.php.

49 {
50 // Initialise variables
51 $this->setText($pText);
52 $this->_font = new PHPExcel_Style_Font();
53 }
setText($pText='')
Set text.

References PHPExcel_RichText_ITextElement\setText().

+ 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.

Reimplemented from PHPExcel_RichText_TextElement.

Definition at line 92 of file Run.php.

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 }

◆ getFont()

PHPExcel_RichText_Run::getFont ( )

Get font.

Returns
PHPExcel_Style_Font

Implements PHPExcel_RichText_ITextElement.

Definition at line 60 of file Run.php.

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

References $_font.

◆ getHashCode()

PHPExcel_RichText_Run::getHashCode ( )

Get hash code.

Returns
string Hash code

Implements PHPExcel_RichText_ITextElement.

Definition at line 81 of file Run.php.

81 {
82 return md5(
83 $this->getText()
84 . $this->_font->getHashCode()
85 . __CLASS__
86 );
87 }

References PHPExcel_RichText_ITextElement\getText().

+ 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.

71 {
72 $this->_font = $pFont;
73 return $this;
74 }

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: