<?php /** * @author Jean-Lou Dupont * @package MetaTags * @version @@package-version@@ * @Id $Id$ */ //<source lang=php> if (!class_exists('StubManager') || version_compare(StubManager::version(), '1.3.0', '<')) { echo "<a href='http://mediawiki.org/wiki/Extension:MetaTags'/> <b>requires</b> <a href='http://mediawiki.org/wiki/Extension:StubManager'/> of version >= 1.3.0"; } else { $wgExtensionCredits['other'][] = array('name' => 'MetaTags', 'version' => '@@package-version@@', 'author' => 'Jean-Lou Dupont', 'url' => 'http://www.mediawiki.org/wiki/Extension:MetaTags', 'description' => "Provides META and LINK tags to HEAD whilst integrating with parser caching."); StubManager::createStub2(array('class' => 'MetaTags', 'classfilename' => dirname(__FILE__) . '/MetaTags.body.php', 'mgs' => array('meta', 'link'))); // only available since StubManager v1.3.0 StubManager::registerState('MetaTags', StubManager::STATE_OK); } //</source>
public function hSpecialVersionExtensionTypes(&$sp, &$extensionTypes) { global $wgExtensionCredits; // Parser Caching in place? $result = "Parser Caching is "; $state = $this->verifyParserCache() ? StubManager::STATE_OK : StubManager::STATE_ATTENTION; $result .= $state == StubManager::STATE_OK ? "available." : "<b>not available</b>."; StubManager::registerState(__CLASS__, $state); foreach ($wgExtensionCredits[self::thisType] as $index => &$el) { if (isset($el['name'])) { if ($el['name'] == self::thisName) { $el['description'] .= $result . '<br/>'; } } } return true; // continue hook-chain. }
<?php /** * @author Jean-Lou Dupont * @package PageServer * @category ExtensionServices * @version @@package-version@@ * @Id $Id: SmartyAdaptor.php 922 2008-01-15 19:41:09Z jeanlou.dupont $ */ //<source lang=php> if (!class_exists('StubManager') || version_compare(StubManager::version(), '1.3.0', '<')) { echo "<a href='http://mediawiki.org/wiki/Extension:PageServer'/> <b>requires</b> <a href='http://mediawiki.org/wiki/Extension:StubManager'/> of version >= 1.3.0"; } else { $wgExtensionCredits['other'][] = array('name' => 'PageServer', 'version' => '@@package-version@@', 'author' => 'Jean-Lou Dupont', 'description' => "Provides functionality to load & parse wiki pages stored in the filesystem.", 'url' => 'http://mediawiki.org/wiki/Extension:PageServer'); $wgAutoloadClasses['PageServer_Remote'] = dirname(__FILE__) . '/PageServer.remote.php'; StubManager::createStub2(array('class' => 'PageServer', 'classfilename' => dirname(__FILE__) . '/PageServer.body.php', 'mgs' => array('mwmsg', 'mwmsgx', 'load_page'), 'hooks' => array('page_server', 'page_remote', 'SpecialVersionExtensionTypes'))); // Required PEAR class @(include_once "HTTP/Request.php"); // only available since StubManager v1.3.0 $state = class_exists('HTTP_Request') ? StubManager::STATE_OK : StubManager::STATE_ATTENTION; StubManager::registerState('PageServer', $state); } //</source>