'registration',
'emailable',
'gender',
+ 'centralids',
);
public function __construct( ApiQuery $query, $moduleName ) {
$data[$name]['gender'] = $gender;
}
+ if ( isset( $this->prop['centralids'] ) ) {
+ $data[$name] += ApiQueryUserInfo::getCentralUserInfo(
+ $this->getConfig(), $user, $params['attachedwiki']
+ );
+ }
+
if ( !is_null( $params['token'] ) ) {
$tokenFunctions = $this->getTokenFunctions();
foreach ( $params['token'] as $t ) {
public function getAllowedParams() {
return array(
'prop' => array(
- ApiBase::PARAM_DFLT => null,
ApiBase::PARAM_ISMULTI => true,
ApiBase::PARAM_TYPE => array(
'blockinfo',
'registration',
'emailable',
'gender',
+ 'centralids',
),
ApiBase::PARAM_HELP_MSG_PER_VALUE => array(),
),
+ 'attachedwiki' => null,
'users' => array(
+ ApiBase::PARAM_TYPE => 'user',
ApiBase::PARAM_ISMULTI => true
),
'token' => array(