Sorry, I'm still not sure I understand. Should I keep the SMWCompatibilityHelpers code in SIO for now, since there's no alternative at the moment?


On Mon, Jul 23, 2012 at 4:57 PM, Jeroen De Dauw <jeroendedauw@gmail.com> wrote:

You can use the compat helpers for 1.6 and 1.7, but will need non trivial changes to support 1.8 because of the store rewrite.

AFAIK this code still needs to stabilize, so you cannot add in forwards compat just yet.

Sent from my Android phone.

On 23 Jul 2012 22:53, "Yaron Koren" <yaron@wikiworks.com> wrote:

Sorry, what's the actual code I should use? That's all I wanted to know.


On Mon, Jul 23, 2012 at 4:47 PM, Nischay Nahata <nischayn22@gmail.com> wrote:

SMWCompatibilityHelpers has been removed in 1.8 Store3, though its still in the repository to support Store2.
Store3 instead uses DIHelper classes (interfaceSMWDataItemHandler) to access the DB.

I also just looked at Semantic Internal Objects and saw that it extends Store2 and directly accesses db tables, these tables won't be
there anymore in 1.8.

On Mon, Jul 23, 2012 at 11:48 PM, Yaron Koren <yaron@wikiworks.com> wrote:

In the Semantic Internal Objects extension, I'm getting the "DB keys" for an object of type SMWDataValue with the following code:

$dataItem = $value->getDataItem();
$keys = SMWCompatibilityHelpers::getDBkeysFromDataItem( $dataItem );

However, the file for the SMWCompatibilityHelpers says that "This file and its contents will vanish before SMW 1.7." So what code should be used instead?



Nischay Nahata

WikiWorks MediaWiki Consulting http://wikiworks.com

Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Semediawiki-devel mailing list

WikiWorks MediaWiki Consulting http://wikiworks.com