AdvancedValueBinder
extends DefaultValueBinder
in package
implements
IValueBinder
Table of Contents
Interfaces
Properties
- $preserveCr : bool
Methods
- bindValue() : bool
- Bind value to a cell.
- dataTypeForValue() : string
- DataType for value.
- getPreserveCr() : bool
- setPreserveCr() : self
- setCurrency() : bool
- setImproperFraction() : bool
- setPercentage() : bool
- setProperFraction() : bool
- setTimeHoursMinutes() : bool
- setTimeHoursMinutesSeconds() : bool
Properties
$preserveCr
protected
bool
$preserveCr
= false
Methods
bindValue()
Bind value to a cell.
public
bindValue(Cell $cell[, mixed $value = null ]) : bool
Parameters
- $cell : Cell
-
Cell to bind value to
- $value : mixed = null
-
Value to bind in cell
Return values
booldataTypeForValue()
DataType for value.
public
static dataTypeForValue(mixed $value) : string
Parameters
- $value : mixed
Return values
stringgetPreserveCr()
public
getPreserveCr() : bool
Return values
boolsetPreserveCr()
public
setPreserveCr(bool $preserveCr) : self
Parameters
- $preserveCr : bool
Return values
selfsetCurrency()
protected
setCurrency(float $value, Cell $cell, string $currencyCode) : bool
Parameters
- $value : float
- $cell : Cell
- $currencyCode : string
Return values
boolsetImproperFraction()
protected
setImproperFraction(array{0: string, 1: ?string, 2: numeric-string, 3: numeric-string, 4: numeric-string} $matches, Cell $cell) : bool
Parameters
- $matches : array{0: string, 1: ?string, 2: numeric-string, 3: numeric-string, 4: numeric-string}
- $cell : Cell
Return values
boolsetPercentage()
protected
setPercentage(string $value, Cell $cell) : bool
Parameters
- $value : string
- $cell : Cell
Return values
boolsetProperFraction()
protected
setProperFraction(array{0: string, 1: ?string, 2: numeric-string, 3: numeric-string} $matches, Cell $cell) : bool
Parameters
- $matches : array{0: string, 1: ?string, 2: numeric-string, 3: numeric-string}
- $cell : Cell
Return values
boolsetTimeHoursMinutes()
protected
setTimeHoursMinutes(string $value, Cell $cell) : bool
Parameters
- $value : string
- $cell : Cell
Return values
boolsetTimeHoursMinutesSeconds()
protected
setTimeHoursMinutesSeconds(string $value, Cell $cell) : bool
Parameters
- $value : string
- $cell : Cell