| @@ 346-363 (lines=18) @@ | ||
| 343 | 'dependency' => $contentItem->getCollection() |
|
| 344 | )); |
|
| 345 | } |
|
| 346 | else if ($this->dm->isHandled($filePath)) |
|
| 347 | { |
|
| 348 | $change = $this->dm->createNewItem($filePath); |
|
| 349 | ||
| 350 | $this->pm->updateTwigVariable('data', $this->dm->getDataItems()); |
|
| 351 | $this->pm->compileSome(array( |
|
| 352 | 'namespace' => 'data', |
|
| 353 | 'dependency' => $change |
|
| 354 | )); |
|
| 355 | } |
|
| 356 | else if (!is_null($this->tm) && $this->tm->isHandled($filePath)) |
|
| 357 | { |
|
| 358 | $this->tm->createNewItem($filePath); |
|
| 359 | } |
|
| 360 | else if ($this->am->isHandled($filePath)) |
|
| 361 | { |
|
| 362 | $this->am->createNewItem($filePath); |
|
| 363 | } |
|
| 364 | } |
|
| 365 | ||
| 366 | private function modificationWatcher ($filePath) |
|
| @@ 385-402 (lines=18) @@ | ||
| 382 | 'dependency' => $contentItem->getCollection() |
|
| 383 | )); |
|
| 384 | } |
|
| 385 | else if ($this->dm->isTracked($filePath)) |
|
| 386 | { |
|
| 387 | $change = $this->dm->refreshItem($filePath); |
|
| 388 | ||
| 389 | $this->pm->updateTwigVariable('data', $this->dm->getDataItems()); |
|
| 390 | $this->pm->compileSome(array( |
|
| 391 | 'namespace' => 'data', |
|
| 392 | 'dependency' => $change |
|
| 393 | )); |
|
| 394 | } |
|
| 395 | else if (!is_null($this->tm) && $this->tm->isTracked($filePath)) |
|
| 396 | { |
|
| 397 | $this->tm->refreshItem($filePath); |
|
| 398 | } |
|
| 399 | else if ($this->am->isTracked($filePath)) |
|
| 400 | { |
|
| 401 | $this->am->refreshItem($filePath); |
|
| 402 | } |
|
| 403 | } |
|
| 404 | ||
| 405 | /** |
|