Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
CategoryCategoryGridHandler Class Reference
Inheritance diagram for CategoryCategoryGridHandler:
CategoryGridHandler GridHandler PKPHandler

Public Member Functions

 _getCategoryForm ($request)
 
 _getPressId ()
 
 addCategory ($args, $request)
 
 authorize ($request, &$args, $roleAssignments)
 
 CategoryCategoryGridHandler ()
 
 deleteCategory ($args, $request)
 
 editCategory ($args, $request)
 
 getCategoryData (&$category)
 
 getCategoryRowIdParameterName ()
 
 getCategoryRowInstance ()
 
 getRowInstance ()
 
 initialize ($request)
 
 loadData ($request, $filter)
 
 updateCategory ($args, $request)
 
 uploadImage ($args, $request)
 
- Public Member Functions inherited from CategoryGridHandler
 CategoryGridHandler ($dataProvider=null)
 
 fetchCategory (&$args, $request)
 
 getCurrentCategoryId ()
 
 getDataElementInCategorySequence ($categoryId, &$gridDataElement)
 
 getEmptyCategoryRowText ()
 
 getJSHandler ()
 
 getRequestArgs ()
 
 hasGridDataElementsInCategory ($categoryDataElement, $request)
 
 isDataElementInCategorySelected ($categoryId, &$gridDataElement)
 
 setDataElementInCategorySequence ($categoryId, &$gridDataElement, $newSequence)
 
 setEmptyCategoryRowText ($translationKey)
 
 setUrls ($request)
 
- Public Member Functions inherited from GridHandler
 addAction ($action, $position=GRID_ACTION_POSITION_ABOVE)
 
 addColumn ($column)
 
 authorize ($request, &$args, $roleAssignments, $enforceRestrictedSite=true)
 
 fetchCell (&$args, $request)
 
 fetchGrid ($args, $request)
 
 fetchRow (&$args, $request)
 
 getActions ($position=GRID_ACTION_POSITION_ABOVE)
 
 getColumn ($columnId)
 
getColumns ()
 
getColumnsByFlag ($flag)
 
 getColumnsCount ($flag)
 
 getDataElementSequence (&$gridDataElement)
 
 getDataProvider ()
 
 getEmptyRowText ()
 
 getFeatures ()
 
 getFootNote ()
 
getGridDataElements ($request)
 
 getGridRangeInfo ($request, $rangeName, $contextData=null)
 
 getInstructions ()
 
 getIsSubcomponent ()
 
 getItemIterator ()
 
 getJSHandler ()
 
 getPublishChangeEvents ()
 
 getRequestArg ($key)
 
 getRequestArgs ()
 
 getRequestedRow ($request, $args)
 
 getSelectName ()
 
 getTemplate ()
 
 getTitle ()
 
 getUrls ()
 
 GridHandler ($dataProvider=null)
 
 hasColumn ($columnId)
 
 hasGridDataElements ($request)
 
 initialize ($request, $args=null)
 
 isDataElementSelected ($gridDataElement)
 
 renderRow ($request, $row)
 
 saveSequence ($args, $request)
 
 setDataElementSequence ($request, $rowId, &$gridDataElement, $newSequence)
 
 setEmptyRowText ($emptyRowText)
 
 setFootNote ($footNote)
 
 setGridDataElements ($data)
 
 setInstructions ($instructions)
 
 setTemplate ($template)
 
 setTitle ($title)
 
 setUrls ($request, $extraUrls=array())
 
- Public Member Functions inherited from PKPHandler
 addCheck (&$handlerValidator)
 
 addPolicy ($authorizationPolicy, $addToTop=false)
 
 addRoleAssignment ($roleIds, $operations)
 
 authorize ($request, &$args, $roleAssignments, $enforceRestrictedSite=true)
 
getAuthorizedContext ()
 
getAuthorizedContextObject ($assocType)
 
getDispatcher ()
 
 getFirstUserContext ($user, $contexts)
 
 getId ()
 
 getLastAuthorizationMessage ()
 
 getLoginExemptions ()
 
 getRoleAssignment ($roleId)
 
 getRoleAssignments ()
 
 getWorkingContexts ($request)
 
 index ($args, $request)
 
 initialize ($request, $args=null)
 
 PKPHandler ()
 
 setDispatcher ($dispatcher)
 
 setId ($id)
 
 setupTemplate ($request)
 
 validate ($requiredContexts=null, $request=null)
 

Additional Inherited Members

- Static Public Member Functions inherited from PKPHandler
static getPageParamName ($rangeName)
 
static getRangeInfo ($request, $rangeName, $contextData=null)
 
static hashPageContext ($request, $contextData=array())
 
- Public Attributes inherited from CategoryGridHandler
 $_currentCategoryId = null
 
 $_emptyCategoryRowText = 'grid.noItems'
 
- Public Attributes inherited from GridHandler
 $_actions = array(GRID_ACTION_POSITION_DEFAULT => array())
 
 $_columns = array()
 
 $_data
 
 $_emptyRowText = 'grid.noItems'
 
 $_features
 
 $_footNote = ''
 
 $_instructions = ''
 
 $_itemIterator
 
 $_template
 
 $_title = ''
 
 $_urls
 
- Public Attributes inherited from PKPHandler
 $_authorizationDecisionManager
 
 $_checks = array()
 
 $_dispatcher
 
 $_id
 
 $_roleAssignments = array()
 
- Protected Member Functions inherited from CategoryGridHandler
 doSpecificFetchGridActions ($args, $request, &$templateMgr)
 
getCategoryData (&$categoryDataElement, $filter=null)
 
 getCategoryRowIdParameterName ()
 
 getCategoryRowInstance ()
 
 getRequestedCategoryRow ($request, $args)
 
 getRowDataElement ($request, $rowId)
 
 getRowsSequence ($request)
 
 renderRowInternally ($request, $row)
 
 setFirstDataColumn ()
 
- Protected Member Functions inherited from GridHandler
 callFeaturesHook ($hookName, $args)
 
 doSpecificFetchGridActions ($args, $request, $templateMgr)
 
getDataElementFromRequest ($request, &$elementId)
 
 getFilterForm ()
 
 getFilterSelectionData ($request)
 
 getRowDataElement ($request, $rowId)
 
 getRowInstance ()
 
 getRowsSequence ($request)
 
 initFeatures ($request, &$args)
 
 loadData ($request, $filter)
 
 noAutocompleteResults ()
 
 renderFilter ($request, $filterData=array())
 
 renderGridBodyPartsInternally ($request)
 
 renderRowInternally ($request, $row)
 
 renderRowsInternally ($request, &$elements)
 
 setFirstDataColumn ()
 

Detailed Description

Handle operations for category management operations.

Definition at line 26 of file CategoryCategoryGridHandler.inc.php.

Member Function Documentation

CategoryCategoryGridHandler::_getCategoryForm (   $request)

Get a CategoryForm instance.

Parameters
$requestRequest
Returns
UserGroupForm

Definition at line 254 of file CategoryCategoryGridHandler.inc.php.

References _getPressId().

Referenced by editCategory(), and updateCategory().

CategoryCategoryGridHandler::_getPressId ( )

Get press id.

Returns
int

Definition at line 268 of file CategoryCategoryGridHandler.inc.php.

Referenced by _getCategoryForm(), getCategoryData(), and loadData().

CategoryCategoryGridHandler::addCategory (   $args,
  $request 
)

Handle the add category operation.

Parameters
$argsarray
$requestPKPRequest

Definition at line 164 of file CategoryCategoryGridHandler.inc.php.

References editCategory().

CategoryCategoryGridHandler::authorize (   $request,
$args,
  $roleAssignments 
)
See Also
PKPHandler::authorize()
Parameters
$requestPKPRequest
$argsarray
$roleAssignmentsarray

Definition at line 58 of file CategoryCategoryGridHandler.inc.php.

References PKPHandler\addPolicy().

CategoryCategoryGridHandler::CategoryCategoryGridHandler ( )

Constructor

Definition at line 32 of file CategoryCategoryGridHandler.inc.php.

References PKPHandler\addRoleAssignment().

CategoryCategoryGridHandler::deleteCategory (   $args,
  $request 
)

Delete a category

Parameters
$argsarray
$requestPKPRequest
Returns
string Serialized JSON object

Definition at line 206 of file CategoryCategoryGridHandler.inc.php.

References DAORegistry\getDAO(), and DAO\getDataChangedEvent().

CategoryCategoryGridHandler::editCategory (   $args,
  $request 
)

Handle the edit category operation.

Parameters
$argsarray
$requestPKPRequest

Definition at line 173 of file CategoryCategoryGridHandler.inc.php.

References _getCategoryForm(), and JSONMessage\getString().

Referenced by addCategory().

CategoryCategoryGridHandler::getCategoryData ( $category)
CategoryCategoryGridHandler::getCategoryRowIdParameterName ( )
CategoryCategoryGridHandler::getCategoryRowInstance ( )
See Also
CategoryGridHandler::geCategorytRowInstance()
Returns
CategoryGridCategoryRow

Definition at line 144 of file CategoryCategoryGridHandler.inc.php.

CategoryCategoryGridHandler::getRowInstance ( )
CategoryCategoryGridHandler::initialize (   $request)
CategoryCategoryGridHandler::loadData (   $request,
  $filter 
)
CategoryCategoryGridHandler::updateCategory (   $args,
  $request 
)

Update category data in database and grid.

Parameters
$argsarray
$requestPKPRequest

Definition at line 187 of file CategoryCategoryGridHandler.inc.php.

References _getCategoryForm(), DAO\getDataChangedEvent(), and JSONMessage\getString().

CategoryCategoryGridHandler::uploadImage (   $args,
  $request 
)

Handle file uploads for cover/image art for things like Series and Categories.

Parameters
$requestPKPRequest
$argsarray

Definition at line 228 of file CategoryCategoryGridHandler.inc.php.


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