\PHPExcel_RichText

PHPExcel_RichText

Summary

Methods
Properties
Constants
__construct()
addText()
createText()
createTextRun()
getPlainText()
__toString()
getRichTextElements()
setRichTextElements()
getHashCode()
__clone()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$_richTextElements
N/A

Properties

$_richTextElements

$_richTextElements : array<mixed,\PHPExcel_RichText_ITextElement>

Rich text elements

Type

array<mixed,\PHPExcel_RichText_ITextElement>

Methods

__construct()

__construct(\PHPExcel_Cell  $pCell = null) 

Create a new PHPExcel_RichText instance

Parameters

\PHPExcel_Cell $pCell

Throws

\PHPExcel_Exception

createText()

createText(string  $pText = '') : \PHPExcel_RichText_TextElement

Create text

Parameters

string $pText

Text

Throws

\PHPExcel_Exception

Returns

\PHPExcel_RichText_TextElement

createTextRun()

createTextRun(string  $pText = '') : \PHPExcel_RichText_Run

Create text run

Parameters

string $pText

Text

Throws

\PHPExcel_Exception

Returns

\PHPExcel_RichText_Run

getPlainText()

getPlainText() : string

Get plain text

Returns

string

__toString()

__toString() : string

Convert to string

Returns

string

getRichTextElements()

getRichTextElements() : array<mixed,\PHPExcel_RichText_ITextElement>

Get Rich Text elements

Returns

array<mixed,\PHPExcel_RichText_ITextElement>

setRichTextElements()

setRichTextElements(array<mixed,\PHPExcel_RichText_ITextElement>  $pElements = null) : \PHPExcel_RichText

Set Rich Text elements

Parameters

array<mixed,\PHPExcel_RichText_ITextElement> $pElements

Array of elements

Throws

\PHPExcel_Exception

Returns

\PHPExcel_RichText

getHashCode()

getHashCode() : string

Get hash code

Returns

string —

Hash code

__clone()

__clone() 

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