public function PHPExcel_RichText::setRichTextElements in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/RichText.php \PHPExcel_RichText::setRichTextElements()
Set Rich Text elements
Parameters
PHPExcel_RichText_ITextElement[] $pElements Array of elements:
Return value
Throws
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ RichText.php, line 157
Class
- PHPExcel_RichText
- PHPExcel_RichText
Code
public function setRichTextElements($pElements = null) {
if (is_array($pElements)) {
$this->_richTextElements = $pElements;
}
else {
throw new PHPExcel_Exception("Invalid PHPExcel_RichText_ITextElement[] array passed.");
}
return $this;
}