+ /*********************************************
+ *
+ * HOOKS
+ *
+ *********************************************/
+
+ /**
+ * Hook: processDatamap_afterDatabaseOperations
+ * (calls $hookObj->processDatamap_afterDatabaseOperations($status, $table, $id, $fieldArray, $this);)
+ *
+ * Note: When using the hook after INSERT operations, you will only get the temporary NEW... id passed to your hook as $id,
+ * but you can easily translate it to the real uid of the inserted record using the $this->substNEWwithIDs array.
+ *
+ * @param object $hookObjectsArr: (reference) Array with hook objects
+ * @param string $status: (reference) Status of the current operation, 'new' or 'update
+ * @param string $table: (refrence) The table currently processing data for
+ * @param string $id: (reference) The record uid currently processing data for, [integer] or [string] (like 'NEW...')
+ * @param array $fieldArray: (reference) The field array of a record
+ * @return void
+ */
+ function hook_processDatamap_afterDatabaseOperations(&$hookObjectsArr, &$status, &$table, &$id, &$fieldArray) {
+ // Process hook directly:
+ if (!isset($this->remapStackRecords[$table][$id])) {
+ foreach($hookObjectsArr as $hookObj) {
+ if (method_exists($hookObj, 'processDatamap_afterDatabaseOperations')) {
+ $hookObj->processDatamap_afterDatabaseOperations($status, $table, $id, $fieldArray, $this);
+ }
+ }
+ // If this record is in remapStack (e.g. when using IRRE), values will be updated/remapped later on. So the hook will also be called later:
+ } else {
+ $this->remapStackRecords[$table][$id]['processDatamap_afterDatabaseOperations'] = array(
+ 'status' => $status,
+ 'fieldArray' => $fieldArray,
+ 'hookObjectsArr' => $hookObjectsArr,
+ );
+ }
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+