public function convertTrace($trace, $addObject = false)
    {
        $result = array();
        if (is_array($trace)) {
            foreach ($trace as $key => $info) {
                $oneTrace = self::i()->_getOneTrace($info, $addObject);

                $file = 'undefined';
                if (isset($oneTrace['file'])) {
                    $file = $oneTrace['file'];
                }

                $result['#' . ($key - 1) . ' ' . $oneTrace['func']] = $file;
            }
        }

        return $result;
    }
public function convertTrace($trace, $addObject = false)
    {
        $result = array();
        if (is_array($trace)) {
            foreach ($trace as $key => $info) {
                $oneTrace = self::i()->_getOneTrace($info, $addObject);

                $file = 'undefined';
                if (isset($oneTrace['file'])) {
                    $file = $oneTrace['file'];
                }

                $result['#' . ($key - 1) . ' ' . $oneTrace['func']] = $file;
            }
        }

        return $result;
    }
public function convertTrace ( $ trace , $ addObject = false ) { $ result = array ( ) ; if ( is_array ( $ trace ) ) { foreach ( $ trace as $ key => $ info ) { $ oneTrace = self :: i ( ) -> _getOneTrace ( $ info , $ addObject ) ; $ file = 'undefined' ; if ( isset ( $ oneTrace [ 'file' ] ) ) { $ file = $ oneTrace [ 'file' ] ; } $ result [ '#' . ( $ key - 1 ) . ' ' . $ oneTrace [ 'func' ] ] = $ file ; } } return $ result ; }
Convert trace information to readable
@param array $trace Standard debug backtrace data
@param bool  $addObject
@return array
Convert trace information to readable