本文整理汇总了PHP中StubManager::configureExtension方法的典型用法代码示例。如果您正苦于以下问题:PHP StubManager::configureExtension方法的具体用法?PHP StubManager::configureExtension怎么用?PHP StubManager::configureExtension使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类StubManager
的用法示例。
在下文中一共展示了StubManager::configureExtension方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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>