Nevermind I found the solution. $property = SMWPropertyValue::makeUserProperty($prop_name); $prop_type = $property->getTypeID();
Quoting [EMAIL PROTECTED]: > Hi, can someone please enlighten me what is the best way to 'translate' > this code to get the property type from the property name from the 1.3 to > the > 1.4 syntax: > > 1.3 > // property title and type > $prop_title = Title::newFromText($prop_name, SMW_NS_PROPERTY); > $prop_type = SMWDataValueFactory::getPropertyObjectTypeID($prop_title); > > 1.4 > $prop_title = Title::newFromText($prop_name, SMW_NS_PROPERTY); > ??? > > Thanks, > Gu > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Semediawiki-devel mailing list > Semediawiki-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/semediawiki-devel > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel