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

Private Attributes

 $_font

Detailed Description

Definition at line 52 of file Run.php.

Constructor & Destructor Documentation

PHPExcel_RichText_Run::__construct (   $pText = '')

Create a new PHPExcel_RichText_Run instance.

Parameters
string$pTextText

Reimplemented from PHPExcel_RichText_TextElement.

Definition at line 66 of file Run.php.

References PHPExcel_RichText_ITextElement\setText().

{
// Initialise variables
$this->setText($pText);
$this->_font = new PHPExcel_Style_Font();
}

+ Here is the call graph for this function:

Member Function Documentation

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 110 of file Run.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_Run::getFont ( )

Get font.

Returns
PHPExcel_Style_Font

Implements PHPExcel_RichText_ITextElement.

Definition at line 78 of file Run.php.

References $_font.

{
return $this->_font;
}
PHPExcel_RichText_Run::getHashCode ( )

Get hash code.

Returns
string Hash code

Implements PHPExcel_RichText_ITextElement.

Definition at line 99 of file Run.php.

References PHPExcel_RichText_ITextElement\getText().

{
return md5(
$this->getText()
. $this->_font->getHashCode()
. __CLASS__
);
}

+ Here is the call graph for this function:

PHPExcel_RichText_Run::setFont ( PHPExcel_Style_Font  $pFont = null)

Set font.

Parameters
PHPExcel_Style_Font$pFontFont
Exceptions
Exception
Returns
PHPExcel_RichText_ITextElement

Definition at line 89 of file Run.php.

Referenced by PHPExcel_RichText\__construct().

{
$this->_font = $pFont;
return $this;
}

+ Here is the caller graph for this function:

Field Documentation

PHPExcel_RichText_Run::$_font
private

Definition at line 59 of file Run.php.

Referenced by getFont().


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