@@ 54-63 (lines=10) @@ | ||
51 | $this->ids['objectIds'][$type] = \Migrations\Id::getList(['where' => ['type', $type], 'key' => 'object_id']); |
|
52 | } |
|
53 | ||
54 | public function findObject($parseId, $type) { |
|
55 | if (empty($this->ids['parseIds'][$type])) { |
|
56 | $this->loadParseIds($type); |
|
57 | ksort($this->ids['parseIds'][$type]); |
|
58 | } |
|
59 | if (!empty($this->ids['parseIds'][$type][$parseId])) { |
|
60 | $this->ids['parseIds'][$type][$parseId]->last_access = Date('Y-m-d H:i:s'); |
|
61 | return $this->ids['parseIds'][$type][$parseId]; |
|
62 | } |
|
63 | } |
|
64 | ||
65 | public function findParse($objectId, $type) { |
|
66 | if (empty($this->ids['objectIds'][$type])) { |
|
@@ 65-74 (lines=10) @@ | ||
62 | } |
|
63 | } |
|
64 | ||
65 | public function findParse($objectId, $type) { |
|
66 | if (empty($this->ids['objectIds'][$type])) { |
|
67 | $this->loadObjectIds($type); |
|
68 | ksort($this->ids['objectIds'][$type]); |
|
69 | } |
|
70 | if (!empty($this->ids['objectIds'][$type][$objectId])) { |
|
71 | $this->ids['objectIds'][$type][$objectId]->last_access = Date('Y-m-d H:i:s'); |
|
72 | return $this->ids['objectIds'][$type][$objectId]; |
|
73 | } |
|
74 | } |
|
75 | ||
76 | public function getMigrationObject($objectId) { |
|
77 | if (empty($this->migrationObjects)) { |