model/modx/modmanagerrequest.class.php
- package
- modx
- Classes
- modManagerRequest
Description
modManagerRequest
\modManagerRequest
- Extends from
- \modRequest
- package
- modx
- Properties
- $action
- $actionVar
- $defaultAction
- $error
- Methods
- __construct
- handleRequest
- initialize
- loadActionMap
- loadErrorHandler
- prepareResponse
Description
Encapsulates the interaction of MODX manager with an HTTP request.
{@inheritdoc}
Properties
$action
string $action = 'null'
Details
- string
The action to load. - visibility
- public
- default
- null
- final
- false
- static
- false
- access
- public
$actionVar
string $actionVar = 'a'
Details
- string
The REQUEST parameter to load actions by. - visibility
- public
- default
- a
- final
- false
- static
- false
- access
- public
$defaultAction
mixed $defaultAction = '0'
Details
- mixed
The default action to load from. - visibility
- public
- default
- 0
- final
- false
- static
- false
- access
- public
$error
Methods
__construct
__construct(
$modx
)
:
Instantiates a modManagerRequest object.
{@inheritdoc}
Arguments
- $modx
Details
- visibility
- public
- final
- false
- static
- false
handleRequest
handleRequest(
)
:
boolean
The primary MODX manager request handler (a.k.a. controller).
Output
- boolean
- True if a request is handled without interruption.
Details
- visibility
- public
- final
- false
- static
- false
- access
- public
initialize
initialize(
)
:
boolean
Initializes the manager request.
Output
- boolean
- True if successful.
Details
- visibility
- public
- final
- false
- static
- false
- access
- public
loadActionMap
loadActionMap(
)
:
boolean
Loads the actionMap, and generates a cache file if necessary.
Output
- boolean
- True if successful.
Details
- visibility
- public
- final
- false
- static
- false
- access
- public
loadErrorHandler
loadErrorHandler(
string $class
=
modError
)
:
{@inheritdoc}
This implementation adds register logging capabilities via $_POST vars when the error handler is loaded.
Arguments
- $class
- string
The class to use as the error handler.
Details
- visibility
- public
- final
- false
- static
- false
prepareResponse
prepareResponse(
array $options
=
array
)
:
boolean
Prepares the MODX response to a mgr request that is being handled.
Arguments
- $options
- array
An array of options
Output
- boolean
- True if the response is properly prepared.
Details
- visibility
- public
- final
- false
- static
- false
- access
- public