protected function prepareListReportEvent(array &$list)
    {
        foreach ($list as &$item) {

            $variables = array();

            if (!empty($item['data']['variables'])) {
                $variables = $item['data']['variables'];
            }

            $item['created'] = $this->date($item['created']);

            $type = "event_{$item['type']}";
            $item['type'] = $this->text($type);

            if (!empty($item['translatable'])) {
                $item['text'] = $this->text($item['text'], $variables);
            }

            $item['summary'] = $this->truncate($item['text']);
            $item['severity_text'] = $this->text($item['severity']);
        }
    }
protected function prepareListReportEvent(array &$list)
    {
        foreach ($list as &$item) {

            $variables = array();

            if (!empty($item['data']['variables'])) {
                $variables = $item['data']['variables'];
            }

            $item['created'] = $this->date($item['created']);

            $type = "event_{$item['type']}";
            $item['type'] = $this->text($type);

            if (!empty($item['translatable'])) {
                $item['text'] = $this->text($item['text'], $variables);
            }

            $item['summary'] = $this->truncate($item['text']);
            $item['severity_text'] = $this->text($item['severity']);
        }
    }
protected function prepareListReportEvent ( array & $ list ) { foreach ( $ list as & $ item ) { $ variables = array ( ) ; if ( ! empty ( $ item [ 'data' ] [ 'variables' ] ) ) { $ variables = $ item [ 'data' ] [ 'variables' ] ; } $ item [ 'created' ] = $ this -> date ( $ item [ 'created' ] ) ; $ type = "event_{$item['type']}" ; $ item [ 'type' ] = $ this -> text ( $ type ) ; if ( ! empty ( $ item [ 'translatable' ] ) ) { $ item [ 'text' ] = $ this -> text ( $ item [ 'text' ] , $ variables ) ; } $ item [ 'summary' ] = $ this -> truncate ( $ item [ 'text' ] ) ; $ item [ 'severity_text' ] = $ this -> text ( $ item [ 'severity' ] ) ; } }
Prepare an array of system events
@param array $list
Prepare an array of system events