Open Journal Systems  2.4.3
 All Classes Namespaces Functions Variables Groups Pages
OrderCategoryGridItemsFeature Class Reference
Inheritance diagram for OrderCategoryGridItemsFeature:
OrderItemsFeature GridFeature

Public Member Functions

 _saveRowsInCategoriesSequence (&$grid, $gridCategoryElements, $data)
 
 getInitializedCategoryRowInstance ($args)
 
 getInitializedRowInstance ($args)
 
 getJSClass ()
 
 getType ()
 
 OrderCategoryGridItemsFeature ($typeOption=ORDER_CATEGORY_GRID_CATEGORIES_AND_ROWS, $overrideRowTemplate=true)
 
 saveSequence ($args)
 
- Public Member Functions inherited from OrderItemsFeature
 addRowOrderAction (&$row)
 
 fetchUIElements (&$grid)
 
 getInitializedRowInstance ($args)
 
 getOverrideRowTemplate (&$gridRow)
 
 gridInitialize ($args)
 
 isOrderActionNecessary ()
 
 OrderItemsFeature ($overrideRowTemplate)
 
 setOptions (&$request, &$grid)
 
 setOverrideRowTemplate ($overrideRowTemplate)
 
- Public Member Functions inherited from GridFeature
 addOptions ($options)
 
 fetchGrid ($args)
 
 fetchUIElements (&$grid)
 
 getId ()
 
 getInitializedCategoryRowInstance ($args)
 
 getInitializedRowInstance ($args)
 
 getJSClass ()
 
 getOptions ()
 
 GridFeature ($id)
 
 gridInitialize ($args)
 
 saveSequence ($args)
 
 setId ($id)
 
 setOptions (&$request, &$grid)
 

Detailed Description

Implements category grid ordering functionality.

Definition at line 23 of file OrderCategoryGridItemsFeature.inc.php.

Member Function Documentation

OrderCategoryGridItemsFeature::_saveRowsInCategoriesSequence ( $grid,
  $gridCategoryElements,
  $data 
)

Save row elements sequence inside categories.

Parameters
$gridGridHandler
$gridCategoryElementsarray
$data

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

References getType().

Referenced by saveSequence().

OrderCategoryGridItemsFeature::getInitializedCategoryRowInstance (   $args)
OrderCategoryGridItemsFeature::getInitializedRowInstance (   $args)
OrderCategoryGridItemsFeature::getJSClass ( )
OrderCategoryGridItemsFeature::getType ( )

Return this feature type.

Returns
int One of the ORDER_CATEGORY_GRID_... constants

Definition at line 48 of file OrderCategoryGridItemsFeature.inc.php.

References GridFeature\getOptions().

Referenced by _saveRowsInCategoriesSequence(), getInitializedCategoryRowInstance(), getInitializedRowInstance(), and saveSequence().

OrderCategoryGridItemsFeature::OrderCategoryGridItemsFeature (   $typeOption = ORDER_CATEGORY_GRID_CATEGORIES_AND_ROWS,
  $overrideRowTemplate = true 
)

Constructor.

Parameters
$typeOptionint Defines which grid elements will be orderable (categories and/or rows).
$overrideRowTemplateboolean This feature uses row actions and it will force the usage of the gridRow.tpl. If you want to use a different grid row template file, set this flag to false and make sure to use a template file that adds row actions.

Definition at line 34 of file OrderCategoryGridItemsFeature.inc.php.

References GridFeature\addOptions().

OrderCategoryGridItemsFeature::saveSequence (   $args)

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