/** * Update all the appropriate counts in the category table. * @param $added associative array of category name => sort key * @param $deleted associative array of category name => sort key */ function updateCategoryCounts($added, $deleted) { $a = new Article($this->mTitle); $a->updateCategoryCounts(array_keys($added), array_keys($deleted)); }