public function event()
    {
        $options = array(
            'limit' => array(0, $this->config->get('dashboard_limit', 10))
        );

        $events = (array) $this->report->getList($options);

        foreach ($events as &$event) {
            $variables = empty($event['data']['variables']) ? array() : (array) $event['data']['variables'];
            $message = empty($event['translatable']) ? $event['text'] : $this->translation->text($event['text'], $variables);
            $event['message'] = strip_tags($message);
        }

        return $events;
    }
public function event()
    {
        $options = array(
            'limit' => array(0, $this->config->get('dashboard_limit', 10))
        );

        $events = (array) $this->report->getList($options);

        foreach ($events as &$event) {
            $variables = empty($event['data']['variables']) ? array() : (array) $event['data']['variables'];
            $message = empty($event['translatable']) ? $event['text'] : $this->translation->text($event['text'], $variables);
            $event['message'] = strip_tags($message);
        }

        return $events;
    }
public function event ( ) { $ options = array ( 'limit' => array ( 0 , $ this -> config -> get ( 'dashboard_limit' , 10 ) ) ) ; $ events = ( array ) $ this -> report -> getList ( $ options ) ; foreach ( $ events as & $ event ) { $ variables = empty ( $ event [ 'data' ] [ 'variables' ] ) ? array ( ) : ( array ) $ event [ 'data' ] [ 'variables' ] ; $ message = empty ( $ event [ 'translatable' ] ) ? $ event [ 'text' ] : $ this -> translation -> text ( $ event [ 'text' ] , $ variables ) ; $ event [ 'message' ] = strip_tags ( $ message ) ; } return $ events ; }
Returns an array of recent events
@return array
Returns an array of recent events