42 parent::__construct(
$sink );
62 if ( $param[0] ==
'!' ) {
64 $param = substr( $param, 1 );
67 foreach ( explode(
',', $param ) as $key ) {
69 if ( isset( $constants[$key] ) ) {
70 $ns = $constants[$key];
71 $this->namespaces[$ns] =
true;
72 } elseif ( is_numeric( $key ) ) {
74 $this->namespaces[$ns] =
true;
76 throw new MWException(
"Unrecognized namespace key '$key'\n" );
85 protected function pass( $page ) {
86 $match = isset( $this->namespaces[$page->page_namespace] );
87 return $this->invert xor $match;
DumpOutput $sink
FIXME will need to be made protected whenever legacy code is updated.
__construct(&$sink, $param)