| @@ 719-729 (lines=11) @@ | ||
| 716 | */ |
|
| 717 | public function copyOriginalManyManyItems($copyFrom, $newObject, $manyManyMethod, $extraFields = array()) |
|
| 718 | { |
|
| 719 | if ($this->recordSession) { |
|
| 720 | self::add_to_session( |
|
| 721 | " |
|
| 722 | ==================================== |
|
| 723 | COPY Original Many Many Items |
|
| 724 | MANY-MANY METHOD: '$manyManyMethod' |
|
| 725 | EXTRAFIELDS: '".implode(", ", $extraFields)."' |
|
| 726 | ==================================== |
|
| 727 | ", |
|
| 728 | $copyFrom, |
|
| 729 | $newObject |
|
| 730 | ); |
|
| 731 | } |
|
| 732 | //remove current ones on NewObject |
|
| @@ 775-787 (lines=13) @@ | ||
| 772 | */ |
|
| 773 | public function attachToMoreRelevantManyMany($copyFrom, $newObject, $manyManyMethod, $dataListToChooseFrom, $extraFields = array()) |
|
| 774 | { |
|
| 775 | if ($this->recordSession) { |
|
| 776 | self::add_to_session( |
|
| 777 | " |
|
| 778 | ==================================== |
|
| 779 | ATTACH TO MORE RELEVANT MANY-MANY |
|
| 780 | MANY-MANY METHOD: $manyManyMethod |
|
| 781 | OBJECTS TO CHOOSE FROM: ".$dataListToChooseFrom->count()." |
|
| 782 | EXTRA-FIELDS: '".implode(", ", $extraFields)."' |
|
| 783 | ==================================== |
|
| 784 | ", |
|
| 785 | $copyFrom, |
|
| 786 | $newObject |
|
| 787 | ); |
|
| 788 | } |
|
| 789 | //remove current ones on NewObject |
|
| 790 | if ($this->isForReal) { |
|