ItemsController¶
Package: Controller
- class ItemsController¶
extends Omeka_Controller_AbstractActionController
- property ItemsController::$contexts¶
- ItemsController::init()¶
- ItemsController::preDispatch()¶
- ItemsController::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
- ItemsController::_getItemElementSets()¶
Gets the element sets for the ‘Item’ record type.
Returns: array The element sets for the ‘Item’ record type
- ItemsController::editAction()¶
Adds an additional permissions check to the built-in edit action.
- ItemsController::_getAddSuccessMessage($item)¶
Parameters:
- $item –
- ItemsController::_getEditSuccessMessage($item)¶
Parameters:
- $item –
- ItemsController::_getDeleteSuccessMessage($item)¶
Parameters:
- $item –
- ItemsController::_getDeleteConfirmMessage($item)¶
Parameters:
- $item –
- ItemsController::_getElementMetadata($item, $elementSetName, $elementName)¶
Parameters:
- $item –
- $elementSetName –
- $elementName –
- ItemsController::addAction()¶
Finds all tags associated with items (used for tag cloud)
Returns: void
- ItemsController::browseAction()¶
Browse the items. Encompasses search, pagination, and filtering of request parameters. Should perhaps be split into a separate mechanism.
Returns: void
- ItemsController::_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
- ItemsController::changeTypeAction()¶
Find or create an item for this mini-form
- ItemsController::batchEditAction()¶
Batch editing of Items. If this is an AJAX request, it will render the ‘batch-edit’ as a partial.
Returns: void
- ItemsController::batchEditSaveAction()¶
Processes batch edit information. Only accessible via POST.
Returns: void