Manual talk:Wikibot
From MediaWiki.org
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)