ItemsController¶
- class ItemsController¶
Package: Controller
- property contexts¶
- property _ajaxRequiredActions¶
- property _methodRequired¶
- init()¶
- preDispatch()¶
- searchAction()¶
This shows the search form for items by going to the correct URI.
This form can be loaded as a partial by calling items_search_form().
Returns: void
- _getItemElementSets()¶
Gets the element sets for the ‘Item’ record type.
Returns: array The element sets for the ‘Item’ record type
- editAction()¶
Adds an additional permissions check to the built-in edit action.
- _getAddSuccessMessage($item)¶
Parameters: - $item (unknown) –
- _getEditSuccessMessage($item)¶
Parameters: - $item (unknown) –
- _getDeleteSuccessMessage($item)¶
Parameters: - $item (unknown) –
- _getDeleteConfirmMessage($item)¶
Parameters: - $item (unknown) –
- _getElementMetadata($item, $elementSetName, $elementName)¶
Parameters: - $item (unknown) –
- $elementSetName (unknown) –
- $elementName (unknown) –
- addAction()¶
Finds all tags associated with items (used for tag cloud)
Returns: void
- browseAction()¶
Browse the items. Encompasses search, pagination, and filtering of request parameters. Should perhaps be split into a separate mechanism.
Returns: void
- _getBrowseRecordsPerPage()¶
Retrieve the number of items to display on any given browse page. This can be modified as a query parameter provided that a user is actually logged in.
Returns: integer
- changeTypeAction()¶
Find or create an item for this mini-form
- batchEditAction()¶
Batch editing of Items. If this is an AJAX request, it will render the ‘batch-edit’ as a partial.
Returns: void
- batchEditSaveAction()¶
Processes batch edit information. Only accessible via POST.
Returns: void
- paginationAction()¶
Goes to results page based off value in text input.