Public Member Functions | |
| getName () | |
| Get a human readable label for this printer. | |
| getResult (SMWQueryResult $results, array $params, $outputmode) | |
| Main entry point: takes an SMWQueryResult and parameters given as key-value-pairs in an array, and returns the serialised version of the results, formatted as HTML or Wiki or whatever is specified. | |
| formatDateStr ($object) | |
| displayCalendar ($events) | |
| getParameters () | |
| (non-PHPdoc) | |
Protected Member Functions | |
| setColors ($colorsText) | |
| handleParameters (array $params, $outputmode) | |
| Read an array of parameter values given as key-value-pairs and initialise internal member fields accordingly. | |
| getResultText (SMWQueryResult $res, $outputmode) | |
| (non-PHPdoc) | |
Static Protected Member Functions | |
| static | intToMonth ($int) |
Protected Attributes | |
| $mTemplate | |
| $mUserParam | |
| $mRealUserLang = null | |
Definition at line 13 of file SRF_Calendar.php.
| SRFCalendar::setColors | ( | $ | colorsText | ) | [protected] |
Definition at line 19 of file SRF_Calendar.php.
Referenced by getResultText(), and handleParameters().
| SRFCalendar::handleParameters | ( | array $ | params, | |
| $ | outputmode | |||
| ) | [protected] |
Read an array of parameter values given as key-value-pairs and initialise internal member fields accordingly.
Possibly overwritten (extended) by subclasses.
| array | $params | |
| $outputmode |
Reimplemented from SMWResultPrinter.
Definition at line 31 of file SRF_Calendar.php.
References simplejson::jsonfilter::factory(), and setColors().
Referenced by getResult().
| SRFCalendar::getName | ( | ) |
Get a human readable label for this printer.
The default is to return just the format identifier. Concrete implementations may refer to messages here. The format name is normally not used in wiki text but only in forms etc. hence the user language should be used when retrieving messages.
Reimplemented from SMWResultPrinter.
Definition at line 48 of file SRF_Calendar.php.
| SRFCalendar::getResult | ( | SMWQueryResult $ | results, | |
| array $ | params, | |||
| $ | outputmode | |||
| ) |
Main entry point: takes an SMWQueryResult and parameters given as key-value-pairs in an array, and returns the serialised version of the results, formatted as HTML or Wiki or whatever is specified.
Normally this is not overwritten by subclasses.
If the outputmode is SMW_OUTPUT_WIKI, then the function will return something that is suitable for being used in a MediaWiki parser function, i.e. a wikitext strong *or* an array with flags and the string as entry 0. See Parser::setFunctionHook() for documentation on this. In all other cases, the function returns just a string.
For outputs SMW_OUTPUT_WIKI and SMW_OUTPUT_HTML, error messages or standard "further results" links are directly generated and appended. For SMW_OUTPUT_FILE, only the plain generated text is returned.
| $results | SMWQueryResult | |
| $params | array | |
| $outputmode | integer |
Reimplemented from SMWResultPrinter.
Definition at line 52 of file SRF_Calendar.php.
References getResultText(), and handleParameters().
| SRFCalendar::getResultText | ( | SMWQueryResult $ | res, | |
| $ | outputmode | |||
| ) | [protected] |
(non-PHPdoc)
Reimplemented from SMWResultPrinter.
Definition at line 67 of file SRF_Calendar.php.
References displayCalendar(), formatDateStr(), SMWPrintRequest::PRINT_PROP, setColors(), and smwfGetLinker().
Referenced by getResult().
| static SRFCalendar::intToMonth | ( | $ | int | ) | [static, protected] |
Definition at line 224 of file SRF_Calendar.php.
| SRFCalendar::formatDateStr | ( | $ | object | ) |
| SRFCalendar::displayCalendar | ( | $ | events | ) |
Definition at line 249 of file SRF_Calendar.php.
References $srfgScriptPath, $wgTitle, SRFCHistoricalDate::daysInMonth(), END, and scraper::form.
Referenced by getResultText().
| SRFCalendar::getParameters | ( | ) |
(non-PHPdoc)
Reimplemented from SMWResultPrinter.
Definition at line 530 of file SRF_Calendar.php.
References SMWResultPrinter::$params.
SRFCalendar::$mTemplate [protected] |
Definition at line 15 of file SRF_Calendar.php.
SRFCalendar::$mUserParam [protected] |
Definition at line 16 of file SRF_Calendar.php.
SRFCalendar::$mRealUserLang = null [protected] |
Definition at line 17 of file SRF_Calendar.php.
1.5.6