30 self::PARAM_SOURCE =>
'query',
31 ParamValidator::PARAM_TYPE =>
'string',
32 ParamValidator::PARAM_REQUIRED =>
false,
33 ParamValidator::PARAM_DEFAULT =>
null,
36 if ( $this->me ===
false ) {
38 self::PARAM_SOURCE =>
'path',
39 ParamValidator::PARAM_REQUIRED =>
true,
40 ParamValidator::PARAM_TYPE =>
'user',
41 UserDef::PARAM_RETURN_OBJECT =>
true,
42 UserDef::PARAM_ALLOWED_USER_TYPES => [
'name',
'ip' ],