public function processDatamap_postProcessFieldArray($status, $table, $id, &$fields, $dh)
    {
        if ($table === $this->table) {
            if ($status === 'new') {
                $res = $this->creating($fields);

                if (is_array($res)) {
                    $fields = $res;
                }
            } else {
                $res = $this->updating($id, $fields);

                if (is_array($res)) {
                    $fields = $res;
                }
            }

            $res = $this->saving($status === 'new' ? null : $uid, $fields);

            if (is_array($res)) {
                $fields = $res;
            }
        }
    }
public function processDatamap_postProcessFieldArray($status, $table, $id, &$fields, $dh)
    {
        if ($table === $this->table) {
            if ($status === 'new') {
                $res = $this->creating($fields);

                if (is_array($res)) {
                    $fields = $res;
                }
            } else {
                $res = $this->updating($id, $fields);

                if (is_array($res)) {
                    $fields = $res;
                }
            }

            $res = $this->saving($status === 'new' ? null : $uid, $fields);

            if (is_array($res)) {
                $fields = $res;
            }
        }
    }
public function processDatamap_postProcessFieldArray ( $ status , $ table , $ id , & $ fields , $ dh ) { if ( $ table === $ this -> table ) { if ( $ status === 'new' ) { $ res = $ this -> creating ( $ fields ) ; if ( is_array ( $ res ) ) { $ fields = $ res ; } } else { $ res = $ this -> updating ( $ id , $ fields ) ; if ( is_array ( $ res ) ) { $ fields = $ res ; } } $ res = $ this -> saving ( $ status === 'new' ? null : $ uid , $ fields ) ; if ( is_array ( $ res ) ) { $ fields = $ res ; } } }
TYPO3 pre-save hook.

@param  string  $status  'new' for new entities, 'update' for existing entities
@param  string  $table  Database table name being saved
@param  string|int  $id  UID or New ID of entity being saved
@param  array  $fields  Array of fields being updated
@param  \TYPO3\CMS\Core\DataHandling\DataHandler  $dh  Class that triggered hook
@return  void
TYPO3 pre - save hook .