SQLRows implements IRows
SQL Order and limit statement
Tags
Table of Contents
$order | Order by column name | string |
---|---|---|
$start | Start offset | int |
$rows | Number of rows to return | int |
__construct() | Create a new SQLRows instance | mixed |
getOrderBy() | Retrieve the attribute used to sort | string |
getStart() | Retrieve the start offset | int |
getRows() | Retrieve the result set size | int |
getStatement() | Retrieve this part as a string | string |
__toString() | Retrieve this part as a string | string |
Properties
$order
Order by column name
private
string
$order
$start
Start offset
private
int
$start
$rows
Number of rows to return
private
int
$rows
Methods
__construct()
Create a new SQLRows instance
public
__construct(
$order :
string
, $start :
int
, $rows :
int
)
: mixed
Parameters
- $order : string
Order by column name
- $start : int
start offset
- $rows : int
Number of rows to return
Tags
Return values
mixedgetOrderBy()
Retrieve the attribute used to sort
public
getOrderBy(
)
: string
Return values
string —attribute name
getStart()
Retrieve the start offset
public
getStart(
)
: int
Return values
int —offset
getRows()
Retrieve the result set size
public
getRows(
)
: int
Return values
int —size
getStatement()
Retrieve this part as a string
public
getStatement(
)
: string
Return values
string —statement
__toString()
Retrieve this part as a string
public
__toString(
)
: string
Return values
string —statement