I don't know how much this helps, but you can find the class and constructor function for SMWPrintRequest at /includes/storage/SMW_Description.php, in the SemanticMediaWiki directory.


On Wed, Nov 12, 2008 at 3:37 AM, Izzy <Isabel.Sargent@ordnancesurvey.co.uk> wrote:

I'm working closely with Guy Heathcote and we are loving what we can do with
our SMW. There has always been one thing that we couldn't do that involved a
simple query that output the results using a rather more complex set of
criteria - basically that the results are ordered according the a hierarchy
defined by a given property of a given category of page.

Having tried for a while to do this inline (spinning off lots of pages, etc)
I came to the conclusion that the only way to achieve what we wanted was to
write some form of extension. My PHP and O-O are both rudimentary. However,
I have a great sense of humour, so I set about this task last week.

Now I have my rough extension written, based on Semantic Calendar. I can get
the page names I want in the order i want. However, I can't figure out how
to output the results to the wiki page.

I've had a good delve through the classes, and have concluded that the most
important thing is to supply SMWPrintRequest() with the right input
arguments and SMWQueryProcessor::createQuery() and
smwfGetStore()->getQueryResult() will return all the information that I
require. Is this right?

However, I can't work out what the input arguments for SMWPrintRequest() are
(sorry!). Any hints would be really really welcome.

View this message in context: http://www.nabble.com/Writing-an-extension-that-outputs-to-a-given-format-tp20438110p20438110.html
Sent from the Semantic Mediawiki - Development mailing list archive at Nabble.com.

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
Semediawiki-devel mailing list