Open Journal Systems  3.3.0
GeneralPagingFeature Class Reference
Inheritance diagram for GeneralPagingFeature:
GridFeature InfiniteScrollingFeature PagingFeature

Public Member Functions

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

Additional Inherited Members

- Data Fields inherited from GridFeature
 $_id
 
 $_options
 

Detailed Description

Base class that implements common functionality for paging features.

Definition at line 20 of file GeneralPagingFeature.inc.php.

Constructor & Destructor Documentation

◆ __construct()

GeneralPagingFeature::__construct (   $id,
  $itemsPerPage = null 
)
See also
GridFeature::GridFeature()
Parameters
$idstring Feature identifier.
$itemsPerPagenull|int Optional Number of items to show at the first time. Constructor.

Reimplemented in InfiniteScrollingFeature.

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

Member Function Documentation

◆ getGridDataElements()

GeneralPagingFeature::getGridDataElements (   $args)

Hook called when grid data is retrieved.

Parameters
$argsarray 'request' => PKPRequest 'grid' => GridHandler 'gridData' => mixed (array or ItemIterator) 'filter' => array

Reimplemented from GridFeature.

Definition at line 105 of file GeneralPagingFeature.inc.php.

References GridFeature\addOptions().

◆ getGridRangeInfo()

GeneralPagingFeature::getGridRangeInfo (   $args)

Hook called every time the grid range info is retrieved.

Parameters
$argsarray 'request' => PKPRequest 'grid' => GridHandler 'rangeInfo' => DBResultRange

Reimplemented from GridFeature.

Definition at line 152 of file GeneralPagingFeature.inc.php.

◆ getItemIterator()

GeneralPagingFeature::getItemIterator ( )

◆ getRequestArgs()

GeneralPagingFeature::getRequestArgs (   $args)

Hook called every time grid request args are required. Note that if the specific grid implementation extends the getRequestArgs method, this hook will only be called if the extending method call its parent.

Parameters
$argsarray 'grid' => GridHandler 'requestArgs' => array

Reimplemented from GridFeature.

Definition at line 136 of file GeneralPagingFeature.inc.php.

References PKPApplication\get(), and PKPHandler\getPageParamName().

◆ setGridDataElements()

GeneralPagingFeature::setGridDataElements (   $args)

Hook called before grid data is setted.

Parameters
$argsarray 'grid' => GridHandler 'data' => mixed (array or ItemIterator)

Reimplemented from GridFeature.

Definition at line 117 of file GeneralPagingFeature.inc.php.

References PKPApplication\get().

◆ setOptions()

GeneralPagingFeature::setOptions (   $request,
  $grid 
)

Set feature js class options. Extend this method to define more feature js class options.

Parameters
$requestPKPRequest
$gridGridHandler

Reimplemented from GridFeature.

Definition at line 65 of file GeneralPagingFeature.inc.php.

References GridFeature\addOptions(), getItemIterator(), PKPHandler\getPageParamName(), and PKPHandler\getRangeInfo().

Referenced by PagingFeature\fetchRow(), InfiniteScrollingFeature\fetchRow(), and InfiniteScrollingFeature\fetchRows().


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