src/Analyse/Callback/Analyse/Objects/DebugMethods.php
public function callMe()
    {
        /** @var \Brainworxx\Krexx\Service\Reflection\ReflectionClass $reflectionClass */
        $reflectionClass = $this->parameters[static::PARAM_REF];
        $data = $reflectionClass->getData();
        $output = $this->dispatchStartEvent();

        foreach (explode(',', $this->pool->config->getSetting(Fallback::SETTING_DEBUG_METHODS)) as $funcName) {
            if ($this->checkIfAccessible($data, $funcName, $reflectionClass) === true) {
                // Add a try to prevent the hosting CMS from doing something stupid.
                try {
                    // We need to deactivate the current error handling to
                    // prevent the host system to do anything stupid.
                    set_error_handler(
                        function () {
                            // Do nothing.
                        }
                    );
                    $result = $data->$funcName();
                } catch (\Throwable $e) {
                    //Restore the previous error handler, and return an empty string.
                    restore_error_handler();
                    continue;
                } catch (\Exception $e) {
                    // Restore the old error handler and move to the next method.
                    restore_error_handler();
                    continue;
                }

                // Reactivate whatever error handling we had previously.
                restore_error_handler();

                // We ignore NULL values, as well as the exceptions from above.
                if (isset($result) === true) {
                    $output .= $this->pool->render->renderExpandableChild(
                        $this->dispatchEventWithModel(
                            $funcName,
                            $this->pool->createClass('Brainworxx\\Krexx\\Analyse\\Model')
                                ->setName($funcName)
                                ->setType(static::TYPE_DEBUG_METHOD)
                                ->setNormal(static::UNKNOWN_VALUE)
                                ->setHelpid($funcName)
                                ->setConnectorType(Connectors::METHOD)
                                ->addParameter(static::PARAM_DATA, $result)
                                ->injectCallback(
                                    $this->pool->createClass('Brainworxx\\Krexx\\Analyse\\Callback\\Analyse\\Debug')
                                )
                        )
                    );
                    unset($result);
                }
            }
        }

        return $output;
    }
public function callMe()
    {
        /** @var \Brainworxx\Krexx\Service\Reflection\ReflectionClass $reflectionClass */
        $reflectionClass = $this->parameters[static::PARAM_REF];
        $data = $reflectionClass->getData();
        $output = $this->dispatchStartEvent();

        foreach (explode(',', $this->pool->config->getSetting(Fallback::SETTING_DEBUG_METHODS)) as $funcName) {
            if ($this->checkIfAccessible($data, $funcName, $reflectionClass) === true) {
                // Add a try to prevent the hosting CMS from doing something stupid.
                try {
                    // We need to deactivate the current error handling to
                    // prevent the host system to do anything stupid.
                    set_error_handler(
                        function () {
                            // Do nothing.
                        }
                    );
                    $result = $data->$funcName();
                } catch (\Throwable $e) {
                    //Restore the previous error handler, and return an empty string.
                    restore_error_handler();
                    continue;
                } catch (\Exception $e) {
                    // Restore the old error handler and move to the next method.
                    restore_error_handler();
                    continue;
                }

                // Reactivate whatever error handling we had previously.
                restore_error_handler();

                // We ignore NULL values, as well as the exceptions from above.
                if (isset($result) === true) {
                    $output .= $this->pool->render->renderExpandableChild(
                        $this->dispatchEventWithModel(
                            $funcName,
                            $this->pool->createClass('Brainworxx\\Krexx\\Analyse\\Model')
                                ->setName($funcName)
                                ->setType(static::TYPE_DEBUG_METHOD)
                                ->setNormal(static::UNKNOWN_VALUE)
                                ->setHelpid($funcName)
                                ->setConnectorType(Connectors::METHOD)
                                ->addParameter(static::PARAM_DATA, $result)
                                ->injectCallback(
                                    $this->pool->createClass('Brainworxx\\Krexx\\Analyse\\Callback\\Analyse\\Debug')
                                )
                        )
                    );
                    unset($result);
                }
            }
        }

        return $output;
    }
public function callMe ( ) { /** @var \Brainworxx\Krexx\Service\Reflection\ReflectionClass $reflectionClass */ $ reflectionClass = $ this -> parameters [ static :: PARAM_REF ] ; $ data = $ reflectionClass -> getData ( ) ; $ output = $ this -> dispatchStartEvent ( ) ; foreach ( explode ( ',' , $ this -> pool -> config -> getSetting ( Fallback :: SETTING_DEBUG_METHODS ) ) as $ funcName ) { if ( $ this -> checkIfAccessible ( $ data , $ funcName , $ reflectionClass ) === true ) { // Add a try to prevent the hosting CMS from doing something stupid. try { // We need to deactivate the current error handling to // prevent the host system to do anything stupid. set_error_handler ( function ( ) { // Do nothing. } ) ; $ result = $ data -> $ funcName ( ) ; } catch ( \ Throwable $ e ) { //Restore the previous error handler, and return an empty string. restore_error_handler ( ) ; continue ; } catch ( \ Exception $ e ) { // Restore the old error handler and move to the next method. restore_error_handler ( ) ; continue ; } // Reactivate whatever error handling we had previously. restore_error_handler ( ) ; // We ignore NULL values, as well as the exceptions from above. if ( isset ( $ result ) === true ) { $ output .= $ this -> pool -> render -> renderExpandableChild ( $ this -> dispatchEventWithModel ( $ funcName , $ this -> pool -> createClass ( 'Brainworxx\\Krexx\\Analyse\\Model' ) -> setName ( $ funcName ) -> setType ( static :: TYPE_DEBUG_METHOD ) -> setNormal ( static :: UNKNOWN_VALUE ) -> setHelpid ( $ funcName ) -> setConnectorType ( Connectors :: METHOD ) -> addParameter ( static :: PARAM_DATA , $ result ) -> injectCallback ( $ this -> pool -> createClass ( 'Brainworxx\\Krexx\\Analyse\\Callback\\Analyse\\Debug' ) ) ) ) ; unset ( $ result ) ; } } } return $ output ; }
Calls all configured debug methods in die class.

I've added a try and an empty error function callback
to catch possible problems with this. This will,
of cause, not stop a possible fatal in the function
itself.

@return string
The generated markup.
Calls all configured debug methods in die class .