Help:$smwgDVFeatures

From semantic-mediawiki.org
Jump to: navigation, search
Title $smwgDVFeatures
Description Specifies which DV (DataValue) features are enabled and available by default.
Default setting see documentation
Software Semantic MediaWiki
Introduced with 2.4.0
Deprecated with still available
Configuration DataValue
Keyword Output · Display
Referenced by N/A

Description

See the DefaultSettings page for a detailed description.

Changing the default setting

Remove a feature flag

Removing the SMW_DV_WPV_DTITLE feature from the default setting.

$GLOBALS['smwgDVFeatures'] = $GLOBALS['smwgDVFeatures'] & ~SMW_DV_WPV_DTITLE;

Enable a feature flag

Enable support for SMW_DV_PVUC property trait.

$GLOBALS['smwgDVFeatures'] = $GLOBALS['smwgDVFeatures'] | SMW_DV_PVUC;

Note Note: Please use parentheses1 when combining different bit-operations to avoid a possible mismatch.

$GLOBALS['smwgDVFeatures'] = ( $GLOBALS['smwgDVFeatures'] & ~SMW_DV_WPV_DTITLE ) | SMW_DV_PVUC;

See also

References

  1. ^  Bitwise Operators to use parentheses to ensure the desired precedence ...