Class AdminFavoritesAjaxController
This class handles the ajax requests for the favorites menu box from the admin menu.
category |
System |
---|---|
package |
AdminHttpViewControllers |
extends |
AdminHttpViewController |
__construct(\HttpContextReaderInterface $httpContextReader, \HttpResponseProcessorInterface $httpResponseProcessor, \ContentViewInterface $defaultContentView)
\HttpContextReaderInterface
\HttpResponseProcessorInterface
\ContentViewInterface
actionAddMenuItem() : \HttpControllerResponse
This method inserts a menu item to the favorites table.
Throws |
|
---|
\HttpControllerResponse
'success' if deletion was successfully else 'error'
actionDefault() : \HttpControllerResponseInterface
Every controller child class requires at least the default action method, which is invoked when the ::_getQueryParameterData('do') value is not separated by a trailing slash.
Every action method have to return an instance which implements the http controller response interface.
\HttpControllerResponseInterface
actionRemoveMenuItem() : \HttpControllerResponse
This method deletes a menu item from the favorites table.
Throws |
|
---|
\HttpControllerResponse
'success' if deletion was successfully else 'error'
init()
proceed(\HttpContextInterface $httpContext)
The action method is determined by the http context reader instance and the current request context. Re-implement this method in child classes to enable XSS and CSRF protection on demand.
see | \HttpContextReaderInterface::getActionName \HttpResponseProcessorInterface::proceed |
---|---|
Throws |
|
validateCurrentAdminStatus()
Throws |
|
---|