This is the main implementation of the distributor. It handles routing requests into the MVC system. See mvcDistributorBase for further details of the dispatch process.
mvcDistributor supports several states that can be set before execution. These states are for handling events such as database offline, or a site being marked in-active. States are set via global constants. The current supported states are:
SYSTEM_OFFLINE can be defined by checking for the presence of an offline file in the web root (for example). Databases can be checked by implementing a DB ping or some other DB property.
$oRequest = mvcRequest::getInstance(); $oDistributor = new mvcDistributor($oRequest); $oDistributor->initialise(); $oDistributor->dispatch();