public function addMessage($m, $type = 'info')
    {
        if (!Any::isStr($m) || !Any::isStr($type)) {
            return;
        }

        $m = App::$Security->secureHtml($m);
        try {
            $mCollector = $this->bar->getCollector('messages');

            if (method_exists($mCollector, $type)) {
                $this->bar->getCollector('messages')->{$type}($m);
            }
        } catch (\Exception $e) {
        } // mute exceptions there
    }
public function addMessage($m, $type = 'info')
    {
        if (!Any::isStr($m) || !Any::isStr($type)) {
            return;
        }

        $m = App::$Security->secureHtml($m);
        try {
            $mCollector = $this->bar->getCollector('messages');

            if (method_exists($mCollector, $type)) {
                $this->bar->getCollector('messages')->{$type}($m);
            }
        } catch (\Exception $e) {
        } // mute exceptions there
    }
public function addMessage ( $ m , $ type = 'info' ) { if ( ! Any :: isStr ( $ m ) || ! Any :: isStr ( $ type ) ) { return ; } $ m = App :: $ Security -> secureHtml ( $ m ) ; try { $ mCollector = $ this -> bar -> getCollector ( 'messages' ) ; if ( method_exists ( $ mCollector , $ type ) ) { $ this -> bar -> getCollector ( 'messages' ) -> { $ type } ( $ m ) ; } } catch ( \ Exception $ e ) { } // mute exceptions there }
Add message into debug bar
@param string $m
@param string $type
Add message into debug bar