41 parent::__construct(
$sink );
61 if ( $param[0] ==
'!' ) {
63 $param = substr( $param, 1 );
66 foreach ( explode(
',', $param ) as $key ) {
68 if ( isset( $constants[$key] ) ) {
69 $ns = $constants[$key];
70 $this->namespaces[$ns] =
true;
71 } elseif ( is_numeric( $key ) ) {
73 $this->namespaces[$ns] =
true;
75 throw new InvalidArgumentException(
"Unrecognized namespace key '$key'\n" );
84 protected function pass( $page ) {
85 $match = isset( $this->namespaces[$page->page_namespace] );
86 return $this->invert xor $match;
DumpOutput $sink
FIXME will need to be made protected whenever legacy code is updated.
__construct(&$sink, $param)