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 );
    }
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 );
    }
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 ) ; }
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.
Registers all objects related to this tag to search engine for processing