\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

Methods

__construct()

__construct(\PHPExcel_Cell  $pCell = null) : mixed

Create a new PHPExcel_RichText instance

Parameters

\PHPExcel_Cell $pCell

Throws

\PHPExcel_Exception

Returns

mixed —

addText()

addText(\PHPExcel_RichText_ITextElement  $pText = null) : \PHPExcel_RichText

Add text

Parameters

\PHPExcel_RichText_ITextElement $pText

Rich text element

Throws

\PHPExcel_Exception

Returns

\PHPExcel_RichText —

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() : \PHPExcel_RichText_ITextElement[]

Get Rich Text elements

Returns

\PHPExcel_RichText_ITextElement[] —

setRichTextElements()

setRichTextElements(\PHPExcel_RichText_ITextElement[]  $pElements = null) : \PHPExcel_RichText

Set Rich Text elements

Parameters

\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() : mixed

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

Returns

mixed —