I'm improving the SMW CSV query printer we're working on at CC (source is in the CC_SMW_Extensions repository at code.creativecommons.org's git; if we didn't announce it before, ask - I'm happy to write more about it later).
For our CSV printer, I figured - if a page has two values for a property, they should show up in the same column of a spreadsheet joined by "," rather than in separate columns. So I began to change the CSV Query Printer to keep track of which property name it was printing. However, in abstract SMWDataValue $object->m_property is *protected*. So I can't read it. So my query printer can't tell what property it is printing, and therefore can't specially handle this case. Why is it protected? Can a get_property_name() method be added? Am I handling this wrong? -- Asheesh. -- When taxes are due, Americans tend to feel quite bled-white and blue. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel