| @@ 491-505 (lines=15) @@ | ||
| 488 | * @param int $deleted Whether record is deleted-flagged or not |
|
| 489 | * @param array $items Data array with database relations (table/id) |
|
| 490 | */ |
|
| 491 | public function createEntryData_dbRels($table, $uid, $fieldName, $flexPointer, $deleted, $items) |
|
| 492 | { |
|
| 493 | $uid = $uid ? (int)$uid : 0; |
|
| 494 | if (!$uid) { |
|
| 495 | return; |
|
| 496 | } |
|
| 497 | $this->createEntryDataForDatabaseRelationsUsingRecord( |
|
| 498 | (string)$table, |
|
| 499 | $this->getRecordRawCached($table, $uid), |
|
| 500 | (string)$fieldName, |
|
| 501 | (string)$flexPointer, |
|
| 502 | $deleted ? (int)$deleted : 0, |
|
| 503 | (array)$items |
|
| 504 | ); |
|
| 505 | } |
|
| 506 | ||
| 507 | /** |
|
| 508 | * Add database references to ->relations array based on fetched record |
|
| @@ 534-548 (lines=15) @@ | ||
| 531 | * @param int $deleted Whether record is deleted-flagged or not |
|
| 532 | * @param array $items Data array with file relations |
|
| 533 | */ |
|
| 534 | public function createEntryData_fileRels($table, $uid, $fieldName, $flexPointer, $deleted, $items) |
|
| 535 | { |
|
| 536 | $uid = $uid ? (int)$uid : 0; |
|
| 537 | if (!$uid) { |
|
| 538 | return; |
|
| 539 | } |
|
| 540 | $this->createEntryDataForFileRelationsUsingRecord( |
|
| 541 | (string)$table, |
|
| 542 | $this->getRecordRawCached($table, $uid), |
|
| 543 | (string)$fieldName, |
|
| 544 | (string)$flexPointer, |
|
| 545 | $deleted ? (int)$deleted : 0, |
|
| 546 | (array)$items |
|
| 547 | ); |
|
| 548 | } |
|
| 549 | ||
| 550 | /** |
|
| 551 | * Add file references to ->relations array based on fetched record |
|
| @@ 591-605 (lines=15) @@ | ||
| 588 | * @param int $deleted |
|
| 589 | * @param array $keys Data array with soft reference keys |
|
| 590 | */ |
|
| 591 | public function createEntryData_softreferences($table, $uid, $fieldName, $flexPointer, $deleted, $keys) |
|
| 592 | { |
|
| 593 | $uid = $uid ? (int)$uid : 0; |
|
| 594 | if (!$uid || !is_array($keys)) { |
|
| 595 | return; |
|
| 596 | } |
|
| 597 | $this->createEntryDataForSoftReferencesUsingRecord( |
|
| 598 | (string)$table, |
|
| 599 | $this->getRecordRawCached($table, $uid), |
|
| 600 | (string)$fieldName, |
|
| 601 | (string)$flexPointer, |
|
| 602 | $deleted ? (int)$deleted : 0, |
|
| 603 | (array)$keys |
|
| 604 | ); |
|
| 605 | } |
|
| 606 | ||
| 607 | /** |
|
| 608 | * Add SoftReference references to ->relations array based on fetched record |
|