model/modx/modmanagerrequest.class.php

Includes Classes 
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

$actionThe action to load.

string $action = 'null'

Details

string
The action to load.
visibility
public
default
null
final
false
static
false
access
public

$actionVarThe REQUEST parameter to load actions by.

string $actionVar = 'a'

Details

string
The REQUEST parameter to load actions by.
visibility
public
default
a
final
false
static
false
access
public

$defaultActionThe default action to load from.

mixed $defaultAction = '0'

Details

mixed
The default action to load from.
visibility
public
default
0
final
false
static
false
access
public

$errorThe error handler for the request.

\modError $error = 'null'

Details

\modError
The error handler for the request.
visibility
public
default
null
final
false
static
false
access
public
deprecated
2.0.0 Use $modx->error instead.

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
Documentation was generated by DocBlox 0.11.2.