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

        foreach ($context->result as $entity)
        {
            if ($entity->getStatus() !== KDatabase::STATUS_FAILED)
            {
                if ($name === $this->_category_entity)
                {
                    if (($entity->old_enabled !== $entity->enabled) || ($entity->old_access !== $entity->access))
                    {
                        $category_context = 'com_'.$this->_package.'.'.$this->_category_entity;

                        $this->_getDispatcher()->trigger('onFinderAfterSave', array($category_context, $entity, false));
                    }
                } else {
                    $this->_getDispatcher()->trigger('onFinderAfterSave', array($this->_event_context, $entity, false));
                }
            }
        }
    }
protected function _afterEdit(KControllerContextInterface $context)
    {
        $name   = $this->getMixer()->getIdentifier()->name;

        foreach ($context->result as $entity)
        {
            if ($entity->getStatus() !== KDatabase::STATUS_FAILED)
            {
                if ($name === $this->_category_entity)
                {
                    if (($entity->old_enabled !== $entity->enabled) || ($entity->old_access !== $entity->access))
                    {
                        $category_context = 'com_'.$this->_package.'.'.$this->_category_entity;

                        $this->_getDispatcher()->trigger('onFinderAfterSave', array($category_context, $entity, false));
                    }
                } else {
                    $this->_getDispatcher()->trigger('onFinderAfterSave', array($this->_event_context, $entity, false));
                }
            }
        }
    }
protected function _afterEdit ( KControllerContextInterface $ context ) { $ name = $ this -> getMixer ( ) -> getIdentifier ( ) -> name ; foreach ( $ context -> result as $ entity ) { if ( $ entity -> getStatus ( ) !== KDatabase :: STATUS_FAILED ) { if ( $ name === $ this -> _category_entity ) { if ( ( $ entity -> old_enabled !== $ entity -> enabled ) || ( $ entity -> old_access !== $ entity -> access ) ) { $ category_context = 'com_' . $ this -> _package . '.' . $ this -> _category_entity ; $ this -> _getDispatcher ( ) -> trigger ( 'onFinderAfterSave' , array ( $ category_context , $ entity , false ) ) ; } } else { $ this -> _getDispatcher ( ) -> trigger ( 'onFinderAfterSave' , array ( $ this -> _event_context , $ entity , false ) ) ; } } } }
Modifies the index after save

Also updates the state and access of items that belong to an edited category

@param KControllerContextInterface $context
Modifies the index after save