We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f646af commit 91be9bbCopy full SHA for 91be9bb
src/AbraFlexi/RO.php
@@ -652,6 +652,24 @@ public function setDataValue(string $columnName, $value) {
652
}
653
return $result;
654
655
+
656
+ /**
657
+ * Strip all non-identifier data
658
+ */
659
+ public function stripBody() {
660
+ $id = $this->getRecordID();
661
+ $code = $this->getRecordCode();
662
+ $extIds = $this->getExternalIDs();
663
+ $this->dataReset();
664
+ $this->setMyKey($id);
665
+ $columns = $this->getColumnsInfo();
666
+ if (array_key_exists('kod', $columns)) {
667
+ $this->setDataValue('kod', $code);
668
+ }
669
+ if (!empty($extIds)) {
670
+ $this->setDataValue('external-ids', $columns);
671
672
673
674
/**
675
* PHP Date object to AbraFlexi date format
0 commit comments