Documentation

selectParams

IP-Listen Objekt

Table of Contents

$table Database table name string
$item Select item string string
$where Where clause string
$join JOIN clause string
$params Select params array
$distinct SELECT DISTINCT flag bool
$returnResult Return raw result flag bool
$fetchAll Fetch all mode bool
$fetchStyle Fetch style int
__construct() Constructor method, as of FPCM 4.1 the destination table(s) can be set directly mixed
getTable() Returns database name(s) string|array
getItem() Returns items string
getWhere() Returns where clause string
getJoin() Returns join clause string
getParams() Return select params array
getDistinct() return Distinct select mode bool
getReturnResult() Returns mode of result return bool
getFetchAll() Returns fetch mode bool
getFetchStyle() Returns fetch style int
setTable() Set database table name(s) $this
setItem() Set select items $this
setWhere() Set Where clause $this
setJoin() Set JOIN clause $this
setParams() Set select data params for where clause $this
setDistinct() Set distinct select mode $this
setReturnResult() Set return of raw result $this
setFetchAll() Set fetch mode to all or single mode $this
setFetchStyle() Set fetch style $this
getQuery() string

Properties

$distinct

SELECT DISTINCT flag

private bool $distinct = false

$returnResult

Return raw result flag

private bool $returnResult = false

Methods

__construct()

Constructor method, as of FPCM 4.1 the destination table(s) can be set directly

public __construct( [ $table : string|array = '' ] ) : mixed
Parameters
$table : string|array = ''

(@since 4.1)

Return values
mixed

getTable()

Returns database name(s)

public getTable( ) : string|array
Return values
string|array

getItem()

Returns items

public getItem( ) : string
Return values
string

getWhere()

Returns where clause

public getWhere( ) : string
Return values
string

getJoin()

Returns join clause

public getJoin( ) : string
Return values
string

getParams()

Return select params

public getParams( ) : array
Return values
array

getDistinct()

return Distinct select mode

public getDistinct( ) : bool
Return values
bool

getReturnResult()

Returns mode of result return

public getReturnResult( ) : bool
Return values
bool

getFetchAll()

Returns fetch mode

public getFetchAll( ) : bool
Return values
bool

getFetchStyle()

Returns fetch style

public getFetchStyle( ) : int
Tags
since
Return values
int

setTable()

Set database table name(s)

public setTable( $table : string|array ) : $this
Parameters
$table : string|array
Return values
$this

setItem()

Set select items

public setItem( $item : string ) : $this
Parameters
$item : string
Return values
$this

setWhere()

Set Where clause

public setWhere( $where : string ) : $this
Parameters
$where : string
Return values
$this

setJoin()

Set JOIN clause

public setJoin( $join : string ) : $this
Parameters
$join : string
Return values
$this

setParams()

Set select data params for where clause

public setParams( $params : array ) : $this
Parameters
$params : array
Return values
$this

setDistinct()

Set distinct select mode

public setDistinct( $distinct : bool ) : $this
Parameters
$distinct : bool
Return values
$this

setReturnResult()

Set return of raw result

public setReturnResult( $returnResult : bool ) : $this
Parameters
$returnResult : bool
Return values
$this

setFetchAll()

Set fetch mode to all or single mode

public setFetchAll( $fetchAll : bool ) : $this
Parameters
$fetchAll : bool
Return values
$this

setFetchStyle()

Set fetch style

public setFetchStyle( $fetchStyle : int ) : $this
Parameters
$fetchStyle : int
Tags
since
Return values
$this

getQuery()

public final getQuery( ) : string
Return values
string

Search results