public function processCmdmap_postProcess($command, $table, $uid, $value, DataHandler $tceMain) {
        // workspaces: collect garbage only for LIVE workspace
        if ($command === 'move' && $table === 'pages' && $GLOBALS['BE_USER']->workspace == 0) {
            // TODO the below comment is not valid anymore, pid has been removed from doc ID
            // ...still needed?

            // must be removed from index since the pid changes and
            // is part of the Solr document ID
            $this->collectGarbage($table, $uid);

            // now re-index with new properties
            $this->getIndexQueue()->updateItem($table, $uid);
        }
    }
public function processCmdmap_postProcess($command, $table, $uid, $value, DataHandler $tceMain) {
        // workspaces: collect garbage only for LIVE workspace
        if ($command === 'move' && $table === 'pages' && $GLOBALS['BE_USER']->workspace == 0) {
            // TODO the below comment is not valid anymore, pid has been removed from doc ID
            // ...still needed?

            // must be removed from index since the pid changes and
            // is part of the Solr document ID
            $this->collectGarbage($table, $uid);

            // now re-index with new properties
            $this->getIndexQueue()->updateItem($table, $uid);
        }
    }
public function processCmdmap_postProcess ( $ command , $ table , $ uid , $ value , DataHandler $ tceMain ) { // workspaces: collect garbage only for LIVE workspace if ( $ command === 'move' && $ table === 'pages' && $ GLOBALS [ 'BE_USER' ] -> workspace == 0 ) { // TODO the below comment is not valid anymore, pid has been removed from doc ID // ...still needed? // must be removed from index since the pid changes and // is part of the Solr document ID $ this -> collectGarbage ( $ table , $ uid ) ; // now re-index with new properties $ this -> getIndexQueue ( ) -> updateItem ( $ table , $ uid ) ; } }
Hooks into TCE main and tracks page move commands.

@param string $command The command.
@param string $table The table the record belongs to
@param int $uid The record's uid
@param string $value Not used
@param DataHandler $tceMain TYPO3 Core Engine parent object, not used
Hooks into TCE main and tracks page move commands .