Method | Description | |
---|---|---|
__construct ( Prado\Data\SqlMap\Statements\IMappedStatement $statement, $parameter, $pageSize, $delegate = null, $page ) | Create a new SqlMap paged list. | |
getIsLastPage ( ) : boolean | ||
getIsMiddlePage ( ) : boolean | ||
getIsNextPageAvailable ( ) : boolean | ||
getIsPreviousPageAvailable ( ) : boolean | ||
nextPage ( ) : integer | boolean | Switches to the next page. | |
previousPage ( ) : integer | boolean | Switches to the previous page. | |
setCustomPaging ( $value ) |
Method | Description | |
---|---|---|
fetchDataFromStatement ( $sender, $param ) | Fetch data by executing the SqlMap statement. | |
getOffsetAndLimit ( $param ) : array | Calculate the data fetch offsets and limits. | |
initialize ( $statement, $parameter, $pageSize, $page ) | Initialize the paged list. | |
populateData ( $param, $data ) | Populate the list with the fetched data. |
public __construct ( Prado\Data\SqlMap\Statements\IMappedStatement $statement, $parameter, $pageSize, $delegate = null, $page ) | ||
$statement | Prado\Data\SqlMap\Statements\IMappedStatement |
protected fetchDataFromStatement ( $sender, $param ) |
public getIsLastPage ( ) : boolean | ||
return | boolean | true if is the very last page, false otherwise. |
public getIsMiddlePage ( ) : boolean | ||
return | boolean | true if is not first nor last page, false otherwise. |
public getIsNextPageAvailable ( ) : boolean | ||
return | boolean | true if the next page is available, false otherwise. |
public getIsPreviousPageAvailable ( ) : boolean | ||
return | boolean | true if the previous page is available, false otherwise. |
protected getOffsetAndLimit ( $param ) : array | ||
return | array | 1st element is the offset, 2nd element is the limit. |
protected initialize ( $statement, $parameter, $pageSize, $page ) |
protected populateData ( $param, $data ) |
public previousPage ( ) : integer | boolean | ||
return | integer | boolean | the new page index, false if previous page is not availabe. |