src/Debugger/Bar/TracePanel.php
public function addFilterCallback($callback, $flags = null)
    {
        $flags = (int) $flags;

        if ($flags & self::FILTER_REPLACE_ENTRY) {
            $this->filterEntryCallbacks = [];
        }

        if ($flags & self::FILTER_REPLACE_EXIT) {
            $this->filterExitCallbacks = [];
        }

        // Called when entry records came
        if (($flags & self::FILTER_ENTRY) || !($flags & self::FILTER_EXIT)) {
            if ($flags & self::FILTER_APPEND_ENTRY) {
                $this->filterEntryCallbacks[] = $callback;

            } else {
                \array_unshift($this->filterEntryCallbacks, $callback);
            }
        }

        // Called when exit records came
        if ($flags & self::FILTER_EXIT) {
            if ($flags & self::FILTER_APPEND_EXIT) {
                $this->filterExitCallbacks[] = $callback;

            } else {
                \array_unshift($this->filterExitCallbacks, $callback);
            }
        }
    }
public function addFilterCallback($callback, $flags = null)
    {
        $flags = (int) $flags;

        if ($flags & self::FILTER_REPLACE_ENTRY) {
            $this->filterEntryCallbacks = [];
        }

        if ($flags & self::FILTER_REPLACE_EXIT) {
            $this->filterExitCallbacks = [];
        }

        // Called when entry records came
        if (($flags & self::FILTER_ENTRY) || !($flags & self::FILTER_EXIT)) {
            if ($flags & self::FILTER_APPEND_ENTRY) {
                $this->filterEntryCallbacks[] = $callback;

            } else {
                \array_unshift($this->filterEntryCallbacks, $callback);
            }
        }

        // Called when exit records came
        if ($flags & self::FILTER_EXIT) {
            if ($flags & self::FILTER_APPEND_EXIT) {
                $this->filterExitCallbacks[] = $callback;

            } else {
                \array_unshift($this->filterExitCallbacks, $callback);
            }
        }
    }
public function addFilterCallback ( $ callback , $ flags = null ) { $ flags = ( int ) $ flags ; if ( $ flags & self :: FILTER_REPLACE_ENTRY ) { $ this -> filterEntryCallbacks = [ ] ; } if ( $ flags & self :: FILTER_REPLACE_EXIT ) { $ this -> filterExitCallbacks = [ ] ; } // Called when entry records came if ( ( $ flags & self :: FILTER_ENTRY ) || ! ( $ flags & self :: FILTER_EXIT ) ) { if ( $ flags & self :: FILTER_APPEND_ENTRY ) { $ this -> filterEntryCallbacks [ ] = $ callback ; } else { \ array_unshift ( $ this -> filterEntryCallbacks , $ callback ) ; } } // Called when exit records came if ( $ flags & self :: FILTER_EXIT ) { if ( $ flags & self :: FILTER_APPEND_EXIT ) { $ this -> filterExitCallbacks [ ] = $ callback ; } else { \ array_unshift ( $ this -> filterExitCallbacks , $ callback ) ; } } }
Register own filter callback.

@param  callback (\stdClass $record, bool $isEntry, XDebugPanel $this)
@param  int $flags bitmask of self::FILTER_*
Register own filter callback .