src/Service/RedirectListGetter.php
public function getRedirects( $namespace = 0 ) {
		$statement = $this->db->prepare( $this->getQuery() );
		$statement->execute( array( ':namespace' => $namespace ) );
		$rows = $statement->fetchAll();

		$redirects = array();
		foreach( $rows as $row ) {
			$redirects[] = new Redirect(
				new Title( $row['title'], intval( $row['namespace'] ) ),
				new Title( $row['rd_title'], intval( $row['rd_namespace'] ) )
			);
		}

		return $redirects;
	}
public function getRedirects( $namespace = 0 ) {
		$statement = $this->db->prepare( $this->getQuery() );
		$statement->execute( array( ':namespace' => $namespace ) );
		$rows = $statement->fetchAll();

		$redirects = array();
		foreach( $rows as $row ) {
			$redirects[] = new Redirect(
				new Title( $row['title'], intval( $row['namespace'] ) ),
				new Title( $row['rd_title'], intval( $row['rd_namespace'] ) )
			);
		}

		return $redirects;
	}
public function getRedirects ( $ namespace = 0 ) { $ statement = $ this -> db -> prepare ( $ this -> getQuery ( ) ) ; $ statement -> execute ( array ( ':namespace' => $ namespace ) ) ; $ rows = $ statement -> fetchAll ( ) ; $ redirects = array ( ) ; foreach ( $ rows as $ row ) { $ redirects [ ] = new Redirect ( new Title ( $ row [ 'title' ] , intval ( $ row [ 'namespace' ] ) ) , new Title ( $ row [ 'rd_title' ] , intval ( $ row [ 'rd_namespace' ] ) ) ) ; } return $ redirects ; }
@todo option to and from namespaces!

@param int $namespace the namespace you want to get redirect from

@return Redirect[]
@todo option to and from namespaces!