public function run()
    {
        $this->extractInteractions();

        $this->data = $line = [];

        foreach ($this->interactions as $interaction) {
            foreach ($this->columns as $column => $config) {
                if (isset($config['callback'])
                    && method_exists($this, $config['callback']))
                {
                    $params = [];
                    if (isset($config['callbackParameters'])) {
                        $params = $config['callbackParameters'];
                    }
                    $functionCall = $config['callback'];
                    $callbackValue = call_user_func(array($this, $functionCall), $interaction, $params);
                    if (isset($config['valuesAsColumns'])) {
                        $line[$interaction['id']] = array_merge($line[$interaction['id']], $callbackValue);
                    } else {
                        $line[$interaction['id']][$column] = $callbackValue;
                    }
                }
            }
        }
        $this->data = $line;
        $this->columns = $this->interactions = [];
        return $this;
    }
public function run()
    {
        $this->extractInteractions();

        $this->data = $line = [];

        foreach ($this->interactions as $interaction) {
            foreach ($this->columns as $column => $config) {
                if (isset($config['callback'])
                    && method_exists($this, $config['callback']))
                {
                    $params = [];
                    if (isset($config['callbackParameters'])) {
                        $params = $config['callbackParameters'];
                    }
                    $functionCall = $config['callback'];
                    $callbackValue = call_user_func(array($this, $functionCall), $interaction, $params);
                    if (isset($config['valuesAsColumns'])) {
                        $line[$interaction['id']] = array_merge($line[$interaction['id']], $callbackValue);
                    } else {
                        $line[$interaction['id']][$column] = $callbackValue;
                    }
                }
            }
        }
        $this->data = $line;
        $this->columns = $this->interactions = [];
        return $this;
    }
public function run ( ) { $ this -> extractInteractions ( ) ; $ this -> data = $ line = [ ] ; foreach ( $ this -> interactions as $ interaction ) { foreach ( $ this -> columns as $ column => $ config ) { if ( isset ( $ config [ 'callback' ] ) && method_exists ( $ this , $ config [ 'callback' ] ) ) { $ params = [ ] ; if ( isset ( $ config [ 'callbackParameters' ] ) ) { $ params = $ config [ 'callbackParameters' ] ; } $ functionCall = $ config [ 'callback' ] ; $ callbackValue = call_user_func ( array ( $ this , $ functionCall ) , $ interaction , $ params ) ; if ( isset ( $ config [ 'valuesAsColumns' ] ) ) { $ line [ $ interaction [ 'id' ] ] = array_merge ( $ line [ $ interaction [ 'id' ] ] , $ callbackValue ) ; } else { $ line [ $ interaction [ 'id' ] ] [ $ column ] = $ callbackValue ; } } } } $ this -> data = $ line ; $ this -> columns = $ this -> interactions = [ ] ; return $ this ; }
Launch interactions extraction
Transform interactions array to output data
Use callback & valuesAsColumns

@return $this
Launch interactions extraction Transform interactions array to output data Use callback & valuesAsColumns