\PHPExcel_RichText

PHPExcel_RichText

Copyright (c) 2006 - 2015 PHPExcel

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

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) 

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.