Public Member Functions | |
| __construct () | |
| Constructor. | |
| doManipulation (&$value, Parameter $parameter, array &$parameters) | |
| setPrintRequests (array $printRequests) | |
| Sets the print requests of the query, used for determining the default format if none is provided. | |
Static Public Member Functions | |
| static | resolveFormatAliases (&$format) |
| Turns format aliases into main formats. | |
Protected Member Functions | |
| getValidFormatName ($value) | |
| Takes a format name, which can be an alias and returns a format name which will be valid for sure. | |
| getDefaultFormat () | |
| Determines and returns the default format, based on the queries print requests, if provided. | |
Protected Attributes | |
| $printRequests = null | |
Definition at line 15 of file SMW_ParamFormat.php.
| SMWParamFormat::__construct | ( | ) |
| SMWParamFormat::doManipulation | ( | &$ | value, | |
| Parameter $ | parameter, | |||
| array &$ | parameters | |||
| ) |
Definition at line 42 of file SMW_ParamFormat.php.
References SMWQueryProcessor::getResultPrinter().
| SMWParamFormat::getValidFormatName | ( | $ | value | ) | [protected] |
Takes a format name, which can be an alias and returns a format name which will be valid for sure.
Aliases are resvolved. If the given format name is invalid, the predefined default format will be returned.
| string | $value |
Definition at line 63 of file SMW_ParamFormat.php.
References $smwgResultFormats, and getDefaultFormat().
| static SMWParamFormat::resolveFormatAliases | ( | &$ | format | ) | [static] |
Turns format aliases into main formats.
| string | $format |
Definition at line 88 of file SMW_ParamFormat.php.
References $smwgResultAliases.
Referenced by SMWQueryProcessor::getResultFormat().
| SMWParamFormat::getDefaultFormat | ( | ) | [protected] |
Determines and returns the default format, based on the queries print requests, if provided.
This hook allows extensions to override SMWs implementation of default result format handling.
Definition at line 112 of file SMW_ParamFormat.php.
Referenced by getValidFormatName().
| SMWParamFormat::setPrintRequests | ( | array $ | printRequests | ) |
Sets the print requests of the query, used for determining the default format if none is provided.
| $printRequests | array of SMWPrintRequest |
Definition at line 144 of file SMW_ParamFormat.php.
SMWParamFormat::$printRequests = null [protected] |
Definition at line 26 of file SMW_ParamFormat.php.
1.5.6