/**
* Do any necessary preprocessing of the result object.
- * You should pass this by reference: &$db , &$res [although probably no longer necessary in PHP5]
*/
- function preprocessResults( &$db, &$res ) {}
+ function preprocessResults( $db, $res ) {}
/**
* Similar to above, but packaging in a syndicated feed instead of a web page
/**
* Pre-fill the link cache
*/
- function preprocessResults( &$db, &$res ) {
+ function preprocessResults( $db, $res ) {
if( $db->numRows( $res ) > 0 ) {
$linkBatch = new LinkBatch();
while( $row = $db->fetchObject( $res ) )
/**
* Fetch user page links and cache their existence
*/
- function preprocessResults( &$db, &$res ) {
+ function preprocessResults( $db, $res ) {
$batch = new LinkBatch;
while ( $row = $db->fetchObject( $res ) )
$batch->addObj( Title::makeTitleSafe( $row->namespace, $row->title ) );
* @param Database $dbr Database connection
* @param int $res Result pointer
*/
- public function preprocessResults( &$dbr, &$res ) {
+ public function preprocessResults( $dbr, $res ) {
$batch = new LinkBatch();
while( $row = $dbr->fetchObject( $res ) ) {
$title = Title::makeTitleSafe( $row->namespace, $row->title );
WHERE rc_cur_id=page_id AND $condstext";
}
- function preprocessResults( &$db, &$res ) {
+ function preprocessResults( $db, $res ) {
# Do a batch existence check on the user and talk pages
$linkBatch = new LinkBatch();
while( $row = $db->fetchObject( $res ) ) {
WHERE page_namespace=".NS_MAIN." AND page_is_redirect=0";
}
- function preprocessResults( &$db, &$res ) {
+ function preprocessResults( $db, $res ) {
# There's no point doing a batch check if we aren't caching results;
# the page must exist for it to have been pulled out of the table
if( $this->isCached() ) {
/**
* Fetch user page links and cache their existence
*/
- function preprocessResults( &$db, &$res ) {
+ function preprocessResults( $db, $res ) {
$batch = new LinkBatch;
while ( $row = $db->fetchObject( $res ) )
$batch->addObj( Title::makeTitleSafe( $row->namespace, $row->title ) );
/**
* Cache page existence for performance
*/
- function preprocessResults( &$db, &$res ) {
+ function preprocessResults( $db, $res ) {
$batch = new LinkBatch;
while ( $row = $db->fetchObject( $res ) )
$batch->addObj( Title::makeTitleSafe( $row->namespace, $row->title ) );