本文整理匯總了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>