Static Public Member Functions | |
| static | onSchemaUpdate ($updater=null) |
| Schema update to set up the needed database tables. | |
| static | onPageSchemasRegistration () |
| TODO. | |
| static | addToAdminLinks (ALTree &$admin_links_tree) |
| Adds links to Admin Links page. | |
| static | onArticleFromTitle (Title &$title, &$article) |
| Register special classes for displaying semantic content on Property and Concept pages. | |
| static | onParserFirstCallInit (Parser &$parser) |
| This hook registers parser functions and hooks to the given parser. | |
| static | addPoweredBySMW (&$text, $skin) |
| Adds the 'Powered by Semantic MediaWiki' button right next to the default 'Powered by MediaWiki' button at the bottom of every page. | |
| static | addSemanticExtensionType (array &$aExtensionTypes) |
| Adds the 'semantic' extension type to the type list. | |
| static | oldAddSemanticExtensionType (SpecialVersion &$oSpecialVersion, array &$aExtensionTypes) |
| static | onParserTestTables (array &$tables) |
| Register tables to be added to temporary tables for parser tests. | |
| static | showBrowseLink ($skintemplate) |
| Add a link to the toolbox to view the properties of the current page in Special:Browse. | |
Definition at line 14 of file SemanticMediaWiki.hooks.php.
| static SMWHooks::onSchemaUpdate | ( | $ | updater = null |
) | [static] |
Schema update to set up the needed database tables.
| DatabaseUpdater | $updater|null |
Definition at line 26 of file SemanticMediaWiki.hooks.php.
| static SMWHooks::onPageSchemasRegistration | ( | ) | [static] |
| static SMWHooks::addToAdminLinks | ( | ALTree &$ | admin_links_tree | ) | [static] |
Adds links to Admin Links page.
| ALTree | $admin_links_tree |
Definition at line 59 of file SemanticMediaWiki.hooks.php.
| static SMWHooks::onArticleFromTitle | ( | Title &$ | title, | |
| &$ | article | |||
| ) | [static] |
Register special classes for displaying semantic content on Property and Concept pages.
| $title | Title | |
| $article | Article or null |
Definition at line 109 of file SemanticMediaWiki.hooks.php.
| static SMWHooks::onParserFirstCallInit | ( | Parser &$ | parser | ) | [static] |
This hook registers parser functions and hooks to the given parser.
It is called during SMW initialisation. Note that parser hooks are something different than MW hooks in general, which explains the two-level registration.
| Parser | $parser |
Definition at line 130 of file SemanticMediaWiki.hooks.php.
| static SMWHooks::addPoweredBySMW | ( | &$ | text, | |
| $ | skin | |||
| ) | [static] |
Adds the 'Powered by Semantic MediaWiki' button right next to the default 'Powered by MediaWiki' button at the bottom of every page.
This works only with MediaWiki 1.17+. It might make sense to make this configurable via a variable, if some admins don't want it.
| string | $text | |
| Skin | $skin |
Definition at line 156 of file SemanticMediaWiki.hooks.php.
References $smwgScriptPath.
| static SMWHooks::addSemanticExtensionType | ( | array &$ | aExtensionTypes | ) | [static] |
Adds the 'semantic' extension type to the type list.
| $aExtensionTypes | Array |
Definition at line 173 of file SemanticMediaWiki.hooks.php.
| static SMWHooks::oldAddSemanticExtensionType | ( | SpecialVersion &$ | oSpecialVersion, | |
| array &$ | aExtensionTypes | |||
| ) | [static] |
| $oSpecialVersion | SpecialVersion | |
| $aExtensionTypes | Array |
Definition at line 188 of file SemanticMediaWiki.hooks.php.
| static SMWHooks::onParserTestTables | ( | array &$ | tables | ) | [static] |
Register tables to be added to temporary tables for parser tests.
| array | $tables |
Definition at line 204 of file SemanticMediaWiki.hooks.php.
| static SMWHooks::showBrowseLink | ( | $ | skintemplate | ) | [static] |
Add a link to the toolbox to view the properties of the current page in Special:Browse.
The links has the CSS id "t-smwbrowselink" so that it can be skinned or hidden with all standard mechanisms (also by individual users with custom CSS).
| $skintemplate |
Definition at line 228 of file SemanticMediaWiki.hooks.php.
References SMWInfolink::newBrowsingLink().
1.5.6