|
@@ 115-121 (lines=7) @@
|
| 112 |
|
} |
| 113 |
|
|
| 114 |
|
private function reparent($from, $to) { |
| 115 |
|
if (!$this->reparentQuery) { |
| 116 |
|
$builder = $this->connection->getQueryBuilder(); |
| 117 |
|
|
| 118 |
|
$this->reparentQuery = $builder->update('filecache') |
| 119 |
|
->set('parent', $builder->createParameter('to')) |
| 120 |
|
->where($builder->expr()->eq('fileid', $builder->createParameter('from'))); |
| 121 |
|
} |
| 122 |
|
|
| 123 |
|
$this->reparentQuery->setParameter('from', $from); |
| 124 |
|
$this->reparentQuery->setParameter('to', $to); |
|
@@ 130-135 (lines=6) @@
|
| 127 |
|
} |
| 128 |
|
|
| 129 |
|
private function delete($fileid) { |
| 130 |
|
if (!$this->deleteQuery) { |
| 131 |
|
$builder = $this->connection->getQueryBuilder(); |
| 132 |
|
|
| 133 |
|
$this->deleteQuery = $builder->delete('filecache') |
| 134 |
|
->where($builder->expr()->eq('fileid', $builder->createParameter('fileid'))); |
| 135 |
|
} |
| 136 |
|
|
| 137 |
|
$this->deleteQuery->setParameter('fileid', $fileid, IQueryBuilder::PARAM_INT); |
| 138 |
|
|