Definition at line 13 of file Html.php.
◆ breakTag()
PhpOffice\PhpSpreadsheet\Helper\Html::breakTag |
( |
| ) |
|
|
protected |
Definition at line 787 of file Html.php.
789 $this->stringData .=
"\n";
◆ buildTextRun()
PhpOffice\PhpSpreadsheet\Helper\Html::buildTextRun |
( |
| ) |
|
|
protected |
◆ cleanWhitespace()
PhpOffice\PhpSpreadsheet\Helper\Html::cleanWhitespace |
( |
| ) |
|
|
protected |
◆ colourNameLookup()
static PhpOffice\PhpSpreadsheet\Helper\Html::colourNameLookup |
( |
string |
$rgb | ) |
|
|
static |
Definition at line 697 of file Html.php.
699 return self::$colourMap[$rgb] ??
'';
◆ endBoldTag()
PhpOffice\PhpSpreadsheet\Helper\Html::endBoldTag |
( |
| ) |
|
|
protected |
◆ endFontTag()
PhpOffice\PhpSpreadsheet\Helper\Html::endFontTag |
( |
| ) |
|
|
protected |
Definition at line 722 of file Html.php.
References color, and size.
724 $this->face = $this->
size = $this->
color = null;
if(PHP_SAPI !='cli') color
◆ endItalicTag()
PhpOffice\PhpSpreadsheet\Helper\Html::endItalicTag |
( |
| ) |
|
|
protected |
Definition at line 742 of file Html.php.
744 $this->italic =
false;
◆ endStrikethruTag()
PhpOffice\PhpSpreadsheet\Helper\Html::endStrikethruTag |
( |
| ) |
|
|
protected |
Definition at line 782 of file Html.php.
784 $this->strikethrough =
false;
◆ endSubscriptTag()
PhpOffice\PhpSpreadsheet\Helper\Html::endSubscriptTag |
( |
| ) |
|
|
protected |
Definition at line 762 of file Html.php.
764 $this->subscript =
false;
◆ endSuperscriptTag()
PhpOffice\PhpSpreadsheet\Helper\Html::endSuperscriptTag |
( |
| ) |
|
|
protected |
Definition at line 772 of file Html.php.
774 $this->superscript =
false;
◆ endUnderlineTag()
PhpOffice\PhpSpreadsheet\Helper\Html::endUnderlineTag |
( |
| ) |
|
|
protected |
Definition at line 752 of file Html.php.
754 $this->underline =
false;
◆ handleCallback()
PhpOffice\PhpSpreadsheet\Helper\Html::handleCallback |
( |
DOMElement |
$element, |
|
|
|
$callbackTag, |
|
|
array |
$callbacks |
|
) |
| |
|
protected |
◆ initialise()
PhpOffice\PhpSpreadsheet\Helper\Html::initialise |
( |
| ) |
|
|
protected |
◆ parseElementNode()
PhpOffice\PhpSpreadsheet\Helper\Html::parseElementNode |
( |
DOMElement |
$element | ) |
|
|
protected |
◆ parseElements()
PhpOffice\PhpSpreadsheet\Helper\Html::parseElements |
( |
DOMNode |
$element | ) |
|
|
protected |
◆ parseTextNode()
PhpOffice\PhpSpreadsheet\Helper\Html::parseTextNode |
( |
DOMText |
$textNode | ) |
|
|
protected |
◆ rgbToColour()
PhpOffice\PhpSpreadsheet\Helper\Html::rgbToColour |
( |
|
$rgb | ) |
|
|
protected |
◆ startBoldTag()
PhpOffice\PhpSpreadsheet\Helper\Html::startBoldTag |
( |
| ) |
|
|
protected |
◆ startFontTag()
PhpOffice\PhpSpreadsheet\Helper\Html::startFontTag |
( |
|
$tag | ) |
|
|
protected |
Definition at line 702 of file Html.php.
References $tag, and PhpOffice\PhpSpreadsheet\Helper\Html\rgbToColour().
704 foreach (
$tag->attributes as $attribute) {
705 $attributeName = strtolower($attribute->name);
706 $attributeValue = $attribute->value;
708 if ($attributeName ==
'color') {
709 if (preg_match(
'/rgb\s*\(/', $attributeValue)) {
710 $this->$attributeName = $this->
rgbToColour($attributeValue);
711 } elseif (strpos(trim($attributeValue),
'#') === 0) {
712 $this->$attributeName = ltrim($attributeValue,
'#');
714 $this->$attributeName = static::colourNameLookup($attributeValue);
717 $this->$attributeName = $attributeValue;
if(function_exists('posix_getuid') &&posix_getuid()===0) if(!array_key_exists('t', $options)) $tag
◆ startItalicTag()
PhpOffice\PhpSpreadsheet\Helper\Html::startItalicTag |
( |
| ) |
|
|
protected |
Definition at line 737 of file Html.php.
739 $this->italic =
true;
◆ startStrikethruTag()
PhpOffice\PhpSpreadsheet\Helper\Html::startStrikethruTag |
( |
| ) |
|
|
protected |
Definition at line 777 of file Html.php.
779 $this->strikethrough =
true;
◆ startSubscriptTag()
PhpOffice\PhpSpreadsheet\Helper\Html::startSubscriptTag |
( |
| ) |
|
|
protected |
Definition at line 757 of file Html.php.
759 $this->subscript =
true;
◆ startSuperscriptTag()
PhpOffice\PhpSpreadsheet\Helper\Html::startSuperscriptTag |
( |
| ) |
|
|
protected |
Definition at line 767 of file Html.php.
769 $this->superscript =
true;
◆ startUnderlineTag()
PhpOffice\PhpSpreadsheet\Helper\Html::startUnderlineTag |
( |
| ) |
|
|
protected |
Definition at line 747 of file Html.php.
749 $this->underline =
true;
◆ toRichTextObject()
PhpOffice\PhpSpreadsheet\Helper\Html::toRichTextObject |
( |
|
$html | ) |
|
◆ $bold
PhpOffice\PhpSpreadsheet\Helper\Html::$bold = false |
|
protected |
◆ $color
PhpOffice\PhpSpreadsheet\Helper\Html::$color |
|
protected |
◆ $colourMap
PhpOffice\PhpSpreadsheet\Helper\Html::$colourMap |
|
staticprotected |
Initial value:= [
'aliceblue' => 'f0f8ff'
Definition at line 15 of file Html.php.
◆ $endTagCallbacks
PhpOffice\PhpSpreadsheet\Helper\Html::$endTagCallbacks |
|
protected |
Initial value:= [
'font' => 'endFontTag'
Definition at line 566 of file Html.php.
◆ $face
PhpOffice\PhpSpreadsheet\Helper\Html::$face |
|
protected |
◆ $italic
PhpOffice\PhpSpreadsheet\Helper\Html::$italic = false |
|
protected |
◆ $richTextObject
PhpOffice\PhpSpreadsheet\Helper\Html::$richTextObject |
|
protected |
◆ $size
PhpOffice\PhpSpreadsheet\Helper\Html::$size |
|
protected |
◆ $stack
PhpOffice\PhpSpreadsheet\Helper\Html::$stack = [] |
|
protected |
◆ $startTagCallbacks
PhpOffice\PhpSpreadsheet\Helper\Html::$startTagCallbacks |
|
protected |
Initial value:= [
'font' => 'startFontTag'
Definition at line 553 of file Html.php.
◆ $strikethrough
PhpOffice\PhpSpreadsheet\Helper\Html::$strikethrough = false |
|
protected |
◆ $stringData
PhpOffice\PhpSpreadsheet\Helper\Html::$stringData = '' |
|
protected |
◆ $subscript
PhpOffice\PhpSpreadsheet\Helper\Html::$subscript = false |
|
protected |
◆ $superscript
PhpOffice\PhpSpreadsheet\Helper\Html::$superscript = false |
|
protected |
◆ $underline
PhpOffice\PhpSpreadsheet\Helper\Html::$underline = false |
|
protected |
The documentation for this class was generated from the following file:
- libs/composer/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Helper/Html.php