original_string: public function registerSearchObjects($relatedObjects = null)
      {
          $eZTagsINI = eZINI::instance( 'eztags.ini' );
  
          if ( eZINI::instance( 'site.ini' )->variable( 'SearchSettings', 'DelayedIndexing' ) !== 'disabled'
              || $eZTagsINI->variable( 'SearchSettings', 'ReindexWhenDelayedIndexingDisabled' ) == 'enabled' )
          {
              if ($relatedObjects === null) {
                  $relatedObjects = $this->getRelatedObjects();
              }
              foreach ( $relatedObjects as $relatedObject )
              {
                  eZContentOperationCollection::registerSearchObject( $relatedObject->attribute( 'id' ), $relatedObject->attribute( 'current_version' ) );
              }
  
              return;
          }
  
          eZHTTPTool::instance()->setSessionVariable( 'eZTagsShowReindexMessage', 1 );
      }
code: public function registerSearchObjects($relatedObjects = null)
      {
          $eZTagsINI = eZINI::instance( 'eztags.ini' );
  
          if ( eZINI::instance( 'site.ini' )->variable( 'SearchSettings', 'DelayedIndexing' ) !== 'disabled'
              || $eZTagsINI->variable( 'SearchSettings', 'ReindexWhenDelayedIndexingDisabled' ) == 'enabled' )
          {
              if ($relatedObjects === null) {
                  $relatedObjects = $this->getRelatedObjects();
              }
              foreach ( $relatedObjects as $relatedObject )
              {
                  eZContentOperationCollection::registerSearchObject( $relatedObject->attribute( 'id' ), $relatedObject->attribute( 'current_version' ) );
              }
  
              return;
          }
  
          eZHTTPTool::instance()->setSessionVariable( 'eZTagsShowReindexMessage', 1 );
      }
code_tokens: public function registerSearchObjects ( $ relatedObjects = null ) { $ eZTagsINI = eZINI :: instance ( 'eztags.ini' ) ; if ( eZINI :: instance ( 'site.ini' ) -> variable ( 'SearchSettings' , 'DelayedIndexing' ) !== 'disabled' || $ eZTagsINI -> variable ( 'SearchSettings' , 'ReindexWhenDelayedIndexingDisabled' ) == 'enabled' ) { if ( $ relatedObjects === null ) { $ relatedObjects = $ this -> getRelatedObjects ( ) ; } foreach ( $ relatedObjects as $ relatedObject ) { eZContentOperationCollection :: registerSearchObject ( $ relatedObject -> attribute ( 'id' ) , $ relatedObject -> attribute ( 'current_version' ) ) ; } return ; } eZHTTPTool :: instance ( ) -> setSessionVariable ( 'eZTagsShowReindexMessage' , 1 ) ; }
docstring: Registers all objects related to this tag to search engine for processing
  @param array|null $relatedObjects when not null, we assume that these are the objects related to the tag, instead
  of fetching them. Useful when deleting tags.
docstring_tokens: Registers all objects related to this tag to search engine for processing