Paragraph
extends Border
in package
Paragraph style.
OOXML:
- General: alignment, outline level
- Indentation: left, right, firstline, hanging
- Spacing: before, after, line spacing
- Pagination: widow control, keep next, keep line, page break before
- Formatting exception: suppress line numbers, don't hyphenate
- Textbox options
- Tabs
- Shading
- Borders
OpenOffice:
- Indents & spacing
- Alignment
- Text flow
- Outline & numbering
- Tabs
- Dropcaps
- Tabs
- Borders
- Background
Tags
Table of Contents
Constants
- DEFAULT_MARGIN = 1440
- LINE_HEIGHT = 240
Properties
- $aliases : array<string|int, mixed>
- Aliases.
- $borderBottomColor : null|string
- Border Bottom Color.
- $borderBottomSize : float|int
- Border Bottom Size.
- $borderBottomStyle : string
- Border Bottom Style.
- $borderLeftColor : null|string
- Border Left Color.
- $borderLeftSize : float|int
- Border Left Size.
- $borderLeftStyle : string
- Border Left Style.
- $borderRightColor : null|string
- Border Right Color.
- $borderRightSize : float|int
- Border Right Size.
- $borderRightStyle : string
- Border Right Style.
- $borderTopColor : null|string
- Border Top Color.
- $borderTopSize : float|int
- Border Top Size.
- $borderTopStyle : string
- Border Top Style.
- $index : null|int
- Index number in Style collection for named style.
- $marginBottom : float|int
- Bottom margin spacing.
- $marginLeft : float|int
- Left margin spacing.
- $marginRight : float|int
- Right margin spacing.
- $marginTop : float|int
- Top margin spacing.
- $styleName : string|null
- Style name.
- $alignment : string
- $basedOn : string
- Parent style.
- $bidi : bool|null
- Right to Left Paragraph Layout.
- $contextualSpacing : bool
- Ignore Spacing Above and Below When Using Identical Styles.
- $indentation : null|Indentation
- Indentation.
- $isAuto : bool
- Is this an automatic style? (Used primarily in OpenDocument driver).
- $keepLines : bool
- Keep all lines on one page.
- $keepNext : bool
- Keep paragraph with next paragraph.
- $lineHeight : null|float|int
- Text line height.
- $next : string
- Style for next paragraph.
- $numLevel : int
- Numbering level.
- $numStyle : string
- Numbering style name.
- $pageBreakBefore : bool
- Start paragraph on next page.
- $shading : Shading
- Shading.
- $spacing : Spacing
- Spacing.
- $suppressAutoHyphens : bool
- Suppress hyphenation for paragraph.
- $tabs : array<string|int, Tab>
- Set of Custom Tab Stops.
- $textAlignment : string
- Vertical Character Alignment on Line.
- $widowControl : bool
- Allow first/last line to display on a separate page.
Methods
- getAlignment() : string
- getBasedOn() : string
- Get parent style ID.
- getBorderBottomColor() : null|string
- Get border bottom color.
- getBorderBottomSize() : float|int
- Get border bottom size.
- getBorderBottomStyle() : string
- Get border bottom style.
- getBorderColor() : array<string|int, null|string>
- Get border color.
- getBorderLeftColor() : null|string
- Get border left color.
- getBorderLeftSize() : float|int
- Get border left size.
- getBorderLeftStyle() : string
- Get border left style.
- getBorderRightColor() : null|string
- Get border right color.
- getBorderRightSize() : float|int
- Get border right size.
- getBorderRightStyle() : string
- Get border right style.
- getBorderSize() : array<string|int, int>
- Get border size.
- getBorderStyle() : array<string|int, string>
- Get border style.
- getBorderTopColor() : null|string
- Get border top color.
- getBorderTopSize() : float|int
- Get border top size.
- getBorderTopStyle() : string
- Get border top style.
- getChildStyleValue() : mixed
- Return style value of child style object, e.g. `left` from `Indentation` child style of `Paragraph`.
- getHanging() : int
- Get hanging.
- getIndent() : int
- Get indentation.
- getIndentation() : null|Indentation
- Get indentation.
- getIndex() : null|int
- Get index number.
- getLineHeight() : null|float|int
- Get line height.
- getMarginBottom() : float|int
- Get Margin Bottom.
- getMarginLeft() : float|int
- Get Margin Left.
- getMarginRight() : float|int
- Get Margin Right.
- getMarginTop() : float|int
- Get Margin Top.
- getNext() : string
- Get style for next paragraph.
- getNumLevel() : int
- Get numbering level.
- getNumStyle() : string
- Get numbering style name.
- getShading() : Shading
- Get shading.
- getSpace() : Spacing
- Get spacing.
- getSpaceAfter() : null|float|int
- Get space after paragraph.
- getSpaceBefore() : null|float|int
- Get space before paragraph.
- getSpacing() : null|float|int
- Get spacing between lines.
- getSpacingLineRule() : string
- Get spacing line rule.
- getStyleName() : string|null
- Get style name.
- getStyleValues() : array<string|int, mixed>
- Get style values.
- getTabs() : array<string|int, Tab>
- Get tabs.
- getTextAlignment() : string
- Get textAlignment.
- hasBorder() : bool
- Check if any of the border is not null.
- hasContextualSpacing() : bool
- Get contextualSpacing.
- hasPageBreakBefore() : bool
- Get start paragraph on next page setting.
- hasSuppressAutoHyphens() : bool
- hasWidowControl() : bool
- Get allow first/last line to display on a separate page setting.
- isAuto() : bool
- Get is automatic style flag.
- isBidi() : bool|null
- Get bidirectional.
- isKeepLines() : bool
- Get keep all lines on one page setting.
- isKeepNext() : bool
- Get keep paragraph with next paragraph setting.
- setAlignment() : self
- setAuto() : self
- Set is automatic style flag.
- setBasedOn() : self
- Set parent style ID.
- setBidi() : self
- Set bidi.
- setBorderBottomColor() : self
- Set border bottom color.
- setBorderBottomSize() : self
- Set border bottom size.
- setBorderBottomStyle() : self
- Set border bottom style.
- setBorderColor() : self
- Set border color.
- setBorderLeftColor() : self
- Set border left color.
- setBorderLeftSize() : self
- Set border left size.
- setBorderLeftStyle() : self
- Set border left style.
- setBorderRightColor() : self
- Set border right color.
- setBorderRightSize() : self
- Set border right size.
- setBorderRightStyle() : self
- Set border right style.
- setBorderSize() : self
- Set border size.
- setBorderStyle() : self
- Set border style.
- setBorderTopColor() : self
- Set border top color.
- setBorderTopSize() : self
- Set border top size.
- setBorderTopStyle() : self
- Set border top Style.
- setContextualSpacing() : self
- Set contextualSpacing.
- setHanging() : self
- Set hanging.
- setIndent() : self
- Set indentation.
- setIndentation() : self
- Set shading.
- setIndex() : self
- Set index number.
- setKeepLines() : self
- Set keep all lines on one page setting.
- setKeepNext() : self
- Set keep paragraph with next paragraph setting.
- setLineHeight() : self
- Set the line height.
- setMarginBottom() : self
- Set Margin Bottom.
- setMarginLeft() : self
- Set Margin Left.
- setMarginRight() : self
- Set Margin Right.
- setMarginTop() : self
- Set Margin Top.
- setNext() : self
- Set style for next paragraph.
- setNumLevel() : self
- Set numbering level.
- setNumStyle() : self
- Set numbering style name.
- setPageBreakBefore() : self
- Set start paragraph on next page setting.
- setShading() : self
- Set shading.
- setSpace() : self
- Set spacing.
- setSpaceAfter() : self
- Set space after paragraph.
- setSpaceBefore() : self
- Set space before paragraph.
- setSpacing() : self
- Set spacing between lines.
- setSpacingLineRule() : Paragraph
- Set the spacing line rule.
- setStyleByArray() : self
- Set style by using associative array.
- setStyleName() : self
- Set style name.
- setStyleValue() : self
- Set Style value.
- setSuppressAutoHyphens() : void
- setTabs() : self
- Set tabs.
- setTextAlignment() : self
- Set textAlignment.
- setWidowControl() : self
- Set keep paragraph with next paragraph setting.
- setBoolVal() : bool
- Set bool value.
- setEnumVal() : mixed
- Set enum value.
- setFloatVal() : null|float
- Set float value: Convert string that contains only numeric into float.
- setIntVal() : null|int
- Set integer value: Convert string that contains only numeric into integer.
- setNonEmptyVal() : string
- Set default for null and empty value.
- setNumericVal() : null|float|int
- Set numeric value.
- setObjectVal() : mixed
- Set object value.
- setPairedVal() : self
- Set $property value and set $pairProperty = false when $value = true.
Constants
DEFAULT_MARGIN
public
mixed
DEFAULT_MARGIN
= 1440
LINE_HEIGHT
public
mixed
LINE_HEIGHT
= 240
Tags
Properties
$aliases
Aliases.
protected
array<string|int, mixed>
$aliases
= ['line-height' => 'lineHeight', 'line-spacing' => 'spacing']
$borderBottomColor
Border Bottom Color.
protected
null|string
$borderBottomColor
$borderBottomSize
Border Bottom Size.
protected
float|int
$borderBottomSize
$borderBottomStyle
Border Bottom Style.
protected
string
$borderBottomStyle
$borderLeftColor
Border Left Color.
protected
null|string
$borderLeftColor
$borderLeftSize
Border Left Size.
protected
float|int
$borderLeftSize
$borderLeftStyle
Border Left Style.
protected
string
$borderLeftStyle
$borderRightColor
Border Right Color.
protected
null|string
$borderRightColor
$borderRightSize
Border Right Size.
protected
float|int
$borderRightSize
$borderRightStyle
Border Right Style.
protected
string
$borderRightStyle
$borderTopColor
Border Top Color.
protected
null|string
$borderTopColor
$borderTopSize
Border Top Size.
protected
float|int
$borderTopSize
$borderTopStyle
Border Top Style.
protected
string
$borderTopStyle
$index
Index number in Style collection for named style.
protected
null|int
$index
This number starts from one and defined in Style::setStyleValues()
$marginBottom
Bottom margin spacing.
protected
float|int
$marginBottom
= self::DEFAULT_MARGIN
$marginLeft
Left margin spacing.
protected
float|int
$marginLeft
= self::DEFAULT_MARGIN
$marginRight
Right margin spacing.
protected
float|int
$marginRight
= self::DEFAULT_MARGIN
$marginTop
Top margin spacing.
protected
float|int
$marginTop
= self::DEFAULT_MARGIN
$styleName
Style name.
protected
string|null
$styleName
$alignment
private
string
$alignment
= ''
$basedOn
Parent style.
private
string
$basedOn
= 'Normal'
$bidi
Right to Left Paragraph Layout.
private
bool|null
$bidi
$contextualSpacing
Ignore Spacing Above and Below When Using Identical Styles.
private
bool
$contextualSpacing
= false
$indentation
Indentation.
private
null|Indentation
$indentation
$isAuto
Is this an automatic style? (Used primarily in OpenDocument driver).
private
bool
$isAuto
= false
Tags
$keepLines
Keep all lines on one page.
private
bool
$keepLines
= false
$keepNext
Keep paragraph with next paragraph.
private
bool
$keepNext
= false
$lineHeight
Text line height.
private
null|float|int
$lineHeight
$next
Style for next paragraph.
private
string
$next
$numLevel
Numbering level.
private
int
$numLevel
= 0
$numStyle
Numbering style name.
private
string
$numStyle
$pageBreakBefore
Start paragraph on next page.
private
bool
$pageBreakBefore
= false
$shading
Shading.
private
Shading
$shading
$spacing
Spacing.
private
Spacing
$spacing
$suppressAutoHyphens
Suppress hyphenation for paragraph.
private
bool
$suppressAutoHyphens
= false
$tabs
Set of Custom Tab Stops.
private
array<string|int, Tab>
$tabs
= []
$textAlignment
Vertical Character Alignment on Line.
private
string
$textAlignment
$widowControl
Allow first/last line to display on a separate page.
private
bool
$widowControl
= true
Methods
getAlignment()
public
getAlignment() : string
Tags
Return values
stringgetBasedOn()
Get parent style ID.
public
getBasedOn() : string
Return values
stringgetBorderBottomColor()
Get border bottom color.
public
getBorderBottomColor() : null|string
Return values
null|stringgetBorderBottomSize()
Get border bottom size.
public
getBorderBottomSize() : float|int
Return values
float|intgetBorderBottomStyle()
Get border bottom style.
public
getBorderBottomStyle() : string
Return values
stringgetBorderColor()
Get border color.
public
getBorderColor() : array<string|int, null|string>
Return values
array<string|int, null|string>getBorderLeftColor()
Get border left color.
public
getBorderLeftColor() : null|string
Return values
null|stringgetBorderLeftSize()
Get border left size.
public
getBorderLeftSize() : float|int
Return values
float|intgetBorderLeftStyle()
Get border left style.
public
getBorderLeftStyle() : string
Return values
stringgetBorderRightColor()
Get border right color.
public
getBorderRightColor() : null|string
Return values
null|stringgetBorderRightSize()
Get border right size.
public
getBorderRightSize() : float|int
Return values
float|intgetBorderRightStyle()
Get border right style.
public
getBorderRightStyle() : string
Return values
stringgetBorderSize()
Get border size.
public
getBorderSize() : array<string|int, int>
Return values
array<string|int, int>getBorderStyle()
Get border style.
public
getBorderStyle() : array<string|int, string>
Return values
array<string|int, string>getBorderTopColor()
Get border top color.
public
getBorderTopColor() : null|string
Return values
null|stringgetBorderTopSize()
Get border top size.
public
getBorderTopSize() : float|int
Return values
float|intgetBorderTopStyle()
Get border top style.
public
getBorderTopStyle() : string
Return values
stringgetChildStyleValue()
Return style value of child style object, e.g. `left` from `Indentation` child style of `Paragraph`.
public
getChildStyleValue(AbstractStyle $substyleObject, string $substyleProperty) : mixed
Parameters
- $substyleObject : AbstractStyle
- $substyleProperty : string
Tags
getHanging()
Get hanging.
public
getHanging() : int
Return values
intgetIndent()
Get indentation.
public
getIndent() : int
Return values
intgetIndentation()
Get indentation.
public
getIndentation() : null|Indentation
Return values
null|IndentationgetIndex()
Get index number.
public
getIndex() : null|int
Return values
null|intgetLineHeight()
Get line height.
public
getLineHeight() : null|float|int
Return values
null|float|intgetMarginBottom()
Get Margin Bottom.
public
getMarginBottom() : float|int
Return values
float|intgetMarginLeft()
Get Margin Left.
public
getMarginLeft() : float|int
Return values
float|intgetMarginRight()
Get Margin Right.
public
getMarginRight() : float|int
Return values
float|intgetMarginTop()
Get Margin Top.
public
getMarginTop() : float|int
Return values
float|intgetNext()
Get style for next paragraph.
public
getNext() : string
Return values
stringgetNumLevel()
Get numbering level.
public
getNumLevel() : int
Return values
intgetNumStyle()
Get numbering style name.
public
getNumStyle() : string
Return values
stringgetShading()
Get shading.
public
getShading() : Shading
Return values
ShadinggetSpace()
Get spacing.
public
getSpace() : Spacing
Tags
Return values
SpacinggetSpaceAfter()
Get space after paragraph.
public
getSpaceAfter() : null|float|int
Return values
null|float|intgetSpaceBefore()
Get space before paragraph.
public
getSpaceBefore() : null|float|int
Return values
null|float|intgetSpacing()
Get spacing between lines.
public
getSpacing() : null|float|int
Return values
null|float|intgetSpacingLineRule()
Get spacing line rule.
public
getSpacingLineRule() : string
Return values
stringgetStyleName()
Get style name.
public
getStyleName() : string|null
Return values
string|nullgetStyleValues()
Get style values.
public
getStyleValues() : array<string|int, mixed>
An experiment to retrieve all style values in one function. This will reduce function call and increase cohesion between functions. Should be implemented in all styles.
Tags
Return values
array<string|int, mixed>getTabs()
Get tabs.
public
getTabs() : array<string|int, Tab>
Return values
array<string|int, Tab>getTextAlignment()
Get textAlignment.
public
getTextAlignment() : string
Return values
stringhasBorder()
Check if any of the border is not null.
public
hasBorder() : bool
Return values
boolhasContextualSpacing()
Get contextualSpacing.
public
hasContextualSpacing() : bool
Return values
boolhasPageBreakBefore()
Get start paragraph on next page setting.
public
hasPageBreakBefore() : bool
Return values
boolhasSuppressAutoHyphens()
public
hasSuppressAutoHyphens() : bool
Return values
boolhasWidowControl()
Get allow first/last line to display on a separate page setting.
public
hasWidowControl() : bool
Return values
boolisAuto()
Get is automatic style flag.
public
isAuto() : bool
Return values
boolisBidi()
Get bidirectional.
public
isBidi() : bool|null
Return values
bool|nullisKeepLines()
Get keep all lines on one page setting.
public
isKeepLines() : bool
Return values
boolisKeepNext()
Get keep paragraph with next paragraph setting.
public
isKeepNext() : bool
Return values
boolsetAlignment()
public
setAlignment(string $value) : self
Parameters
- $value : string
Tags
Return values
selfsetAuto()
Set is automatic style flag.
public
setAuto([bool $value = true ]) : self
Parameters
- $value : bool = true
Return values
selfsetBasedOn()
Set parent style ID.
public
setBasedOn([string $value = 'Normal' ]) : self
Parameters
- $value : string = 'Normal'
Return values
selfsetBidi()
Set bidi.
public
setBidi(bool|null $bidi) : self
Parameters
- $bidi : bool|null
-
Set to true to write from right to left
Return values
selfsetBorderBottomColor()
Set border bottom color.
public
setBorderBottomColor([null|string $value = null ]) : self
Parameters
- $value : null|string = null
Return values
selfsetBorderBottomSize()
Set border bottom size.
public
setBorderBottomSize([float|int $value = null ]) : self
Parameters
- $value : float|int = null
Return values
selfsetBorderBottomStyle()
Set border bottom style.
public
setBorderBottomStyle([string $value = null ]) : self
Parameters
- $value : string = null
Return values
selfsetBorderColor()
Set border color.
public
setBorderColor([null|string $value = null ]) : self
Parameters
- $value : null|string = null
Return values
selfsetBorderLeftColor()
Set border left color.
public
setBorderLeftColor([null|string $value = null ]) : self
Parameters
- $value : null|string = null
Return values
selfsetBorderLeftSize()
Set border left size.
public
setBorderLeftSize([float|int $value = null ]) : self
Parameters
- $value : float|int = null
Return values
selfsetBorderLeftStyle()
Set border left style.
public
setBorderLeftStyle([string $value = null ]) : self
Parameters
- $value : string = null
Return values
selfsetBorderRightColor()
Set border right color.
public
setBorderRightColor([null|string $value = null ]) : self
Parameters
- $value : null|string = null
Return values
selfsetBorderRightSize()
Set border right size.
public
setBorderRightSize([float|int $value = null ]) : self
Parameters
- $value : float|int = null
Return values
selfsetBorderRightStyle()
Set border right style.
public
setBorderRightStyle([string $value = null ]) : self
Parameters
- $value : string = null
Return values
selfsetBorderSize()
Set border size.
public
setBorderSize([float|int $value = null ]) : self
Parameters
- $value : float|int = null
Return values
selfsetBorderStyle()
Set border style.
public
setBorderStyle([string $value = null ]) : self
Parameters
- $value : string = null
Return values
selfsetBorderTopColor()
Set border top color.
public
setBorderTopColor([null|string $value = null ]) : self
Parameters
- $value : null|string = null
Return values
selfsetBorderTopSize()
Set border top size.
public
setBorderTopSize([float|int $value = null ]) : self
Parameters
- $value : float|int = null
Return values
selfsetBorderTopStyle()
Set border top Style.
public
setBorderTopStyle([string $value = null ]) : self
Parameters
- $value : string = null
Return values
selfsetContextualSpacing()
Set contextualSpacing.
public
setContextualSpacing(bool $contextualSpacing) : self
Parameters
- $contextualSpacing : bool
Return values
selfsetHanging()
Set hanging.
public
setHanging([int $value = null ]) : self
Parameters
- $value : int = null
Return values
selfsetIndent()
Set indentation.
public
setIndent([int $value = null ]) : self
Parameters
- $value : int = null
Return values
selfsetIndentation()
Set shading.
public
setIndentation([mixed $value = null ]) : self
Parameters
- $value : mixed = null
Return values
selfsetIndex()
Set index number.
public
setIndex([null|int $value = null ]) : self
Parameters
- $value : null|int = null
Return values
selfsetKeepLines()
Set keep all lines on one page setting.
public
setKeepLines([bool $value = true ]) : self
Parameters
- $value : bool = true
Return values
selfsetKeepNext()
Set keep paragraph with next paragraph setting.
public
setKeepNext([bool $value = true ]) : self
Parameters
- $value : bool = true
Return values
selfsetLineHeight()
Set the line height.
public
setLineHeight(float|int|string $lineHeight) : self
Parameters
- $lineHeight : float|int|string
Return values
selfsetMarginBottom()
Set Margin Bottom.
public
setMarginBottom([float|int $value = null ]) : self
Parameters
- $value : float|int = null
Return values
selfsetMarginLeft()
Set Margin Left.
public
setMarginLeft([float|int $value = null ]) : self
Parameters
- $value : float|int = null
Return values
selfsetMarginRight()
Set Margin Right.
public
setMarginRight([float|int $value = null ]) : self
Parameters
- $value : float|int = null
Return values
selfsetMarginTop()
Set Margin Top.
public
setMarginTop([float|int $value = null ]) : self
Parameters
- $value : float|int = null
Return values
selfsetNext()
Set style for next paragraph.
public
setNext([string $value = null ]) : self
Parameters
- $value : string = null
Return values
selfsetNumLevel()
Set numbering level.
public
setNumLevel([int $value = 0 ]) : self
Parameters
- $value : int = 0
Return values
selfsetNumStyle()
Set numbering style name.
public
setNumStyle(string $value) : self
Parameters
- $value : string
Return values
selfsetPageBreakBefore()
Set start paragraph on next page setting.
public
setPageBreakBefore([bool $value = true ]) : self
Parameters
- $value : bool = true
Return values
selfsetShading()
Set shading.
public
setShading([mixed $value = null ]) : self
Parameters
- $value : mixed = null
Return values
selfsetSpace()
Set spacing.
public
setSpace([mixed $value = null ]) : self
Parameters
- $value : mixed = null
Tags
Return values
selfsetSpaceAfter()
Set space after paragraph.
public
setSpaceAfter([null|float|int $value = null ]) : self
Parameters
- $value : null|float|int = null
Return values
selfsetSpaceBefore()
Set space before paragraph.
public
setSpaceBefore([null|float|int $value = null ]) : self
Parameters
- $value : null|float|int = null
Return values
selfsetSpacing()
Set spacing between lines.
public
setSpacing([null|float|int $value = null ]) : self
Parameters
- $value : null|float|int = null
Return values
selfsetSpacingLineRule()
Set the spacing line rule.
public
setSpacingLineRule(string $value) : Paragraph
Parameters
- $value : string
-
Possible values are defined in LineSpacingRule
Return values
ParagraphsetStyleByArray()
Set style by using associative array.
public
setStyleByArray([array<string|int, mixed> $values = [] ]) : self
Parameters
- $values : array<string|int, mixed> = []
Return values
selfsetStyleName()
Set style name.
public
setStyleName(string $value) : self
Parameters
- $value : string
Return values
selfsetStyleValue()
Set Style value.
public
setStyleValue(string $key, mixed $value) : self
Parameters
- $key : string
- $value : mixed
Return values
selfsetSuppressAutoHyphens()
public
setSuppressAutoHyphens(bool $suppressAutoHyphens) : void
Parameters
- $suppressAutoHyphens : bool
setTabs()
Set tabs.
public
setTabs([array<string|int, mixed> $value = null ]) : self
Parameters
- $value : array<string|int, mixed> = null
Return values
selfsetTextAlignment()
Set textAlignment.
public
setTextAlignment(string $textAlignment) : self
Parameters
- $textAlignment : string
Return values
selfsetWidowControl()
Set keep paragraph with next paragraph setting.
public
setWidowControl([bool $value = true ]) : self
Parameters
- $value : bool = true
Return values
selfsetBoolVal()
Set bool value.
protected
setBoolVal(bool $value, bool $default) : bool
Parameters
- $value : bool
- $default : bool
Return values
boolsetEnumVal()
Set enum value.
protected
setEnumVal([mixed $value = null ][, array<string|int, mixed> $enum = [] ][, mixed $default = null ]) : mixed
Parameters
- $value : mixed = null
- $enum : array<string|int, mixed> = []
- $default : mixed = null
setFloatVal()
Set float value: Convert string that contains only numeric into float.
protected
setFloatVal(mixed $value[, null|float $default = null ]) : null|float
Parameters
- $value : mixed
- $default : null|float = null
Return values
null|floatsetIntVal()
Set integer value: Convert string that contains only numeric into integer.
protected
setIntVal(null|float|int|string $value[, null|int $default = null ]) : null|int
Parameters
- $value : null|float|int|string
- $default : null|int = null
Return values
null|intsetNonEmptyVal()
Set default for null and empty value.
protected
setNonEmptyVal(string|null $value, string $default) : string
Parameters
- $value : string|null
- $default : string
Return values
stringsetNumericVal()
Set numeric value.
protected
setNumericVal(mixed $value[, null|float|int $default = null ]) : null|float|int
Parameters
- $value : mixed
- $default : null|float|int = null
Return values
null|float|intsetObjectVal()
Set object value.
protected
setObjectVal(mixed $value, string $styleName, mixed &$style) : mixed
Parameters
- $value : mixed
- $styleName : string
- $style : mixed
setPairedVal()
Set $property value and set $pairProperty = false when $value = true.
protected
setPairedVal(bool &$property, bool &$pairProperty, bool $value) : self
Parameters
- $property : bool
- $pairProperty : bool
- $value : bool