|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| __construct ($id='paging') | |
| fetchRow ($args) | |
| fetchUIElements ($request, $grid) | |
| getJSClass () | |
Public Member Functions inherited from GeneralPagingFeature | |
| __construct ($id, $itemsPerPage=null) | |
| getGridDataElements ($args) | |
| getGridRangeInfo ($args) | |
| getItemIterator () | |
| getRequestArgs ($args) | |
| setGridDataElements ($args) | |
| setOptions ($request, $grid) | |
Public Member Functions inherited from GridFeature | |
| addOptions ($options) | |
| fetchGrid ($args) | |
| fetchRows ($args) | |
| getId () | |
| getInitializedCategoryRowInstance ($args) | |
| getInitializedRowInstance ($args) | |
| getOptions () | |
| gridInitialize ($args) | |
| loadData ($args) | |
| saveSequence ($args) | |
| setId ($id) | |
Additional Inherited Members | |
Data Fields inherited from GridFeature | |
| $_id | |
| $_options | |
Add paging functionality to grids.
Definition at line 19 of file PagingFeature.inc.php.
| PagingFeature::__construct | ( | $id = 'paging' | ) |
| $id | string Feature identifier. |
Reimplemented from GridFeature.
Definition at line 26 of file PagingFeature.inc.php.
| PagingFeature::fetchRow | ( | $args | ) |
Hook called after a row is fetched.
| $args | array 'request' => PKPRequest 'grid' => GridHandler 'row' => mixed GridRow or null 'jsonMessage' => JSONMessage Check if user really deleted a row. Handle following cases: 1 - recently added requested row is on previous pages and its addition changes the current requested page items; 2 - deleted a row from a page that's not the last one; 3 - deleted the last row from a page that's not the last one; |
The solution is: 1 - fetch the first grid data row; 2 - fetch the last grid data row; 3 - send a request to refresh the entire grid usign the previous page.
Reimplemented from GridFeature.
Definition at line 74 of file PagingFeature.inc.php.
References GeneralPagingFeature\getItemIterator(), GridFeature\getOptions(), and GeneralPagingFeature\setOptions().
| PagingFeature::fetchUIElements | ( | $request, | |
| $grid | |||
| ) |
Fetch any user interface elements that this feature needs to add its functionality into the grid. Use this only for ui elements that grid will not fetch itself.
| $request | PKPRequest |
| $grid | GridHandler The grid that this feature is attached to. |
Reimplemented from GridFeature.
Definition at line 45 of file PagingFeature.inc.php.
References GeneralPagingFeature\getItemIterator(), PKPTemplateManager\getManager(), and GridFeature\getOptions().
| PagingFeature::getJSClass | ( | ) |
Return the java script feature class.
Reimplemented from GridFeature.
Definition at line 37 of file PagingFeature.inc.php.