| 1 | <?php |
||
| 11 | class SynchronousAutoIndexBehavior extends Behavior |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * If the model should be removed from index after delete. |
||
| 15 | * |
||
| 16 | * @var bool |
||
| 17 | */ |
||
| 18 | public $afterDelete = true; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * If the model should be added to index after insert. |
||
| 22 | * |
||
| 23 | * @var bool |
||
| 24 | */ |
||
| 25 | public $afterInsert = true; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * If the model should be updated also to index after update. |
||
| 29 | * |
||
| 30 | * @var bool |
||
| 31 | */ |
||
| 32 | public $afterUpdate = true; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritdoc} |
||
| 36 | */ |
||
| 37 | 6 | public function events() |
|
| 63 | } |
||
| 64 |