当前位置: 首页>>代码示例>>PHP>>正文


PHP StubManager::createStub方法代码示例

本文整理汇总了PHP中StubManager::createStub方法的典型用法代码示例。如果您正苦于以下问题:PHP StubManager::createStub方法的具体用法?PHP StubManager::createStub怎么用?PHP StubManager::createStub使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在StubManager的用法示例。


在下文中一共展示了StubManager::createStub方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

<?php

/**
 * @author Jean-Lou Dupont
 * @package PageRestrictions
 * @version @@package-version@@
 * @Id $Id$
*/
//<source lang=php>
if (class_exists('StubManager')) {
    $wgExtensionCredits['other'][] = array('name' => 'PageRestrictions', 'version' => '@@package-version@@', 'author' => 'Jean-Lou Dupont', 'description' => "Adds page level restrictions definitions & enforcement.", 'url' => 'http://mediawiki.org/wiki/Extension:PageRestrictions');
    StubManager::createStub('PageRestrictions', dirname(__FILE__) . '/PageRestrictions.body.php', null, array('ArticleViewHeader'), false, null, null, null);
    class PageRestrictionsSetup
    {
        static $msg = array();
        static $rList = array('read', 'raw', 'viewsource');
        public static function setup()
        {
            global $wgRestrictionTypes;
            foreach (self::$rList as $index => $rest) {
                $wgRestrictionTypes[] = $rest;
            }
            global $wgExtensionFunctions;
            $wgExtensionFunctions[] = create_function('', "return PageRestrictionsSetup::loadMessages();");
        }
        public static function loadMessages()
        {
            global $wgMessageCache;
            foreach (self::$msg as $key => $value) {
                $wgMessageCache->addMessages(self::$msg[$key], $key);
            }
开发者ID:clrh,项目名称:mediawiki,代码行数:31,代码来源:PageRestrictions.php

示例2: array

<?php

/**
 * @author Jean-Lou Dupont
 * @package SecureHTML
 * @version @@package-version@@
 * @Id $Id$
 */
//<source lang=php>*/
if (class_exists('StubManager')) {
    $wgExtensionCredits['other'][] = array('name' => 'SecureHTML', 'version' => '@@package-version@@', 'author' => 'Jean-Lou Dupont', 'description' => 'Enables secure HTML code on protected pages', 'url' => 'http://mediawiki.org/wiki/Extension:SecureHTML');
    StubManager::createStub('SecureHTML', dirname(__FILE__) . '/SecureHTML.body.php', null, array('ArticleSave', 'ArticleViewHeader'), false, null, array('html', 'shtml'), null, null);
} else {
    echo '[[Extension:SecureHTML]] requires [[Extension:StubManager]] and optionally [[Extension:ParserFunctionsHelper]].';
}
//</source>
开发者ID:clrh,项目名称:mediawiki,代码行数:16,代码来源:SecureHTML.php

示例3: array

<?php

/**
 * @author Jean-Lou Dupont
 * @package ViewsourceRight
 * @version $Id$
 */
//<source lang=php>*/
global $wgExtensionCredits;
$wgExtensionCredits['other'][] = array('name' => 'ViewsourceRight', 'version' => '1.1.0', 'author' => 'Jean-Lou Dupont', 'description' => "Enforces 'viewsource' right. Status: ", 'url' => 'http://mediawiki.org/wiki/Extension:ViewsourceRight');
StubManager::createStub('ViewsourceRight', dirname(__FILE__) . '/ViewsourceRight.body.php', null, array('SpecialVersionExtensionTypes', 'AlternateEdit', 'SkinTemplateTabs', 'clearSkinTabActions'), false, null, null, null);
//</source>
开发者ID:clrh,项目名称:mediawiki,代码行数:12,代码来源:ViewsourceRight.php

示例4: dirname

|update      =
|mediawiki   = tested on 1.10 but probably works with a earlier versions
|download    = [http://bizzwiki.googlecode.com/svn/trunk/BizzWiki/extensions/DocProc/ SVN]
|readme      =
|changelog   =
|description = 
|parameters  =
|rights      =
|example     =
}}
<!--@@
{{#autoredirect: Extension|{{#noext:{{SUBPAGENAME}} }} }}
== File Status ==
This section is only valid when viewing the page in a BizzWiki environment.
<code>(($#extractmtime|@@mtime@@$))  (($#extractfile|@@file@@$))</code>

Status: (($#comparemtime|<b>File system copy is newer - [{{fullurl:{{NAMESPACE}}:{{PAGENAME}}|action=reload}} Reload] </b>|Up to date$))
@@-->

== Purpose ==
This is the stub for the extension. This is the only file which should be listed in <code>LocalSettings.php</code>.

== History ==

== See Also ==
This extension is part of the [[Extension:BizzWiki|BizzWiki Platform]].

== Code ==
<!--</wikitext>--><source lang=php>*/
StubManager::createStub('DocProc', dirname(__FILE__) . '/DocProc.php', null, null, false, array('docproc'), null, null);
//</source>
开发者ID:mediawiki-extensions,项目名称:bizzwiki,代码行数:31,代码来源:DocProc_stub.php

示例5: array

<?php

/**
 * @author Jean-Lou Dupont
 * @package UserLoginLogoutLog
 * @version $Id$
 */
//<source lang=php>*/
global $wgExtensionCredits;
$wgExtensionCredits['other'][] = array('name' => 'UserLoginLogoutLog', 'version' => '1.0.0', 'author' => 'Jean-Lou Dupont', 'description' => 'Provides logging of user login/logout activities.', 'url' => 'http://mediawiki.org/wiki/Extension:UserLoginLogoutLog');
StubManager::createStub('UserLoginLogoutLog', dirname(__FILE__) . '/UserLoginLogoutLog.body.php', dirname(__FILE__) . '/UserLoginLogoutLog.i18n.php', array('UserLoginForm', 'UserLoginComplete', 'UserLogout', 'UserLogoutComplete', 'SpecialVersionExtensionTypes'), true);
//</source>
开发者ID:clrh,项目名称:mediawiki,代码行数:12,代码来源:UserLoginLogoutLog.php

示例6: array

<?php

/**
 * @author Jean-Lou Dupont
 * @package RawPageTools
 * @version @@package-version@@
 * @Id $Id$
 */
//<source lang=php>
if (class_exists('StubManager')) {
    $wgExtensionCredits['other'][] = array('name' => 'RawPageTools', 'version' => '@@package-version@@', 'author' => 'Jean-Lou Dupont', 'description' => 'Provides removal of `js` and `css` tag sections for raw page functionality');
    StubManager::createStub('RawPageTools', dirname(__FILE__) . '/RawPageTools.body.php', null, array('RawPageViewBeforeOutput'), false);
} else {
    echo '[[Extension:RawPageTools]] requires [[Extension:StubManager]]';
}
//</source>
开发者ID:clrh,项目名称:mediawiki,代码行数:16,代码来源:RawPageTools.php

示例7: array

<?php

/**
 * @author Jean-Lou Dupont
 * @package RawRight
 */
//<source lang=php>*/
$wgExtensionCredits['other'][] = array('name' => 'RawRight', 'version' => StubManager::getRevisionId('$Id$'), 'author' => 'Jean-Lou Dupont', 'description' => "Status: ", 'url' => 'http://mediawiki.org/wiki/Extension:RawRight');
StubManager::createStub('RawRight', dirname(__FILE__) . '/RawRight.body.php', null, array('SpecialVersionExtensionTypes', 'RawPageViewBeforeOutput'), false, null, null, null);
//</source>
开发者ID:clrh,项目名称:mediawiki,代码行数:10,代码来源:RawRight.php

示例8: array

<?php

/**
 * @author Jean-Lou Dupont
 * @category ParserFunctions
 * @package ParserPhase2
 * @version $Id$
 */
//<source lang=php>*/
$wgExtensionCredits['other'][] = array('name' => 'ParserPhase2', 'version' => '@@package-version@@', 'author' => 'Jean-Lou Dupont', 'description' => "Enables performing a 'second pass' parsing over an already cached page for replacing dynamic variables", 'url' => 'http://mediawiki.org/wiki/Extension:ParserPhase2');
StubManager::createStub('ParserPhase2', dirname(__FILE__) . '/ParserPhase2.body.php', null, array('OutputPageBeforeHTML', 'ParserAfterTidy', 'ParserBeforeStrip'), false, null, null, null);
//</source>
开发者ID:clrh,项目名称:mediawiki,代码行数:12,代码来源:ParserPhase2.php

示例9: array

<?php

/**
 * @author Jean-Lou Dupont
 * @package ParserExt
 * @subpackage ForeachFunction
 * @version @@package-version@@
 * @Id $Id$
 */
//<source lang=php>
global $wgExtensionCredits;
$wgExtensionCredits['other'][] = array('name' => 'ForeachFunction', 'version' => '1.0.0', 'author' => 'Jean-Lou Dupont', 'description' => 'Looping functions for global objects using parser functions', 'url' => 'http://mediawiki.org/wiki/Extension:ForeachFunction');
StubManager::createStub('ForeachFunction', dirname(__FILE__) . '/ForeachFunction.body.php', null, null, false, null, array('foreachx', 'foreachy', 'forx', 'foreachc'), null);
//</source>
开发者ID:clrh,项目名称:mediawiki,代码行数:14,代码来源:ForeachFunction.php

示例10: dirname

|update      =
|mediawiki   = tested on 1.10 but probably works with a earlier versions
|download    = [http://bizzwiki.googlecode.com/svn/trunk/BizzWiki/extensions/ScriptingTools/ SVN]
|readme      =
|changelog   =
|description = 
|parameters  =
|rights      =
|example     =
}}
<!--@@
{{#autoredirect: Extension|{{#noext:{{SUBPAGENAME}} }} }}
== File Status ==
This section is only valid when viewing the page in a BizzWiki environment.
<code>(($#extractmtime|@@mtime@@$))  (($#extractfile|@@file@@$))</code>

Status: (($#comparemtime|<b>File system copy is newer - [{{fullurl:{{NAMESPACE}}:{{PAGENAME}}|action=reload}} Reload] </b>|Up to date$))
@@-->

== Purpose ==
This is the stub for the extension. This is the only file which should be listed in <code>LocalSettings.php</code>.

== History ==

== See Also ==
This extension is part of the [[Extension:BizzWiki|BizzWiki Platform]].

== Code ==
<!--</wikitext>--><source lang=php>*/
StubManager::createStub('ScriptingTools', dirname(__FILE__) . '/ScriptingTools.php', null, array('ArticleSave', 'ParserAfterTidy'), false, null, array('epropset', 'epropset2'), null);
//</source>
开发者ID:clrh,项目名称:mediawiki,代码行数:31,代码来源:ScriptingTools_stub.php

示例11: array

<?php

/**
 * @author Jean-Lou Dupont
 * @package WatchRight
 */
//<source lang=php>*/
global $wgExtensionCredits;
$wgExtensionCredits['other'][] = array('name' => 'WatchRight', 'version' => '1.0.0', 'author' => 'Jean-Lou Dupont', 'description' => "Enforces 'watch/unwatch' rights", 'url' => 'http://mediawiki.org/wiki/Extension:WatchRight');
StubManager::createStub('WatchRight', dirname(__FILE__) . '/WatchRight.body.php', null, array('WatchArticle', 'UnwatchArticle', 'SkinTemplateTabs'), false, null, null, null);
//</source>
开发者ID:clrh,项目名称:mediawiki,代码行数:11,代码来源:WatchRight.php

示例12: array

<?php

/**
 * @author Jean-Lou Dupont
 * @package ParserExt
 * @subpackage MiscParserFunctions
 * @version @@package-version@@
 * @Id $Id$
 */
//<source lang=php>
global $wgExtensionCredits;
$wgExtensionCredits['other'][] = array('name' => 'MiscParserFunctions', 'version' => '1.0.0', 'author' => 'Jean-Lou Dupont', 'description' => 'Miscellaneous parser functionality', 'url' => 'http://mediawiki.org/wiki/Extension:MiscParserFunctions');
StubManager::createStub('MiscParserFunctions', dirname(__FILE__) . '/MiscParserFunctions.body.php', null, null, false, null, array('trim', 'nowikitext', 'gettagsection'), null);
//</source>
开发者ID:clrh,项目名称:mediawiki,代码行数:14,代码来源:MiscParserFunctions.php

示例13: array

<?php

/**
 * @author Jean-Lou Dupont
 * @package ImageLink
 * @version @@package-version@@
 * @Id $Id$
 */
//<source lang=php>
$wgExtensionCredits['other'][] = array('name' => 'ImageLink', 'version' => '@@package-version@@', 'author' => 'Jean-Lou Dupont', 'description' => 'Provides a clickable image link', 'url' => 'http://mediawiki.org/wiki/Extension:ImageLink');
if (!class_exists('StubManager') || version_compare(StubManager::version(), '1.2.0', '<')) {
    echo '[[Extension:ImageLink]] requires [[Extension:StubManager]] version >= 1.2.0';
} else {
    StubManager::createStub('ImageLink', dirname(__FILE__) . '/ImageLink.body.php', null, null, false, null, array('imagelink', 'imagelink_raw', 'img', 'iconlink'), null);
}
//</source>
开发者ID:clrh,项目名称:mediawiki,代码行数:16,代码来源:ImageLink.php

示例14: array

<?php

/**
	@author Jean-Lou Dupont
	@package SecureProperties
*/
//<source lang=php>
global $wgExtensionCredits;
$wgExtensionCredits['other'][] = array('name' => 'SecureProperties', 'version' => '1.0.0', 'author' => 'Jean-Lou Dupont', 'description' => 'Enables global object property get/set on protected pages', 'url' => 'http://mediawiki.org/wiki/Extension:SecureProperties');
StubManager::createStub('SecureProperties', dirname(__FILE__) . '/SecureProperties.body.php', null, null, false, null, array('pg', 'ps', 'pf', 'gg', 'gs', 'cg', 'cs'), null, null);
//</source>
开发者ID:clrh,项目名称:mediawiki,代码行数:11,代码来源:SecureProperties.php

示例15: array

<?php

/**
 * @author Jean-Lou Dupont
 * @package ShowRedirectPageText
 * @version @@package-version@@
 * @Id $Id$
 */
//<source lang=php>*/
if (class_exists('StubManager')) {
    $wgExtensionCredits['other'][] = array('name' => 'ShowRedirectPageText', 'version' => '@@package-version@@', 'author' => 'Jean-Lou Dupont', 'description' => 'Provides viewing a wikitext included in a redirect page', 'url' => 'http://mediawiki.org/wiki/Extension:ShowRedirectPageText');
    StubManager::createStub('ShowRedirectPageText', dirname(__FILE__) . '/ShowRedirectPageText.body.php', null, array('ArticleViewHeader', 'OutputPageParserOutput'), false, null, null, null);
} else {
    echo '[[Extension:ShowRedirectPageText]] requires [[Extension:StubManager]]';
}
//</source>
开发者ID:clrh,项目名称:mediawiki,代码行数:16,代码来源:ShowRedirectPageText.php


注:本文中的StubManager::createStub方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。