|
@@ 60-70 (lines=11) @@
|
| 57 |
|
$this->ids['objectIds'][$type] = \Migrations\Id::getList(['where' => ['type', $type], 'key' => 'object_id', 'array' => true]); |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
public function findObject($parseId, $type) { |
| 61 |
|
if (empty($this->ids['parseIds'][$type])) { |
| 62 |
|
$this->loadParseIds($type); |
| 63 |
|
ksort($this->ids['parseIds'][$type]); |
| 64 |
|
} |
| 65 |
|
if (!empty($this->ids['parseIds'][$type][$parseId])) { |
| 66 |
|
$this->usedIds['parseIds'][$type][$parseId] = new \Migrations\Id($this->ids['parseIds'][$type][$parseId]); |
| 67 |
|
$this->usedIds['parseIds'][$type][$parseId]->last_access = Date('Y-m-d H:i:s'); |
| 68 |
|
return $this->usedIds['parseIds'][$type][$parseId]; |
| 69 |
|
} |
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
public function findParse($objectId, $type) { |
| 73 |
|
if (empty($this->ids['objectIds'][$type])) { |
|
@@ 72-82 (lines=11) @@
|
| 69 |
|
} |
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
public function findParse($objectId, $type) { |
| 73 |
|
if (empty($this->ids['objectIds'][$type])) { |
| 74 |
|
$this->loadObjectIds($type); |
| 75 |
|
ksort($this->ids['objectIds'][$type]); |
| 76 |
|
} |
| 77 |
|
if (!empty($this->ids['objectIds'][$type][$objectId])) { |
| 78 |
|
$this->usedIds['objectIds'][$type][$objectId] = new \Migrations\Id($this->ids['objectIds'][$type][$objectId]); |
| 79 |
|
$this->usedIds['objectIds'][$type][$objectId]->last_access = Date('Y-m-d H:i:s'); |
| 80 |
|
return $this->usedIds['objectIds'][$type][$objectId]; |
| 81 |
|
} |
| 82 |
|
} |
| 83 |
|
|
| 84 |
|
/** |
| 85 |
|
* @param \Migrations\Migration $migration |