* @var bool
*/
var $listoutput = false;
+
+ /**
+ * The offset and limit in use, as passed to the query() function
+ *
+ * @var integer
+ */
+ var $offset = 0;
+ var $limit = 0;
/**
* A mutator for $this->listoutput;
function doQuery( $offset, $limit, $shownavigation=true ) {
global $wgUser, $wgOut, $wgLang, $wgContLang;
+ $this->offset = $offset;
+ $this->limit = $limit;
+
$sname = $this->getName();
$fname = get_class($this) . '::doQuery';
$sql = $this->getSQL();
}
return parent::feedItemDesc( $row );
}
+
+ /**
+ * Show a namespace selection form for filtering
+ *
+ * @return string
+ */
+ function getPageHeader() {
+ $thisTitle = Title::makeTitle( NS_SPECIAL, $this->getName() );
+ $form = wfElement( 'form', array( 'method' => 'post', 'action' => $thisTitle->escapeLocalUrl() ), NULL );
+ $form .= wfElement( 'label', array( 'for' => 'namespace' ), wfMsgHtml( 'namespace' ) ) . ' ';
+ $form .= HtmlNamespaceSelector( $this->namespace );
+ # Preserve the offset and limit
+ $form .= wfElement( 'input', array( 'type' => 'hidden', 'name' => 'offset', 'value' => $this->offset ), '' );
+ $form .= wfElement( 'input', array( 'type' => 'hidden', 'name' => 'limit', 'value' => $this->limit ), '' );
+ $form .= wfElement( 'input', array( 'type' => 'submit', 'name' => 'submit', 'id' => 'submit', 'value' => wfMsgHtml( 'allpagessubmit' ) ), '' );
+ $form .= wfCloseElement( 'form' );
+ return( $form );
+ }
+
+ /**
+ * Link parameters
+ *
+ * @return array
+ */
+ function linkParameters() {
+ return( array( 'namespace' => $this->namespace ) );
+ }
+
}
/**
}
}
}
+ } else {
+ if( $ns = $wgRequest->getVal( 'namespace', 0 ) )
+ $namespace = $ns;
}
+
if ( ! isset( $shownavigation ) )
$shownavigation = ! $specialPage->including();