Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

alter_data()

Description

Utility function to randomly scramble data array for exporting

Parameters

ColumnTypeDefaultDescription
&$row
$key
$scramblecolumns boolean array - Optional array of columns to scramble
$row array - Array of data passed by reference

Return

void

Location

include/migration_functions.php lines 464 to 471

Definition

 
function alter_data(&$row,$key,$scramblecolumns=array())
    {
    global 
$datetime_fields;
    foreach(
$scramblecolumns as $scramblecolumn=>$scrambletype)
        {
        
$row[$scramblecolumn] = call_user_func($scrambletype $row[$scramblecolumn]);
        }
    }

This article was last updated 28th November 2020 22:05 Europe/London time based on the source file dated 26th November 2020 16:30 Europe/London time.