mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 14:05:29 +02:00
23 lines
542 B
PHP
23 lines
542 B
PHP
<?php
|
|
|
|
namespace SilverStripe\FullTextSearch\Captures;
|
|
|
|
use SilverStripe\PostgreSQL\PostgreSQLDatabase;
|
|
use SilverStripe\FullTextSearch\Search\Updaters\SearchUpdater;
|
|
|
|
if (!class_exists(PostgreSQLDatabase::class)) {
|
|
return;
|
|
}
|
|
|
|
class SearchManipulateCapture_PostgreSQLDatabase extends PostgreSQLDatabase
|
|
{
|
|
public $isManipulationCapture = true;
|
|
|
|
public function manipulate($manipulation)
|
|
{
|
|
$res = parent::manipulate($manipulation);
|
|
SearchUpdater::handle_manipulation($manipulation);
|
|
return $res;
|
|
}
|
|
}
|