Skip to content
This repository has been archived by the owner on Mar 25, 2019. It is now read-only.

Avoid arbitrary Store::updateData requests #6

Closed
mwjames opened this issue Feb 10, 2018 · 1 comment
Closed

Avoid arbitrary Store::updateData requests #6

mwjames opened this issue Feb 10, 2018 · 1 comment

Comments

@mwjames
Copy link

mwjames commented Feb 10, 2018

We normally do not send arbitrary Store::updateData requests (since we update in deferred mode), so this requires a review whether it is really necessary or not and doesn't override any data in the store by accident.

// update semantic data for the realted article
$title = Title::newFromText( $relatedArticle );
$article = new Article( $title );
$text = ContentHandler::getContentText( $article->getPage()->getContent() );
$options = new ParserOptions;
$output = $wgParser->parse( $article->preSaveTransform( $text ),
$article->mTitle, $options
);
if ( isset( $output->mSMWData ) ) {
$store = smwfGetStore();
$store->updateData( $output->mSMWData );
}
}

@mwjames mwjames changed the title Avoid arbitary Store::updateData requests Avoid arbitrary Store::updateData requests Feb 10, 2018
@kghbln
Copy link
Member

kghbln commented Mar 25, 2019

This extension was abandoned. See #25 for further details and an alternative.

@kghbln kghbln closed this as completed Mar 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants