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


PHP StubManager::createStub2方法代码示例

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


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

示例1: dirname

<?php

/**
 * @author Jean-Lou Dupont
 * @package GroupManager
 * @version $Id$
 */
//<source lang=php>
if (class_exists('StubManager')) {
    StubManager::createStub2(array('class' => 'GroupManager', 'classfilename' => dirname(__FILE__) . '/GroupManager.body.php', 'hooks' => array('SpecialVersionExtensionTypes', 'UserEffectiveGroups'), 'mgs' => array('wggroup')));
    global $wgExtensionCredits;
    $wgExtensionCredits['other'][] = array('name' => 'GroupManager', 'version' => '1.0.2', 'author' => 'Jean-Lou Dupont', 'url' => 'http://www.mediawiki.org/wiki/Extension:GroupManager', 'description' => "Provides group definition management.");
} else {
    echo 'Extension:GroupManager <b>requires</b> [[Extension:StubManager]]' . "\n";
}
//</source>
开发者ID:clrh,项目名称:mediawiki,代码行数:16,代码来源:GroupManager.php

示例2: array

<?php

/**
 * @author Jean-Lou Dupont
 * @package SecureTransclusion
 * @version @@package-version@@
 * @Id $Id$
 */
//<source lang=php>
if (!class_exists('StubManager')) {
    echo '[[Extension:SecureTransclusion]] <b>requires</b> [[Extension:StubManager]]' . "\n";
} else {
    $wgExtensionCredits['other'][] = array('name' => 'SecureTransclusion', 'version' => '@@package-version@@', 'author' => 'Jean-Lou Dupont', 'url' => 'http://www.mediawiki.org/wiki/Extension:SecureTransclusion', 'description' => "Provides secure interwiki transclusion.");
    StubManager::createStub2(array('class' => 'SecureTransclusion', 'classfilename' => dirname(__FILE__) . '/SecureTransclusion.body.php', 'mgs' => array('strans')));
}
//</source>
开发者ID:clrh,项目名称:mediawiki,代码行数:16,代码来源:SecureTransclusion.php

示例3: array

<?php

/**
 * @author Jean-Lou Dupont
 * @package JSKitNavigator
 * @version @@package-version@@
 * @Id $Id$
 */
//<source lang=php>
if (!class_exists('StubManager')) {
    echo '[[Extension:JSKitNavigator]] <b>requires</b> [[Extension:StubManager]] version >= 1.1.0' . "\n";
} else {
    $wgExtensionCredits['other'][] = array('name' => 'JSKitNavigator', 'version' => '@@package-version@@', 'author' => 'Jean-Lou Dupont', 'url' => 'http://www.mediawiki.org/wiki/Extension:JSKitNavigator', 'description' => "Provides integration with JSKit Navigator tool.");
    StubManager::createStub2(array('class' => 'JSKitNavigator', 'classfilename' => dirname(__FILE__) . '/JSKitNavigator.body.php', 'mgs' => array('jskitnavigator')));
}
//</source>
开发者ID:clrh,项目名称:mediawiki,代码行数:16,代码来源:JSKitNavigator.php

示例4: elseif

<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' file for the [[Extension:rsync]] extension.

== History ==

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

== Code ==
<!--</wikitext>--><source lang=php>*/
if (!class_exists('StubManager')) {
    echo 'Extension:rsync <b>requires</b> Extension:StubManager';
} elseif (!method_exists('StubManager', 'getVersion')) {
    echo "Extension:rsync <b>requires</b> Extension:StubManager of version > 757.\n";
    echo "This warning could also be the result of an unsupported PHP version (requires at least PHP v5.1.x).";
} elseif (!StubManager::isExtensionRegistered('Backup')) {
    echo 'Extension:rsync <b>requires</b> Extension:Backup';
} else {
    StubManager::createStub2(array('class' => 'rsync', 'classfilename' => $bwExtPath . '/rsync/rsync.php', 'hooks' => array('Backup')));
    if (defined('NS_FILESYSTEM')) {
        StubManager::configureExtension('rsync', 'enss', array(NS_FILESYSTEM));
    }
    if (defined('NS_DIRECTORY')) {
        StubManager::configureExtension('rsync', 'enss', NS_DIRECTORY);
    }
}
//</source>
开发者ID:mediawiki-extensions,项目名称:bizzwiki,代码行数:31,代码来源:rsync..php

示例5: dirname

<?php

/**
 * @author Jean-Lou Dupont
 * @package HNP
 */
//<source lang=php>
#require 'HNP.i18n.php';
global $IP;
require_once $IP . '/includes/ObjectCache.php';
require_once $IP . '/includes/BagOStuff.php';
if (class_exists('StubManager')) {
    StubManager::createStub2(array('class' => 'HNP', 'classfilename' => dirname(__FILE__) . '/HNP.body.php', 'hooks' => array('userCan', 'UserIsAllowed', 'ArticleSave', 'SpecialVersionExtensionTypes', 'EditFormPreloadText'), 'mgs' => array('hnp', 'hnp_r', 'hnp_h')));
    global $wgExtensionCredits;
    $wgExtensionCredits['other'][] = array('name' => 'HNP', 'version' => '1.0.1', 'author' => 'Jean-Lou Dupont', 'url' => 'http://www.mediawiki.org/wiki/Extension:HierarchicalNamespacePermissions2', 'description' => "Provides enhancements to the permission management sub-system.");
} else {
    echo 'Extension:HNP <b>requires</b> [[Extension:StubManager]]' . "\n";
}
//</source>
开发者ID:Jobava,项目名称:diacritice-meta-repo,代码行数:19,代码来源:HNP.php

示例6: array

<?php

/**
 * @author Jean-Lou Dupont
 * @package ProgressBar
 * @version @@package-version@@
 * @Id $Id$
 */
//<source lang=php>
if (!class_exists('StubManager')) {
    echo '[[Extension:ProgressBar]] <b>requires</b> [[Extension:StubManager]] version >= 1.1.0' . "\n";
} else {
    $wgExtensionCredits['other'][] = array('name' => 'ProgressBar', 'version' => '@@package-version@@', 'author' => 'Jean-Lou Dupont', 'url' => 'http://www.mediawiki.org/wiki/Extension:ProgressBar', 'description' => "Provides customizable progress bars.");
    StubManager::createStub2(array('class' => 'ProgressBar', 'classfilename' => dirname(__FILE__) . '/ProgressBar.body.php', 'mgs' => array('progressbar')));
}
//</source>
开发者ID:clrh,项目名称:mediawiki,代码行数:16,代码来源:ProgressBar.php

示例7: dirname

<?php

/**
 * @author Jean-Lou Dupont
 * @package TagToTemplate
 * @version @@package-version@@
 * @Id $Id$ 
 */
// <source lang=php>
if (class_exists('StubManager')) {
    StubManager::createStub2(array('class' => 'TagToTemplate', 'classfilename' => dirname(__FILE__) . '/TagToTemplate.body.php', 'hooks' => array('ParserBeforeStrip')));
    global $wgExtensionCredits;
    $wgExtensionCredits['hook'][] = array('name' => 'TagToTemplate', 'version' => '@@package-version@@', 'author' => 'Jean-Lou Dupont', 'url' => 'http://www.mediawiki.org/wiki/Extension:TagToTemplate', 'description' => "Provides tag markup substitution for a configured template.");
} else {
    echo 'Extension:TagToTemplate <b>requires</b> [[Extension:StubManager]]' . "\n";
}
//</source>
开发者ID:clrh,项目名称:mediawiki,代码行数:17,代码来源:TagToTemplate.php

示例8: array

<?php

/**
 * @author Jean-Lou Dupont
 * @package ParserExt
 * @subpackage ParserTools
 * @version @@package-version@@
 * @Id $Id$
 */
//<source lang=php>*/
global $wgExtensionCredits;
$wgExtensionCredits['other'][] = array('name' => 'ParserTools', 'version' => '1.1.0', 'author' => 'Jean-Lou Dupont', 'description' => 'Parser cache enabling/disabling through <noparsercaching/> tag', 'url' => 'http://mediawiki.org/wiki/Extension:ParserTools');
StubManager::createStub2(array('class' => 'ParserTools', 'classfilename' => dirname(__FILE__) . '/ParserTools.body.php', 'mgs' => array('parsercacheexpire'), 'tags' => array('noparsercaching')));
//</source>
开发者ID:clrh,项目名称:mediawiki,代码行数:14,代码来源:ParserTools.php

示例9: array

<?php

/**
 * @author Jean-Lou Dupont
 * @package FlowProcessor
 * @category Flow
 * @version 1.3.0
 * @Id $Id: FlowProcessor.php 968 2008-04-04 18:37:38Z jeanlou.dupont $
 */
//<source lang=php>
if (!class_exists('StubManager') || version_compare(StubManager::version(), '1.3.0', '<')) {
    echo '[[Extension:FlowProcessor]] requires [[Extension:StubManager]] version >= 1.3.0';
} else {
    $wgExtensionCredits['other'][] = array('name' => 'FlowProcessor', 'version' => '1.3.0', 'author' => 'Jean-Lou Dupont', 'description' => 'Provides an MVC-like flow processing framework. ', 'url' => 'http://mediawiki.org/wiki/Extension:FlowProcessor');
    StubManager::createStub2(array('class' => 'FlowProcessor', 'classfilename' => dirname(__FILE__) . '/FlowProcessor.body.php', 'hooks' => array('SpecialPage_initList', 'SpecialVersionExtensionTypes')));
}
//</source>
开发者ID:joebo,项目名称:dreamfish,代码行数:17,代码来源:FlowProcessor.php

示例10: array

<?php

/**
 * @author Jean-Lou Dupont
 * @package UserAccountManager
 * @version $Id$
 */
//<source lang=php>
$wgExtensionCredits['other'][] = array('name' => 'UserAccountManager', 'version' => '1.0.0', 'author' => 'Jean-Lou Dupont', 'description' => "Manages User Account creation", 'url' => 'http://mediawiki.org/wiki/Extension:UserAccountManager');
StubManager::createStub2(array('class' => 'UserAccountManager', 'classfilename' => dirname(__FILE__) . '/UserAccountManager.body.php', 'hooks' => array('AddNewAccount', 'UserSettingsChanged')));
//</source>
开发者ID:clrh,项目名称:mediawiki,代码行数:11,代码来源:UserAccountManager.php

示例11: array

<?php

/**
 * @author Jean-Lou Dupont
 * @package JSKitRating
 * @version @@package-version@@
 * @Id $Id$
 */
//<source lang=php>
if (!class_exists('StubManager')) {
    echo '[[Extension:JSKitRating]] <b>requires</b> [[Extension:StubManager]] version >= 1.1.0' . "\n";
} else {
    $wgExtensionCredits['other'][] = array('name' => 'JSKitRating', 'version' => '@@package-version@@', 'author' => 'Jean-Lou Dupont', 'url' => 'http://www.mediawiki.org/wiki/Extension:JSKitRating', 'description' => "Provides integration with JSKit Rating tool.");
    StubManager::createStub2(array('class' => 'JSKitRating', 'classfilename' => dirname(__FILE__) . '/JSKitRating.body.php', 'mgs' => array('jskitrating')));
}
//</source>
开发者ID:clrh,项目名称:mediawiki,代码行数:16,代码来源:JSKitRating.php

示例12: array

<?php

/**
 * @author Jean-Lou Dupont
 * @package SidebarEx	
 * @version $Id$
 */
//<source lang=php>
if (!class_exists('StubManager')) {
    echo '[[Extension:SidebarEx]] <b>requires</b> [[Extension:StubManager]]' . "\n";
} else {
    global $wgExtensionCredits;
    $wgExtensionCredits['other'][] = array('name' => 'SidebarEx', 'version' => '@@package-version@@', 'author' => 'Jean-Lou Dupont', 'url' => 'http://www.mediawiki.org/wiki/Extension:SidebarEx', 'description' => "Provides customizable sidebars.");
    StubManager::createStub2(array('class' => 'SidebarEx', 'classfilename' => dirname(__FILE__) . '/SidebarEx.body.php', 'hooks' => array('SkinTemplateOutputPageBeforeExec')));
}
// </source>
开发者ID:clrh,项目名称:mediawiki,代码行数:16,代码来源:SidebarEx.php

示例13: dirname

<?php

/*
<!--<wikitext>-->
 <file>
  <name>Etag.php</name>
  <version>$Id$</version>
  <package>Extension.Etag</package>
 </file>
<!--</wikitext>-->
*/
// <source lang=php>
if (class_exists('StubManager')) {
    StubManager::createStub2(array('class' => 'Etag', 'classfilename' => dirname(__FILE__) . '/Etag.body.php', 'tags' => array('etag')));
    $wgExtensionCredits['parser'][] = array('name' => 'Etag', 'version' => StubManager::getRevisionId('$Id$'), 'author' => 'Jean-Lou Dupont', 'url' => 'http://www.mediawiki.org/wiki/Extension:Backup', 'description' => "Supports the <etag> tag.");
} else {
    echo 'Extension:Etag <b>requires</b> [[Extension:StubManager]]';
}
//</source>
开发者ID:mediawiki-extensions,项目名称:bizzwiki,代码行数:19,代码来源:Etag.php

示例14: dirname

<?php

/**
 * @author Jean-Lou Dupont
 * @package PageTrail
 * @version @@package-version@@
 * @Id $Id$
 */
//<source lang=php>
if (class_exists('StubManager')) {
    StubManager::createStub2(array('class' => 'PageTrail', 'classfilename' => dirname(__FILE__) . '/PageTrail.body.php', 'hooks' => array('BeforePageDisplay', 'SiteNoticeAfter', 'UserToggles')));
    global $wgExtensionCredits;
    $wgExtensionCredits['other'][] = array('name' => 'PageTrail', 'version' => '@@package-version@@', 'author' => 'Jean-Lou Dupont', 'url' => 'http://www.mediawiki.org/wiki/Extension:PageTrail', 'description' => "Provides a page trail (aka parser-cache friendly 'breadcrumbs')");
} else {
    echo 'Extension:PageTrail <b>requires</b> [[Extension:StubManager]]' . "\n";
}
//</source>
开发者ID:clrh,项目名称:mediawiki,代码行数:17,代码来源:PageTrail.php

示例15: array

<?php

/**
 * @author Jean-Lou Dupont
 * @package ManageNamespaces
 * @version @@package-version@@
 * @Id $Id$
 */
// <source lang=php>
if (class_exists('StubManager')) {
    $wgExtensionCredits['other'][] = array('name' => 'ManageNamespaces', 'version' => '@@package-version@@', 'author' => 'Jean-Lou Dupont', 'url' => 'http://www.mediawiki.org/wiki/Extension:ManageNamespaces', 'description' => "Provides a special page to add/remove namespaces. ");
    StubManager::createStub2(array('class' => 'ManageNamespaces', 'classfilename' => dirname(__FILE__) . '/ManageNamespaces.body.php', 'i18nfilename' => dirname(__FILE__) . '/ManageNamespaces.i18n.php', 'logging' => true, 'hooks' => array('ParserAfterTidy'), 'nss' => array(NS_MEDIAWIKI), 'mgs' => array('mns')));
} else {
    echo "Extension:ManageNamespaces <b>requires</b> Extension:StubManager\n";
}
global $wgCanonicalNamespaceNames;
global $wgExtraNamespaces;
global $wgNamespacesWithSubpages;
global $bwManagedNamespaces;
global $bwManagedNamespacesDefines;
// Now include the managed namespaces in question
include dirname(__FILE__) . '/ManageNamespaces.namespaces.php';
// Is the Namespace class defined yet?
if (!class_exists('Namespace') && !empty($bwManagedNamespaces)) {
    require $IP . '/includes/Namespace.php';
}
// Go through all the managed namespaces
if (!empty($bwManagedNamespaces)) {
    foreach ($bwManagedNamespaces as $index => $name) {
        // add the managed namespaces to the primary tables
        $wgCanonicalNamespaceNames[$index] = $name;
开发者ID:clrh,项目名称:mediawiki,代码行数:31,代码来源:ManageNamespaces.php


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