Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

'Delete:' The array is a listing of integer RECIDs for all the records that will be deleted from the table. It is an a nested array of arrays , the inner level being key/value pairs corresponding to column names and database values for the records that will be deleted.

An example of a nested array is as follows:

Code Block
languagephp
linenumberstrue
// $data's contents:
[
    1234 => [
        'RECID' => 1234,
        'COLUMN_2' => 'Foo',
        'COLUMN_3' => 'Bar',
        // ...
    ],
    5678 => [
        'RECID' => 5678,
        'COLUMN_2' => 'Foo Too',
        'COLUMN_3' => 'Bar None',
        // ...
    ],
]


In this example, the "RECID" index in the $data array is used to determine if this Save is adding a new record.

...