protected function applyVersionSwap($table, $uid, DataHandler $tceMain)
    {
        $isPageRelatedRecord = $table === 'tt_content' || $table === 'pages';
        if($isPageRelatedRecord) {
            $uid = $table === 'tt_content' ? $this->getValidatedPid($tceMain, $table, $uid) : $uid;
            $this->applyPageChangesToQueue($uid);
        } else {
            $recordPageId = $this->getValidatedPid($tceMain, $table, $uid);
            $this->applyRecordChangesToQueue($table, $uid, $recordPageId);
        }
    }
protected function applyVersionSwap($table, $uid, DataHandler $tceMain)
    {
        $isPageRelatedRecord = $table === 'tt_content' || $table === 'pages';
        if($isPageRelatedRecord) {
            $uid = $table === 'tt_content' ? $this->getValidatedPid($tceMain, $table, $uid) : $uid;
            $this->applyPageChangesToQueue($uid);
        } else {
            $recordPageId = $this->getValidatedPid($tceMain, $table, $uid);
            $this->applyRecordChangesToQueue($table, $uid, $recordPageId);
        }
    }
protected function applyVersionSwap ( $ table , $ uid , DataHandler $ tceMain ) { $ isPageRelatedRecord = $ table === 'tt_content' || $ table === 'pages' ; if ( $ isPageRelatedRecord ) { $ uid = $ table === 'tt_content' ? $ this -> getValidatedPid ( $ tceMain , $ table , $ uid ) : $ uid ; $ this -> applyPageChangesToQueue ( $ uid ) ; } else { $ recordPageId = $ this -> getValidatedPid ( $ tceMain , $ table , $ uid ) ; $ this -> applyRecordChangesToQueue ( $ table , $ uid , $ recordPageId ) ; } }
Apply's version swap to the IndexQueue.

@param string $table
@param integer $uid
@param DataHandler $tceMain
Apply s version swap to the IndexQueue .