public static function initQRCDataTypes() { global $wgAutoloadClasses, $smwgHaloIP, $smwgHaloContLang; $wgAutoloadClasses['SMWQueryCallMetadataValue'] = "{$smwgHaloIP}/includes/QueryResultsCache/SMW_QRC_DV_QueryCallMetadata.php"; SMWDataValueFactory::registerDatatype('_qcm', 'SMWQueryCallMetadataValue'); return true; }
function initSDTypes() { SMWDataValueFactory::registerDatatype('_sdt', 'SDTDuration', SMWDataItem::TYPE_NUMBER, wfMsg('sdt-duration')); return true; }
/** * Adds support for the geographical coordinates and shapes data type to Semantic MediaWiki. * * @since sm.polygons * * @return true */ public static function initGeoDataTypes() { SMWDataValueFactory::registerDatatype('_geo', 'SMGeoCoordsValue', SMWDataItem::TYPE_GEO); SMWDataValueFactory::registerDatatype('_gpo', 'SMGeoPolygonsValue', SMWDataItem::TYPE_BLOB); return true; }
/** * Adds support for the geographical coordinate data type to Semantic MediaWiki. * * @since 1.0 * * TODO: i18n keys still need to be moved * * @return true */ public static function initGeoCoordsType() { SMWDataValueFactory::registerDatatype( '_geo', 'SMGeoCoordsValue', SMWDataItem::TYPE_GEO ); return true; }
function registerPropertyTypes() { SMWDataValueFactory::registerDatatype("_rur", "SWBResolvableUriValue", SMWDataItem::TYPE_URI, $label = false); return true; }
/** * Registeres SMW Halo Datatypes. Called from SMW. */ function smwfHaloInitDatatypes() { global $wgAutoloadClasses, $smwgHaloIP, $smwgHaloContLang; $wgAutoloadClasses['SMWChemicalFormulaTypeHandler'] = $smwgHaloIP . '/includes/SMW_DV_ChemFormula.php'; SMWDataValueFactory::registerDatatype('_chf', 'SMWChemicalFormulaTypeHandler', $smwgHaloContLang->getHaloDatatype('smw_hdt_chemical_formula')); $wgAutoloadClasses['SMWChemicalEquationTypeHandler'] = $smwgHaloIP . '/includes/SMW_DV_ChemEquation.php'; SMWDataValueFactory::registerDatatype('_che', 'SMWChemicalEquationTypeHandler', $smwgHaloContLang->getHaloDatatype('smw_hdt_chemical_equation')); $wgAutoloadClasses['SMWMathematicalEquationTypeHandler'] = $smwgHaloIP . '/includes/SMW_DV_MathEquation.php'; SMWDataValueFactory::registerDatatype('_meq', 'SMWMathematicalEquationTypeHandler', $smwgHaloContLang->getHaloDatatype('smw_hdt_mathematical_equation')); return true; }