src/searchOld/base/AbstractWatch.php
public function init()
    {
        if (true === $this->beforeInit()) {
            HasPropertiesEvent::on(HasProperties::class, HasProperties::EVENT_AFTER_SAVE, [$this, 'onSave']);
            HasPropertiesEvent::on(HasProperties::class, HasProperties::EVENT_AFTER_UPDATE, [$this, 'onUpdate']);
            HasPropertiesEvent::on(HasProperties::class, HasProperties::EVENT_BEFORE_DELETE, [$this, 'onDelete']);
        }
    }
public function init()
    {
        if (true === $this->beforeInit()) {
            HasPropertiesEvent::on(HasProperties::class, HasProperties::EVENT_AFTER_SAVE, [$this, 'onSave']);
            HasPropertiesEvent::on(HasProperties::class, HasProperties::EVENT_AFTER_UPDATE, [$this, 'onUpdate']);
            HasPropertiesEvent::on(HasProperties::class, HasProperties::EVENT_BEFORE_DELETE, [$this, 'onDelete']);
        }
    }
public function init ( ) { if ( true === $ this -> beforeInit ( ) ) { HasPropertiesEvent :: on ( HasProperties :: class , HasProperties :: EVENT_AFTER_SAVE , [ $ this , 'onSave' ] ) ; HasPropertiesEvent :: on ( HasProperties :: class , HasProperties :: EVENT_AFTER_UPDATE , [ $ this , 'onUpdate' ] ) ; HasPropertiesEvent :: on ( HasProperties :: class , HasProperties :: EVENT_BEFORE_DELETE , [ $ this , 'onDelete' ] ) ; } }
Adds event listeners to perform search index actualization if pre initialization was successful
Adds event listeners to perform search index actualization if pre initialization was successful