XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
Public Member Functions | |
__construct ( $url, $flags=XCUBE_PAGENAVI_START) | |
XCube_PageNavigator ( $url, $flags=XCUBE_PAGENAVI_START) | |
fetch () | |
fetchNaviControl (&$navi) | |
addExtra ( $key, $value) | |
removeExtra ( $key) | |
getRenderBaseUrl ( $mask=null) | |
getRenderUrl ( $mask=null) | |
renderUrlForSort () | |
renderUrlForPage ( $page=null) | |
renderSortUrl ( $mask=null) | |
setStart ( $start) | |
getStart () | |
setTotalItems ( $total) | |
getTotalItems () | |
getTotalPages () | |
setPerpage ( $perpage) | |
freezePerpage () | |
getPerpage () | |
setPrefix ( $prefix) | |
getPrefix () | |
getStartKey () | |
getPerpageKey () | |
getCurrentPage () | |
hasPrivPage () | |
getPrivStart () | |
hasNextPage () | |
getNextStart () | |
Data Fields | |
$mAttributes = [] | |
$mStart = 0 | |
$mTotalItems = 0 | |
$mPerpage = XCUBE_PAGENAVI_DEFAULT_PERPAGE | |
$mPerpageFreeze = false | |
$mSort = [] | |
$mUrl = '' | |
$mPrefix | |
$mExtra = [] | |
$mFlags = 0 | |
$mFetch | |
$_mIsSpecifedTotalItems = false | |
$mGetTotalItems | |
$_mIsSpecifiedTotal | |
$mTotal | |
Protected Member Functions | |
_renderExtra ($key, $extra, &$query) | |
Definition at line 24 of file XCube_PageNavigator.class.php.
__construct | ( | $url, | |
$flags = XCUBE_PAGENAVI_START ) |
Constructor.
string | $url | |
int | $flags |
Definition at line 123 of file XCube_PageNavigator.class.php.
|
protected |
$key | * string ** |
$extra | * mixed ** |
$query | * string[] ** |
Definition at line 177 of file XCube_PageNavigator.class.php.
addExtra | ( | $key, | |
$value ) |
Definition at line 166 of file XCube_PageNavigator.class.php.
fetch | ( | ) |
Gets values which this navigator handles, from the request. And, sets values to this object's properties.
Definition at line 141 of file XCube_PageNavigator.class.php.
fetchNaviControl | ( | & | $navi | ) |
Definition at line 145 of file XCube_PageNavigator.class.php.
freezePerpage | ( | ) |
Definition at line 331 of file XCube_PageNavigator.class.php.
getCurrentPage | ( | ) |
Definition at line 355 of file XCube_PageNavigator.class.php.
getNextStart | ( | ) |
Definition at line 373 of file XCube_PageNavigator.class.php.
getPerpage | ( | ) |
Definition at line 335 of file XCube_PageNavigator.class.php.
getPerpageKey | ( | ) |
Definition at line 351 of file XCube_PageNavigator.class.php.
getPrefix | ( | ) |
Definition at line 343 of file XCube_PageNavigator.class.php.
getPrivStart | ( | ) |
Definition at line 363 of file XCube_PageNavigator.class.php.
getRenderBaseUrl | ( | $mask = null | ) |
Definition at line 187 of file XCube_PageNavigator.class.php.
getRenderUrl | ( | $mask = null | ) |
Returns url string for navigation. The return value has lost the starting value. The user need to add a start value. For example, It is "$navi->getRenderUrl().'20'". NOTE : This method name is bad. This must be renamed!
Definition at line 224 of file XCube_PageNavigator.class.php.
getStart | ( | ) |
Definition at line 301 of file XCube_PageNavigator.class.php.
getStartKey | ( | ) |
Definition at line 347 of file XCube_PageNavigator.class.php.
getTotalItems | ( | ) |
Definition at line 310 of file XCube_PageNavigator.class.php.
getTotalPages | ( | ) |
Definition at line 319 of file XCube_PageNavigator.class.php.
hasNextPage | ( | ) |
Definition at line 369 of file XCube_PageNavigator.class.php.
hasPrivPage | ( | ) |
Definition at line 359 of file XCube_PageNavigator.class.php.
removeExtra | ( | $key | ) |
Definition at line 170 of file XCube_PageNavigator.class.php.
renderSortUrl | ( | $mask = null | ) |
Return url string for sort. The return value is complete style.
null | $mask |
Definition at line 293 of file XCube_PageNavigator.class.php.
renderUrlForPage | ( | $page = null | ) |
Definition at line 260 of file XCube_PageNavigator.class.php.
renderUrlForSort | ( | ) |
Definition at line 239 of file XCube_PageNavigator.class.php.
setPerpage | ( | $perpage | ) |
Definition at line 327 of file XCube_PageNavigator.class.php.
setPrefix | ( | $prefix | ) |
Definition at line 339 of file XCube_PageNavigator.class.php.
setStart | ( | $start | ) |
Definition at line 297 of file XCube_PageNavigator.class.php.
setTotalItems | ( | $total | ) |
Definition at line 305 of file XCube_PageNavigator.class.php.
XCube_PageNavigator | ( | $url, | |
$flags = XCUBE_PAGENAVI_START ) |
Definition at line 133 of file XCube_PageNavigator.class.php.
$_mIsSpecifedTotalItems = false |
Definition at line 94 of file XCube_PageNavigator.class.php.
$_mIsSpecifiedTotal |
Definition at line 107 of file XCube_PageNavigator.class.php.
$mAttributes = [] |
Array for extra information.
Definition at line 29 of file XCube_PageNavigator.class.php.
$mExtra = [] |
Array of string for re-building the query strings.
Definition at line 77 of file XCube_PageNavigator.class.php.
$mFetch |
@XCube_Delegate
Definition at line 87 of file XCube_PageNavigator.class.php.
$mFlags = 0 |
Options indicating what this navigator fetches automatically.
Definition at line 82 of file XCube_PageNavigator.class.php.
$mGetTotalItems |
Definition at line 103 of file XCube_PageNavigator.class.php.
$mPerpage = XCUBE_PAGENAVI_DEFAULT_PERPAGE |
Definition at line 47 of file XCube_PageNavigator.class.php.
$mPerpageFreeze = false |
Definition at line 54 of file XCube_PageNavigator.class.php.
$mPrefix |
A prefix for variable names fetched by this navigator. If two independent navigators are used, this property is must.
Definition at line 72 of file XCube_PageNavigator.class.php.
$mSort = [] |
Array for sort.
Definition at line 60 of file XCube_PageNavigator.class.php.
$mStart = 0 |
Definition at line 35 of file XCube_PageNavigator.class.php.
$mTotal |
Definition at line 111 of file XCube_PageNavigator.class.php.
$mTotalItems = 0 |
Definition at line 41 of file XCube_PageNavigator.class.php.
$mUrl = '' |
Definition at line 66 of file XCube_PageNavigator.class.php.