code/libraries/joomlatools/component/koowa/controller/behavior/findable.php
protected function _afterAdd(KControllerContextInterface $context)
    {
        $entity  = $context->result;
        $name    = $entity->getIdentifier()->name;

        if ($name === $this->_entity && $entity->getStatus() !== KDatabase::STATUS_FAILED) {
            $this->_getDispatcher()->trigger('onFinderAfterSave', array($this->_event_context, $entity, true));
        }
    }
protected function _afterAdd(KControllerContextInterface $context)
    {
        $entity  = $context->result;
        $name    = $entity->getIdentifier()->name;

        if ($name === $this->_entity && $entity->getStatus() !== KDatabase::STATUS_FAILED) {
            $this->_getDispatcher()->trigger('onFinderAfterSave', array($this->_event_context, $entity, true));
        }
    }
protected function _afterAdd ( KControllerContextInterface $ context ) { $ entity = $ context -> result ; $ name = $ entity -> getIdentifier ( ) -> name ; if ( $ name === $ this -> _entity && $ entity -> getStatus ( ) !== KDatabase :: STATUS_FAILED ) { $ this -> _getDispatcher ( ) -> trigger ( 'onFinderAfterSave' , array ( $ this -> _event_context , $ entity , true ) ) ; } }
Add new items to the index

@param KControllerContextInterface $context
Add new items to the index