コード例 #1
0
	public function __construct( $query, $moduleName, $prefix = 'vi' ) {
		// We allow a subclass to override the prefix, to create a related API module.
		// Some other parts of MediaWiki construct this with a null $prefix, which used to be ignored when this only took two arguments
		if ( is_null( $prefix ) ) {
			$prefix = 'vi';
		}
		parent::__construct( $query, $moduleName, $prefix );
	}
コード例 #2
0
 public function __construct(ApiQuery $query, $moduleName)
 {
     parent::__construct($query, $moduleName, 'sii');
 }