\Fuman_Db_Parameters

Object which holds values for a prepared statement. A unique key will be generated for every added column

Summary

Methods
Properties
Constants
__construct()
getEncoded()
addValue()
add()
append()
count()
rewind()
current()
key()
next()
valid()
No public properties found
No constants found
No protected methods found
$_parameterPrefix
N/A
No private methods found
$_parameters
$_position
$_table
$_instanceCounter
N/A

Properties

$_parameterPrefix

$_parameterPrefix : 

Type

$_parameters

$_parameters : array<mixed,\Fuman_Db_Parameter>

Type

array<mixed,\Fuman_Db_Parameter>

$_position

$_position : 

Type

$_instanceCounter

$_instanceCounter : 

Type

Methods

__construct()

__construct(null|\Fuman_Table  $table = null) 

Constructor

Parameters

null|\Fuman_Table $table

getEncoded()

getEncoded() : array

Gets parameter encoded

Throws

\Exception

Returns

array

addValue()

addValue(string  $columnName, string  $value, null|integer|\Fuman_Db_DataType  $dataType = null) : string

Add value for column name

Parameters

string $columnName
string $value
null|integer|\Fuman_Db_DataType $dataType

@ishacky

Throws

\Exception

Returns

string

add()

add(\Fuman_Db_Parameter  $parameter) : string|null

Adds a parameter

Parameters

\Fuman_Db_Parameter $parameter

Throws

\Exception

Returns

string|null

append()

append(\Fuman_Db_Parameters|null  $parameters = null) : void

Appends parameters

Parameters

\Fuman_Db_Parameters|null $parameters

count()

count() : integer

Count

Returns

integer

rewind()

rewind() : void

Rewind

key()

key() : integer

Key

Returns

integer

next()

next() : void

Next

valid()

valid() : boolean

Valid

Returns

boolean