code/libraries/joomlatools/component/koowa/controller/behavior/findable.php
protected function _beforeEdit(KControllerContextInterface $context)
    {
        if ($this->getMixer()->getIdentifier()->name === $this->_category_entity)
        {
            $collection = $this->getModel()->fetch();

            foreach ($collection as $entity)
            {
                $entity->old_enabled = $entity->enabled;
                $entity->old_access  = $entity->access;
            }
        }
    }
protected function _beforeEdit(KControllerContextInterface $context)
    {
        if ($this->getMixer()->getIdentifier()->name === $this->_category_entity)
        {
            $collection = $this->getModel()->fetch();

            foreach ($collection as $entity)
            {
                $entity->old_enabled = $entity->enabled;
                $entity->old_access  = $entity->access;
            }
        }
    }
protected function _beforeEdit ( KControllerContextInterface $ context ) { if ( $ this -> getMixer ( ) -> getIdentifier ( ) -> name === $ this -> _category_entity ) { $ collection = $ this -> getModel ( ) -> fetch ( ) ; foreach ( $ collection as $ entity ) { $ entity -> old_enabled = $ entity -> enabled ; $ entity -> old_access = $ entity -> access ; } } }
Caches the current state and access for categories before they are changed.

@param KControllerContextInterface $context
Caches the current state and access for categories before they are changed .