Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
PagingFeature Class Reference
Inheritance diagram for PagingFeature:
GridFeature

Public Member Functions

 fetchRow ($args)
 
 fetchUIElements ($request, $grid)
 
 getGridRangeInfo ($args)
 
 getItemIterator ()
 
 getJSClass ()
 
 getRequestArgs ($args)
 
 PagingFeature ()
 
 setGridDataElements ($args)
 
 setOptions ($request, $grid)
 
- Public Member Functions inherited from GridFeature
 addOptions ($options)
 
 fetchGrid ($args)
 
 fetchRow ($args)
 
 fetchUIElements ($request, $grid)
 
 getGridDataElements ($args)
 
 getGridRangeInfo ($args)
 
 getId ()
 
 getInitializedCategoryRowInstance ($args)
 
 getInitializedRowInstance ($args)
 
 getJSClass ()
 
 getOptions ()
 
 getRequestArgs ($args)
 
 GridFeature ($id)
 
 gridInitialize ($args)
 
 loadData ($args)
 
 saveSequence ($args)
 
 setGridDataElements ($args)
 
 setId ($id)
 
 setOptions ($request, $grid)
 

Detailed Description

Add paging functionality to grids.

Definition at line 19 of file PagingFeature.inc.php.

Member Function Documentation

PagingFeature::fetchRow (   $args)
See Also
GridFeature::fetchRow() 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.

Parameters
$argsarray

Definition at line 195 of file PagingFeature.inc.php.

PagingFeature::fetchUIElements (   $request,
  $grid 
)
See Also
GridFeature::fetchUIElements()
Parameters
$requestPKPRequest
$gridGrid

Definition at line 95 of file PagingFeature.inc.php.

PagingFeature::getGridRangeInfo (   $args)
See Also
GridFeature::getGridRangeInfo()
Parameters
$argsarray

Definition at line 168 of file PagingFeature.inc.php.

PagingFeature::getItemIterator ( )

Get item iterator.

Returns
ItemIterator

Definition at line 41 of file PagingFeature.inc.php.

PagingFeature::getJSClass ( )
See Also
GridFeature::getJSClass()

Definition at line 52 of file PagingFeature.inc.php.

References PKPHandler\getRangeInfo().

PagingFeature::getRequestArgs (   $args)
See Also
GridFeature::getRequestArgs()
Parameters
$argsarray

Definition at line 151 of file PagingFeature.inc.php.

PagingFeature::PagingFeature ( )

Constructor.

Definition at line 30 of file PagingFeature.inc.php.

PagingFeature::setGridDataElements (   $args)
See Also
GridFeature::setGridDataElements()
Parameters
$argsarray

Definition at line 131 of file PagingFeature.inc.php.

References ArrayItemIterator\toArray().

PagingFeature::setOptions (   $request,
  $grid 
)
See Also
GridFeature::setOptions()
Parameters
$requestPKPRequest
$gridGrid

Definition at line 61 of file PagingFeature.inc.php.


The documentation for this class was generated from the following file: