eZ/Publish/Core/Search/Common/EventSubscriber/LocationEventSubscriber.php 1 location
|
@@ 38-50 (lines=13) @@
|
| 35 |
|
$this->indexSubtree($event->getLocation()->id); |
| 36 |
|
} |
| 37 |
|
|
| 38 |
|
public function onCreateLocation(CreateLocationEvent $event) |
| 39 |
|
{ |
| 40 |
|
$contentInfo = $this->persistenceHandler->contentHandler()->loadContentInfo( |
| 41 |
|
$event->getContentInfo()->id |
| 42 |
|
); |
| 43 |
|
|
| 44 |
|
$this->searchHandler->indexContent( |
| 45 |
|
$this->persistenceHandler->contentHandler()->load( |
| 46 |
|
$contentInfo->id, |
| 47 |
|
$contentInfo->currentVersionNo |
| 48 |
|
) |
| 49 |
|
); |
| 50 |
|
} |
| 51 |
|
|
| 52 |
|
public function onDeleteLocation(DeleteLocationEvent $event) |
| 53 |
|
{ |
eZ/Publish/Core/Search/Common/EventSubscriber/SectionEventSubscriber.php 1 location
|
@@ 18-24 (lines=7) @@
|
| 15 |
|
]; |
| 16 |
|
} |
| 17 |
|
|
| 18 |
|
public function onAssignSection(AssignSectionEvent $event) |
| 19 |
|
{ |
| 20 |
|
$contentInfo = $this->persistenceHandler->contentHandler()->loadContentInfo($event->getContentInfo()->id); |
| 21 |
|
$this->searchHandler->indexContent( |
| 22 |
|
$this->persistenceHandler->contentHandler()->load($contentInfo->id, $contentInfo->currentVersionNo) |
| 23 |
|
); |
| 24 |
|
} |
| 25 |
|
} |