public function run(&$params, $pObj)
    {
        if (isset($params['options']) && isset($params['options']['fields'])) {
            $fields = is_array($params['options']['fields']) ?
                $params['options']['fields'] : [$params['options']['fields']];
            $glue = isset($params['options']['glue']) ?
                $params['options']['glue'] : ' ';
            $record = BackendUtility::getRecord($params['table'], $params['row']['uid']);

            $l = [];

            foreach ($fields as $f) {
                if (array_key_exists($f, $record)) {
                    $l[] = $record[$f];
                }
            }

            $params['title'] = implode($glue, $l);
        }
    }
public function run(&$params, $pObj)
    {
        if (isset($params['options']) && isset($params['options']['fields'])) {
            $fields = is_array($params['options']['fields']) ?
                $params['options']['fields'] : [$params['options']['fields']];
            $glue = isset($params['options']['glue']) ?
                $params['options']['glue'] : ' ';
            $record = BackendUtility::getRecord($params['table'], $params['row']['uid']);

            $l = [];

            foreach ($fields as $f) {
                if (array_key_exists($f, $record)) {
                    $l[] = $record[$f];
                }
            }

            $params['title'] = implode($glue, $l);
        }
    }
public function run ( & $ params , $ pObj ) { if ( isset ( $ params [ 'options' ] ) && isset ( $ params [ 'options' ] [ 'fields' ] ) ) { $ fields = is_array ( $ params [ 'options' ] [ 'fields' ] ) ? $ params [ 'options' ] [ 'fields' ] : [ $ params [ 'options' ] [ 'fields' ] ] ; $ glue = isset ( $ params [ 'options' ] [ 'glue' ] ) ? $ params [ 'options' ] [ 'glue' ] : ' ' ; $ record = BackendUtility :: getRecord ( $ params [ 'table' ] , $ params [ 'row' ] [ 'uid' ] ) ; $ l = [ ] ; foreach ( $ fields as $ f ) { if ( array_key_exists ( $ f , $ record ) ) { $ l [ ] = $ record [ $ f ] ; } } $ params [ 'title' ] = implode ( $ glue , $ l ) ; } }
Run the user function.

@param  array  &$params  Contains 'table', 'row' and options
@param  null  $pObj  Is null, but documented
@return  void
Run the user function .