Documentation

MarginBorder extends AbstractStyle
in package

Margin border style writer.

Tags
since
0.10.0

Table of Contents

Properties

$style  : AbstractStyle|string
Style; set protected for a while.
$attributes  : array<string|int, mixed>
Other attributes.
$colors  : array<string|int, string>
Colors.
$sizes  : array<string|int, int>
Sizes.
$styles  : array<string|int, string>
Border styles.
$xmlWriter  : XMLWriter
XML writer.

Methods

__construct()  : mixed
Create new instance.
setAttributes()  : void
Set attributes.
setColors()  : void
Set colors.
setSizes()  : void
Set sizes.
setStyles()  : void
Set border styles.
write()  : void
Write style.
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.
writeSide()  : void
Write side.

Properties

$attributes

Other attributes.

private array<string|int, mixed> $attributes = []

$colors

Colors.

private array<string|int, string> $colors = []

$sizes

Sizes.

private array<string|int, int> $sizes = []

$styles

Border styles.

private array<string|int, string> $styles = []

Methods

setAttributes()

Set attributes.

public setAttributes(array<string|int, mixed> $value) : void
Parameters
$value : array<string|int, mixed>

setColors()

Set colors.

public setColors(array<string|int, null|string> $value) : void
Parameters
$value : array<string|int, null|string>

setSizes()

Set sizes.

public setSizes(array<string|int, int> $value) : void
Parameters
$value : array<string|int, int>

setStyles()

Set border styles.

public setStyles(array<string|int, string> $value) : void
Parameters
$value : array<string|int, string>

assembleStyle()

Assemble style array into style string.

protected assembleStyle([array<string|int, mixed> $styles = [] ]) : string
Parameters
$styles : array<string|int, mixed> = []
Return values
string

convertTwip()

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|int

writeChildStyle()

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|string

writeSide()

Write side.

private writeSide(XMLWriter $xmlWriter, string $side, int $width[, string $color = null ][, string $borderStyle = 'solid' ]) : void
Parameters
$xmlWriter : XMLWriter
$side : string
$width : int
$color : string = null
$borderStyle : string = 'solid'

        
On this page

Search results