*
* $cf = new CategoryFinder;
* $cf->seed(
- * array( 12345 ),
- * array( 'Category 1', 'Category 2' ),
+ * [ 12345 ],
+ * [ 'Category 1', 'Category 2' ],
* 'AND'
* );
* $a = $cf->run();
/** @var array Array of DBKEY category names for categories that don't have a page */
protected $deadend = [];
- /** @var array Array of [ID => array()] */
+ /** @var array Array of [ ID => [] ] */
protected $parents = [];
/** @var array Array of article/category IDs */
/** @var string "AND" or "OR" */
protected $mode;
- /** @var IDatabase Read-DB slave */
+ /** @var IDatabase Read-DB replica DB */
protected $dbr;
/**
* @return array Array of page_ids (those given to seed() that match the conditions)
*/
public function run() {
- $this->dbr = wfGetDB( DB_SLAVE );
+ $this->dbr = wfGetDB( DB_REPLICA );
while ( count( $this->next ) > 0 ) {
$this->scanNextLayer();
}