From: Sam S. <sm...@gm...> - 2010-12-28 12:19:10
|
Hi again, and thanks for the answers. Personally, I feel more comfortable implementing the required logic in PHP rather than using complex MediaWiki parser functions statements. So I think I'll give the "custom SMW data type" thing a try... Looking at SMW_DataValue.php and SMW_DV_URI.php, it appears I need to write a subclass of SMWDataValue that implements at least the parseUserValue and parseDBkeys functions, plus some simple "get..." functions (getDBkeys, getSignature, getShortWikiText, getShortHTMLText, getLongWikiText, getLongHTMLText, getWikiValue), which altogether doesn't look too difficult. I have two more questions though: 1) How do I make the custom data type known to SMW, and how do I wrap up the whole thing as an extension module for SMW? (I couldn't find any documentation on that, either.) 2) Is the API considered "stable", or are developers of SMW extension modules expected to implement considerable changes for each new SMW release? Regards, Sam S. |