/** * Test the loadErrorHandler method */ public function testLoadErrorHandler() { $this->request->loadErrorHandler(); $this->assertInstanceOf('modError', $this->modx->error, 'modRequest.loadErrorHandler did not load a modError-derivative class!'); }
/** * This implementation adds register logging capabilities via $_POST vars * when the error handler is loaded. * * @param string $class */ public function loadErrorHandler($class = 'modError') { parent::loadErrorHandler($class); $data = array_merge($_POST, array('register_class' => 'registry.modFileRegister')); $this->registerLogging($data); }
/** * {@inheritdoc} * * This implementation adds register logging capabilities via $_POST vars * when the error handler is loaded. */ public function loadErrorHandler($class = 'modError') { parent :: loadErrorHandler($class); $this->registerLogging($_POST); }