}
$msg .= $this->makeHelpArrayToString( $lnPrfx, "Example", $this->getExamples() );
- $msg .= $this->makeHelpArrayToString( $lnPrfx, "Help page", $this->getHelpUrl() );
+ $msg .= $this->makeHelpArrayToString( $lnPrfx, "Help page", $this->getHelpUrls() );
if ( $this->getMain()->getShowVersions() ) {
$versions = $this->getVersion();
* @return string
*/
protected function makeHelpArrayToString( $prefix, $title, $input ) {
- if ( $input !== false ) {
+ if ( $input === false ) {
return '';
}
if ( !is_array( $input ) ) {
/**
* @return false|string|array Returns a false if the module has no help url, else returns a (array of) string
*/
- public function getHelpUrl() {
+ public function getHelpUrls() {
return false;
}
);
}
- public function getHelpUrl() {
+ public function getHelpUrls() {
return 'http://www.mediawiki.org/wiki/API:Login';
}
);
}
- public function getHelpUrl() {
+ public function getHelpUrls() {
return 'http://www.mediawiki.org/wiki/API:Logout';
}
$retval['classname'] = get_class( $obj );
$retval['description'] = implode( "\n", (array)$obj->getDescription() );
$retval['examples'] = implode( "\n", (array)$obj->getExamples() );
- $retval['helpurl'] = implode( "\n", (array)$obj->getHelpUrl() );
+ $retval['helpurl'] = implode( "\n", (array)$obj->getHelpUrls() );
$retval['version'] = implode( "\n", (array)$obj->getVersion() );
$retval['prefix'] = $obj->getModulePrefix();
);
}
- public function getHelpUrl() {
+ public function getHelpUrls() {
return 'http://www.mediawiki.org/wiki/API:Parameter_information';
}
);
}
- public function getHelpUrl() {
+ public function getHelpUrls() {
return array(
'http://www.mediawiki.org/wiki/API:Meta',
'http://www.mediawiki.org/wiki/API:Properties',