| @@ 785-796 (lines=12) @@ | ||
| 782 | } |
|
| 783 | } |
|
| 784 | // Execute the move commands if any: |
|
| 785 | if (!empty($cmd_data)) { |
|
| 786 | $tce = $this->getNewTCE(); |
|
| 787 | $this->callHook('before_writeRecordsRecordsOrder', [ |
|
| 788 | 'tce' => &$tce, |
|
| 789 | 'data' => &$cmd_data |
|
| 790 | ]); |
|
| 791 | $tce->start([], $cmd_data); |
|
| 792 | $tce->process_cmdmap(); |
|
| 793 | $this->callHook('after_writeRecordsRecordsOrder', [ |
|
| 794 | 'tce' => &$tce |
|
| 795 | ]); |
|
| 796 | } |
|
| 797 | } |
|
| 798 | ||
| 799 | /** |
|
| @@ 1031-1043 (lines=13) @@ | ||
| 1028 | $this->error('Error: this records is NOT created it seems! (' . $table . ':' . $uid . ')'); |
|
| 1029 | } |
|
| 1030 | } |
|
| 1031 | if (!empty($updateData)) { |
|
| 1032 | $tce = $this->getNewTCE(); |
|
| 1033 | $tce->isImporting = true; |
|
| 1034 | $this->callHook('before_setRelation', [ |
|
| 1035 | 'tce' => &$tce, |
|
| 1036 | 'data' => &$updateData |
|
| 1037 | ]); |
|
| 1038 | $tce->start($updateData, []); |
|
| 1039 | $tce->process_datamap(); |
|
| 1040 | $this->callHook('after_setRelations', [ |
|
| 1041 | 'tce' => &$tce |
|
| 1042 | ]); |
|
| 1043 | } |
|
| 1044 | } |
|
| 1045 | ||
| 1046 | /** |
|
| @@ 653-664 (lines=12) @@ | ||
| 650 | } |
|
| 651 | } |
|
| 652 | // Execute the move commands if any: |
|
| 653 | if (!empty($cmd_data)) { |
|
| 654 | $tce = $this->getNewTCE(); |
|
| 655 | $this->callHook('before_writeRecordsPagesOrder', [ |
|
| 656 | 'tce' => &$tce, |
|
| 657 | 'data' => &$cmd_data |
|
| 658 | ]); |
|
| 659 | $tce->start([], $cmd_data); |
|
| 660 | $tce->process_cmdmap(); |
|
| 661 | $this->callHook('after_writeRecordsPagesOrder', [ |
|
| 662 | 'tce' => &$tce |
|
| 663 | ]); |
|
| 664 | } |
|
| 665 | } |
|
| 666 | ||
| 667 | /** |
|