Manual talk:Wikibot
Add topicAppearance
Latest comment: 12 years ago by Leucosticte in topic Xkcd 927
I wonder if there is an easy way to make the functionality extensible? I tried the following in each of the major classes:
function __construct ( $myApiurl, $myQueryurl, $myIndexurl, $bot = '', $wiki = '', $fromFile = false ) {
global $apiFunctionFile;
if ( isset( $apiFunctionFile ) ) {
foreach ( $apiFunctionFile as $item ) {
require_once( $item );
}
}
Then as a global, I used:
$apiFunctionFile[]='rpedapifunctions.php';
However, it didn't include the functions in that file as member functions of that class. Does anyone know a way to do this? My hope is that a library of function files can be created and selectively included, rather than having one big wikibot.classes.php. Thanks, Tisane 16:18, 30 May 2010 (UTC)
Xkcd 927
[edit]Peachy definitely ended up being a case of xkcd 927. Leucosticte (talk) 02:51, 28 November 2012 (UTC)