Index: trunk/phase3/includes/LinksUpdate.php |
— | — | @@ -329,7 +329,7 @@ |
330 | 330 | |
331 | 331 | /** |
332 | 332 | * Update a table by doing a delete query then an insert query |
333 | | - * @private |
| 333 | + * |
334 | 334 | */ |
335 | 335 | function incrTableUpdate( $table, $prefix, $deletions, $insertions ) { |
336 | 336 | if ( $table == 'page_props' ) { |
— | — | @@ -376,7 +376,7 @@ |
377 | 377 | /** |
378 | 378 | * Get an array of pagelinks insertions for passing to the DB |
379 | 379 | * Skips the titles specified by the 2-D array $existing |
380 | | - * @private |
| 380 | + * |
381 | 381 | */ |
382 | 382 | function getLinkInsertions( $existing = array() ) { |
383 | 383 | $arr = array(); |
— | — | @@ -397,7 +397,7 @@ |
398 | 398 | |
399 | 399 | /** |
400 | 400 | * Get an array of template insertions. Like getLinkInsertions() |
401 | | - * @private |
| 401 | + * |
402 | 402 | */ |
403 | 403 | function getTemplateInsertions( $existing = array() ) { |
404 | 404 | $arr = array(); |
— | — | @@ -417,7 +417,6 @@ |
418 | 418 | /** |
419 | 419 | * Get an array of image insertions |
420 | 420 | * Skips the names specified in $existing |
421 | | - * @private |
422 | 421 | */ |
423 | 422 | function getImageInsertions( $existing = array() ) { |
424 | 423 | $arr = array(); |
— | — | @@ -433,7 +432,6 @@ |
434 | 433 | |
435 | 434 | /** |
436 | 435 | * Get an array of externallinks insertions. Skips the names specified in $existing |
437 | | - * @private |
438 | 436 | */ |
439 | 437 | function getExternalInsertions( $existing = array() ) { |
440 | 438 | $arr = array(); |
— | — | @@ -453,7 +451,6 @@ |
454 | 452 | * |
455 | 453 | * @param $existing Array mapping existing category names to sort keys. If both |
456 | 454 | * match a link in $this, the link will be omitted from the output |
457 | | - * @private |
458 | 455 | */ |
459 | 456 | function getCategoryInsertions( $existing = array() ) { |
460 | 457 | global $wgContLang, $wgCategoryCollation; |
— | — | @@ -495,7 +492,7 @@ |
496 | 493 | * Get an array of interlanguage link insertions |
497 | 494 | * |
498 | 495 | * @param $existing Array mapping existing language codes to titles |
499 | | - * @private |
| 496 | + * |
500 | 497 | */ |
501 | 498 | function getInterlangInsertions( $existing = array() ) { |
502 | 499 | $diffs = array_diff_assoc( $this->mInterlangs, $existing ); |
— | — | @@ -529,7 +526,7 @@ |
530 | 527 | /** |
531 | 528 | * Get an array of interwiki insertions for passing to the DB |
532 | 529 | * Skips the titles specified by the 2-D array $existing |
533 | | - * @private |
| 530 | + * |
534 | 531 | */ |
535 | 532 | function getInterwikiInsertions( $existing = array() ) { |
536 | 533 | $arr = array(); |
— | — | @@ -549,7 +546,7 @@ |
550 | 547 | /** |
551 | 548 | * Given an array of existing links, returns those links which are not in $this |
552 | 549 | * and thus should be deleted. |
553 | | - * @private |
| 550 | + * |
554 | 551 | */ |
555 | 552 | function getLinkDeletions( $existing ) { |
556 | 553 | $del = array(); |
— | — | @@ -566,7 +563,7 @@ |
567 | 564 | /** |
568 | 565 | * Given an array of existing templates, returns those templates which are not in $this |
569 | 566 | * and thus should be deleted. |
570 | | - * @private |
| 567 | + * |
571 | 568 | */ |
572 | 569 | function getTemplateDeletions( $existing ) { |
573 | 570 | $del = array(); |
— | — | @@ -583,7 +580,7 @@ |
584 | 581 | /** |
585 | 582 | * Given an array of existing images, returns those images which are not in $this |
586 | 583 | * and thus should be deleted. |
587 | | - * @private |
| 584 | + * |
588 | 585 | */ |
589 | 586 | function getImageDeletions( $existing ) { |
590 | 587 | return array_diff_key( $existing, $this->mImages ); |
— | — | @@ -592,7 +589,7 @@ |
593 | 590 | /** |
594 | 591 | * Given an array of existing external links, returns those links which are not |
595 | 592 | * in $this and thus should be deleted. |
596 | | - * @private |
| 593 | + * |
597 | 594 | */ |
598 | 595 | function getExternalDeletions( $existing ) { |
599 | 596 | return array_diff_key( $existing, $this->mExternals ); |
— | — | @@ -601,7 +598,7 @@ |
602 | 599 | /** |
603 | 600 | * Given an array of existing categories, returns those categories which are not in $this |
604 | 601 | * and thus should be deleted. |
605 | | - * @private |
| 602 | + * |
606 | 603 | */ |
607 | 604 | function getCategoryDeletions( $existing ) { |
608 | 605 | return array_diff_assoc( $existing, $this->mCategories ); |
— | — | @@ -610,7 +607,7 @@ |
611 | 608 | /** |
612 | 609 | * Given an array of existing interlanguage links, returns those links which are not |
613 | 610 | * in $this and thus should be deleted. |
614 | | - * @private |
| 611 | + * |
615 | 612 | */ |
616 | 613 | function getInterlangDeletions( $existing ) { |
617 | 614 | return array_diff_assoc( $existing, $this->mInterlangs ); |
— | — | @@ -618,7 +615,7 @@ |
619 | 616 | |
620 | 617 | /** |
621 | 618 | * Get array of properties which should be deleted. |
622 | | - * @private |
| 619 | + * |
623 | 620 | */ |
624 | 621 | function getPropertyDeletions( $existing ) { |
625 | 622 | return array_diff_assoc( $existing, $this->mProperties ); |
— | — | @@ -627,7 +624,7 @@ |
628 | 625 | /** |
629 | 626 | * Given an array of existing interwiki links, returns those links which are not in $this |
630 | 627 | * and thus should be deleted. |
631 | | - * @private |
| 628 | + * |
632 | 629 | */ |
633 | 630 | function getInterwikiDeletions( $existing ) { |
634 | 631 | $del = array(); |
— | — | @@ -643,7 +640,7 @@ |
644 | 641 | |
645 | 642 | /** |
646 | 643 | * Get an array of existing links, as a 2-D array |
647 | | - * @private |
| 644 | + * |
648 | 645 | */ |
649 | 646 | function getExistingLinks() { |
650 | 647 | $res = $this->mDb->select( 'pagelinks', array( 'pl_namespace', 'pl_title' ), |
— | — | @@ -660,7 +657,7 @@ |
661 | 658 | |
662 | 659 | /** |
663 | 660 | * Get an array of existing templates, as a 2-D array |
664 | | - * @private |
| 661 | + * |
665 | 662 | */ |
666 | 663 | function getExistingTemplates() { |
667 | 664 | $res = $this->mDb->select( 'templatelinks', array( 'tl_namespace', 'tl_title' ), |
— | — | @@ -677,7 +674,7 @@ |
678 | 675 | |
679 | 676 | /** |
680 | 677 | * Get an array of existing images, image names in the keys |
681 | | - * @private |
| 678 | + * |
682 | 679 | */ |
683 | 680 | function getExistingImages() { |
684 | 681 | $res = $this->mDb->select( 'imagelinks', array( 'il_to' ), |
— | — | @@ -691,7 +688,7 @@ |
692 | 689 | |
693 | 690 | /** |
694 | 691 | * Get an array of existing external links, URLs in the keys |
695 | | - * @private |
| 692 | + * |
696 | 693 | */ |
697 | 694 | function getExistingExternals() { |
698 | 695 | $res = $this->mDb->select( 'externallinks', array( 'el_to' ), |
— | — | @@ -705,7 +702,7 @@ |
706 | 703 | |
707 | 704 | /** |
708 | 705 | * Get an array of existing categories, with the name in the key and sort key in the value. |
709 | | - * @private |
| 706 | + * |
710 | 707 | */ |
711 | 708 | function getExistingCategories() { |
712 | 709 | $res = $this->mDb->select( 'categorylinks', array( 'cl_to', 'cl_sortkey_prefix' ), |
— | — | @@ -720,7 +717,7 @@ |
721 | 718 | /** |
722 | 719 | * Get an array of existing interlanguage links, with the language code in the key and the |
723 | 720 | * title in the value. |
724 | | - * @private |
| 721 | + * |
725 | 722 | */ |
726 | 723 | function getExistingInterlangs() { |
727 | 724 | $res = $this->mDb->select( 'langlinks', array( 'll_lang', 'll_title' ), |
— | — | @@ -751,7 +748,7 @@ |
752 | 749 | |
753 | 750 | /** |
754 | 751 | * Get an array of existing categories, with the name in the key and sort key in the value. |
755 | | - * @private |
| 752 | + * |
756 | 753 | */ |
757 | 754 | function getExistingProperties() { |
758 | 755 | $res = $this->mDb->select( 'page_props', array( 'pp_propname', 'pp_value' ), |