protected function outputFormatTableEvent(array $events)
    {
        $header = array(
            $this->text('Text'),
            $this->text('Type'),
            $this->text('Severity'),
            $this->text('Created')
        );

        $rows = array();

        foreach ($events as $item) {
            $text = empty($item['translatable']) ? $item['text'] : $this->text($item['text']);
            $rows[] = array(
                $this->truncate($text, 50),
                $this->text($item['type']),
                $this->text($item['severity']),
                $this->date($item['created']),
            );
        }

        $this->outputFormatTable($rows, $header);
    }
protected function outputFormatTableEvent(array $events)
    {
        $header = array(
            $this->text('Text'),
            $this->text('Type'),
            $this->text('Severity'),
            $this->text('Created')
        );

        $rows = array();

        foreach ($events as $item) {
            $text = empty($item['translatable']) ? $item['text'] : $this->text($item['text']);
            $rows[] = array(
                $this->truncate($text, 50),
                $this->text($item['type']),
                $this->text($item['severity']),
                $this->date($item['created']),
            );
        }

        $this->outputFormatTable($rows, $header);
    }
protected function outputFormatTableEvent ( array $ events ) { $ header = array ( $ this -> text ( 'Text' ) , $ this -> text ( 'Type' ) , $ this -> text ( 'Severity' ) , $ this -> text ( 'Created' ) ) ; $ rows = array ( ) ; foreach ( $ events as $ item ) { $ text = empty ( $ item [ 'translatable' ] ) ? $ item [ 'text' ] : $ this -> text ( $ item [ 'text' ] ) ; $ rows [ ] = array ( $ this -> truncate ( $ text , 50 ) , $ this -> text ( $ item [ 'type' ] ) , $ this -> text ( $ item [ 'severity' ] ) , $ this -> date ( $ item [ 'created' ] ) , ) ; } $ this -> outputFormatTable ( $ rows , $ header ) ; }
Output events in a table
@param array $events
Output events in a table