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