Manual:Hooks/wgQueryPages

Details
$wgQueryPages is an array of 2-element arrays. The first element of each array is the class name of the query page. The second element of each array is the name registered in your special page's constructor.