TextBox extends Frame
TextBox style writer
Tags
Table of Contents
- PHP_32BIT_INT_MAX = 2147483647
- $style : string|AbstractStyle
- Style; set protected for a while
- $xmlWriter : XMLWriter
- XML writer
- __construct() : mixed
- Create new instance.
- write() : mixed
- Write style
- writeAlignment() : mixed
- Write alignment.
- writeBorder() : mixed
- Writer border.
- writeInnerMargin() : mixed
- Writer inner margin.
- assembleStyle() : string
- Assemble style array into style string
- convertTwip() : int|float
- Convert twip value
- getStyle() : string|AbstractStyle
- Get Style
- getXmlWriter() : XMLWriter
- Get XML Writer
- writeChildStyle() : mixed
- Write child style.
- writeOnOf() : null|string
- Writes boolean as 0 or 1
- getStyles() : array<string|int, mixed>
- Get style values in associative array
- writeWrap() : mixed
- Write wrap.
Constants
PHP_32BIT_INT_MAX
public
mixed
PHP_32BIT_INT_MAX
= 2147483647
Properties
$style
Style; set protected for a while
protected
string|AbstractStyle
$style
$xmlWriter
XML writer
private
XMLWriter
$xmlWriter
Methods
__construct()
Create new instance.
public
__construct(XMLWriter $xmlWriter[, string|AbstractStyle $style = null ]) : mixed
Parameters
- $xmlWriter : XMLWriter
- $style : string|AbstractStyle = null
Return values
mixed —write()
Write style
public
abstract write() : mixed
Return values
mixed —writeAlignment()
Write alignment.
public
writeAlignment() : mixed
Return values
mixed —writeBorder()
Writer border.
public
writeBorder() : mixed
Return values
mixed —writeInnerMargin()
Writer inner margin.
public
writeInnerMargin() : mixed
Return values
mixed —assembleStyle()
Assemble style array into style string
protected
assembleStyle([array<string|int, mixed> $styles = array() ]) : string
Parameters
- $styles : array<string|int, mixed> = array()
Return values
string —convertTwip()
Convert twip value
protected
convertTwip(int|float $value, int $default) : int|float
Parameters
- $value : int|float
- $default : int
-
(int|float)
Return values
int|float —getStyle()
Get Style
protected
getStyle() : string|AbstractStyle
Return values
string|AbstractStyle —getXmlWriter()
Get XML Writer
protected
getXmlWriter() : XMLWriter
Return values
XMLWriter —writeChildStyle()
Write child style.
protected
writeChildStyle(XMLWriter $xmlWriter, string $name, mixed $value) : mixed
Parameters
- $xmlWriter : XMLWriter
- $name : string
- $value : mixed
Return values
mixed —writeOnOf()
Writes boolean as 0 or 1
protected
writeOnOf([bool $value = null ]) : null|string
Parameters
- $value : bool = null
Return values
null|string —getStyles()
Get style values in associative array
private
getStyles(Frame $style, array<string|int, mixed> $properties[, string $suffix = '' ]) : array<string|int, mixed>
Parameters
- $style : Frame
- $properties : array<string|int, mixed>
- $suffix : string = ''
Return values
array<string|int, mixed> —writeWrap()
Write wrap.
private
writeWrap(XMLWriter $xmlWriter, Frame $style, string $wrap) : mixed