2017-04-22 21:22:54 +12:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace SilverStripe\FullTextSearch\Captures;
|
|
|
|
|
|
|
|
use SilverStripe\SQLite\SQLite3Database;
|
|
|
|
use SilverStripe\FullTextSearch\Search\Updaters\SearchUpdater;
|
|
|
|
|
|
|
|
if (!class_exists('SQLite3Database')) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2017-11-15 09:48:52 +13:00
|
|
|
class SearchManipulateCapture_SQLite3Database extends SQLite3Database
|
|
|
|
{
|
2017-04-22 21:22:54 +12:00
|
|
|
|
|
|
|
public $isManipulationCapture = true;
|
|
|
|
|
2017-11-15 09:48:52 +13:00
|
|
|
public function manipulate($manipulation)
|
|
|
|
{
|
2017-04-22 21:22:54 +12:00
|
|
|
$res = parent::manipulate($manipulation);
|
|
|
|
SearchUpdater::handle_manipulation($manipulation);
|
|
|
|
return $res;
|
|
|
|
}
|
|
|
|
}
|