Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($id) | |
addOptions ($options) | |
fetchGrid ($args) | |
fetchRow ($args) | |
fetchRows ($args) | |
fetchUIElements ($request, $grid) | |
getGridDataElements ($args) | |
getGridRangeInfo ($args) | |
getId () | |
getInitializedCategoryRowInstance ($args) | |
getInitializedRowInstance ($args) | |
getJSClass () | |
getOptions () | |
getRequestArgs ($args) | |
gridInitialize ($args) | |
loadData ($args) | |
saveSequence ($args) | |
setGridDataElements ($args) | |
setId ($id) | |
setOptions ($request, $grid) | |
Data Fields | |
$_id | |
$_options | |
Base grid feature class. A feature is a type of plugin specific to the grid widgets. It provides several hooks to allow injection of additional grid functionality. This class implements template methods to be extended by subclasses.
Definition at line 20 of file GridFeature.inc.php.
GridFeature::__construct | ( | $id | ) |
Constructor.
$id | string Feature id. |
Reimplemented in PagingFeature, and CollapsibleGridFeature.
Definition at line 38 of file GridFeature.inc.php.
References setId().
GridFeature::addOptions | ( | $options | ) |
Add feature js class options.
$options | array $optionId => $optionValue |
Definition at line 74 of file GridFeature.inc.php.
References getOptions().
Referenced by OrderCategoryGridItemsFeature\__construct(), GeneralPagingFeature\getGridDataElements(), GeneralPagingFeature\setOptions(), setOptions(), and OrderItemsFeature\setOptions().
GridFeature::fetchGrid | ( | $args | ) |
Hook called on grid fetching.
$args | array 'grid' => GridHandler |
Definition at line 218 of file GridFeature.inc.php.
References setOptions().
GridFeature::fetchRow | ( | $args | ) |
Hook called after a row is fetched.
$args | array 'request' => PKPRequest 'grid' => GridHandler 'row' => mixed GridRow or null 'jsonMessage' => JSONMessage |
Reimplemented in InfiniteScrollingFeature, and PagingFeature.
Definition at line 244 of file GridFeature.inc.php.
GridFeature::fetchRows | ( | $args | ) |
Hook called after a group of rows is fetched.
$args | array 'request' => PKPRequest 'grid' => GridHandler 'jsonMessage' => JSONMessage |
Reimplemented in InfiniteScrollingFeature.
Definition at line 232 of file GridFeature.inc.php.
GridFeature::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 in OrderItemsFeature, PagingFeature, InfiniteScrollingFeature, and CollapsibleGridFeature.
Definition at line 110 of file GridFeature.inc.php.
Referenced by setOptions().
GridFeature::getGridDataElements | ( | $args | ) |
Hook called when grid data is retrieved.
$args | array 'request' => PKPRequest 'grid' => GridHandler 'gridData' => mixed (array or ItemIterator) 'filter' => array |
Reimplemented in GeneralPagingFeature.
Definition at line 159 of file GridFeature.inc.php.
GridFeature::getGridRangeInfo | ( | $args | ) |
Hook called every time the grid range info is retrieved.
$args | array 'request' => PKPRequest 'grid' => GridHandler 'rangeInfo' => DBResultRange |
Reimplemented in GeneralPagingFeature.
Definition at line 147 of file GridFeature.inc.php.
GridFeature::getId | ( | ) |
GridFeature::getInitializedCategoryRowInstance | ( | $args | ) |
Hook called on grid category row initialization.
$args | array 'request' => PKPRequest 'grid' => CategoryGridHandler 'categoryId' => int 'row' => GridCategoryRow |
Reimplemented in OrderCategoryGridItemsFeature.
Definition at line 190 of file GridFeature.inc.php.
GridFeature::getInitializedRowInstance | ( | $args | ) |
Hook called every time grid initialize a row object.
$args | array 'grid' => GridHandler, 'row' => GridRow |
Reimplemented in OrderItemsFeature, OrderCategoryGridItemsFeature, and SelectableItemsFeature.
Definition at line 179 of file GridFeature.inc.php.
GridFeature::getJSClass | ( | ) |
Return the java script feature class.
Reimplemented in OrderCategoryGridItemsFeature, InfiniteScrollingFeature, PagingFeature, OrderGridItemsFeature, OrderListbuilderItemsFeature, and CollapsibleGridFeature.
Definition at line 118 of file GridFeature.inc.php.
GridFeature::getOptions | ( | ) |
Get feature js class options.
Definition at line 66 of file GridFeature.inc.php.
References $_options.
Referenced by addOptions(), PagingFeature\fetchRow(), InfiniteScrollingFeature\fetchRow(), InfiniteScrollingFeature\fetchRows(), InfiniteScrollingFeature\fetchUIElements(), PagingFeature\fetchUIElements(), and OrderCategoryGridItemsFeature\getType().
GridFeature::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.
$args | array 'grid' => GridHandler 'requestArgs' => array |
Reimplemented in GeneralPagingFeature.
Definition at line 135 of file GridFeature.inc.php.
GridFeature::gridInitialize | ( | $args | ) |
Hook called on grid's initialization.
$args | array Contains the grid handler referenced object in 'grid' array index. |
Reimplemented in OrderItemsFeature, and SelectableItemsFeature.
Definition at line 199 of file GridFeature.inc.php.
GridFeature::loadData | ( | $args | ) |
Hook called on grid's data loading.
$args | array 'request' => PKPRequest, 'grid' => GridHandler, 'gridData' => array |
Definition at line 210 of file GridFeature.inc.php.
GridFeature::saveSequence | ( | $args | ) |
Hook called when save grid items sequence is requested.
$args | array 'request' => PKPRequest, 'grid' => GridHandler |
Reimplemented in OrderCategoryGridItemsFeature, and OrderGridItemsFeature.
Definition at line 254 of file GridFeature.inc.php.
GridFeature::setGridDataElements | ( | $args | ) |
Hook called before grid data is setted.
$args | array 'grid' => GridHandler 'data' => mixed (array or ItemIterator) |
Reimplemented in GeneralPagingFeature.
Definition at line 169 of file GridFeature.inc.php.
GridFeature::setId | ( | $id | ) |
Set feature id.
$id | string |
Definition at line 58 of file GridFeature.inc.php.
Referenced by __construct().
GridFeature::setOptions | ( | $request, | |
$grid | |||
) |
Set feature js class options. Extend this method to define more feature js class options.
$request | PKPRequest |
$grid | GridHandler |
Reimplemented in OrderItemsFeature, and GeneralPagingFeature.
Definition at line 89 of file GridFeature.inc.php.
References addOptions(), and fetchUIElements().
Referenced by fetchGrid().
string GridFeature::$_id |
Definition at line 26 of file GridFeature.inc.php.
Referenced by getId().
array GridFeature::$_options |
Definition at line 32 of file GridFeature.inc.php.
Referenced by getOptions().