\Imi\Db\QueryOrder

Summary

Methods
Properties
Constants
isRaw()
useRaw()
setRawSQL()
parseKeywordText()
parseKeywordToText()
parseKeyword()
__construct()
getFieldName()
getDirection()
setFieldName()
setDirection()
__toString()
getBinds()
No public properties found
No constants found
No protected methods found
$isRaw
$rawSQL
$fieldName
$direction
N/A
No private methods found
No private properties found
N/A

Properties

$isRaw

$isRaw : boolean

是否使用原生语句

Type

boolean

$rawSQL

$rawSQL : string

原生语句

Type

string

$fieldName

$fieldName : string

字段名

Type

string

$direction

$direction : string

排序方向:asc/desc

Type

string

Methods

isRaw()

isRaw() : boolean

获取是否使用原生语句

Returns

boolean

useRaw()

useRaw(boolean  $isRaw = true) : void

设置是否使用原生语句

Parameters

boolean $isRaw

setRawSQL()

setRawSQL(string  $rawSQL) : void

设置原生语句

Parameters

string $rawSQL

parseKeywordText()

parseKeywordText(string  $string) : array

把输入的关键字文本转为数组

Parameters

string $string

Returns

array

parseKeywordToText()

parseKeywordToText(array  $keywords, string|null  $alias = null,   $jsonKeywords = null) : void

从数组拼装为有分隔标识符的关键字

Parameters

array $keywords
string|null $alias
$jsonKeywords

parseKeyword()

parseKeyword(string  $string) : string

处理关键字输入,转为安全的分隔标识符的关键字

Parameters

string $string

Returns

string

__construct()

__construct(\Imi\Db\Query\string  $fieldName = null, \Imi\Db\Query\string  $direction = 'asc') 

Parameters

\Imi\Db\Query\string $fieldName
\Imi\Db\Query\string $direction

getFieldName()

getFieldName() : string

获取字段名

Returns

string

getDirection()

getDirection() : string

获取排序方向:asc/desc

Returns

string

setFieldName()

setFieldName(string  $fieldName) : void

设置字段名

Parameters

string $fieldName

setDirection()

setDirection(string  $direction) : void

设置排序方向:asc/desc

Parameters

string $direction

__toString()

__toString() 

getBinds()

getBinds() : array

获取绑定的数据们

Returns

array