public function eventAfterUpdate()
    {
        $this->updateNavItemTimesamp();
        if (!empty($this->_olds)) {
            $oldPlaceholderVar = $this->_olds['placeholder_var'];
            $oldPrevId = (int) $this->_olds['prev_id'];
            if ($oldPlaceholderVar != $this->placeholder_var || $oldPrevId != $this->prev_id) {
                $this->reindex($this->nav_item_page_id, $oldPlaceholderVar, $oldPrevId);
            }
            $this->reindex($this->nav_item_page_id, $this->placeholder_var, $this->prev_id);
            Log::add(2, ['tableName' => 'cms_nav_item_page_block_item', 'action' => 'update', 'row' => $this->id, 'pageTitle' => $this->droppedPageTitle, 'blockName' => $this->block->getNameForLog()], 'cms_nav_item_page_block_item', $this->id);
        }
    }
public function eventAfterUpdate()
    {
        $this->updateNavItemTimesamp();
        if (!empty($this->_olds)) {
            $oldPlaceholderVar = $this->_olds['placeholder_var'];
            $oldPrevId = (int) $this->_olds['prev_id'];
            if ($oldPlaceholderVar != $this->placeholder_var || $oldPrevId != $this->prev_id) {
                $this->reindex($this->nav_item_page_id, $oldPlaceholderVar, $oldPrevId);
            }
            $this->reindex($this->nav_item_page_id, $this->placeholder_var, $this->prev_id);
            Log::add(2, ['tableName' => 'cms_nav_item_page_block_item', 'action' => 'update', 'row' => $this->id, 'pageTitle' => $this->droppedPageTitle, 'blockName' => $this->block->getNameForLog()], 'cms_nav_item_page_block_item', $this->id);
        }
    }
public function eventAfterUpdate ( ) { $ this -> updateNavItemTimesamp ( ) ; if ( ! empty ( $ this -> _olds ) ) { $ oldPlaceholderVar = $ this -> _olds [ 'placeholder_var' ] ; $ oldPrevId = ( int ) $ this -> _olds [ 'prev_id' ] ; if ( $ oldPlaceholderVar != $ this -> placeholder_var || $ oldPrevId != $ this -> prev_id ) { $ this -> reindex ( $ this -> nav_item_page_id , $ oldPlaceholderVar , $ oldPrevId ) ; } $ this -> reindex ( $ this -> nav_item_page_id , $ this -> placeholder_var , $ this -> prev_id ) ; Log :: add ( 2 , [ 'tableName' => 'cms_nav_item_page_block_item' , 'action' => 'update' , 'row' => $ this -> id , 'pageTitle' => $ this -> droppedPageTitle , 'blockName' => $ this -> block -> getNameForLog ( ) ] , 'cms_nav_item_page_block_item' , $ this -> id ) ; } }
Event after update
Event after update