/**
* Update a table by doing a delete query then an insert query
- * @private
+ *
*/
function incrTableUpdate( $table, $prefix, $deletions, $insertions ) {
if ( $table == 'page_props' ) {
/**
* Get an array of pagelinks insertions for passing to the DB
* Skips the titles specified by the 2-D array $existing
- * @private
+ *
*/
function getLinkInsertions( $existing = array() ) {
$arr = array();
/**
* Get an array of template insertions. Like getLinkInsertions()
- * @private
+ *
*/
function getTemplateInsertions( $existing = array() ) {
$arr = array();
/**
* Get an array of image insertions
* Skips the names specified in $existing
- * @private
*/
function getImageInsertions( $existing = array() ) {
$arr = array();
/**
* Get an array of externallinks insertions. Skips the names specified in $existing
- * @private
*/
function getExternalInsertions( $existing = array() ) {
$arr = array();
*
* @param $existing Array mapping existing category names to sort keys. If both
* match a link in $this, the link will be omitted from the output
- * @private
*/
function getCategoryInsertions( $existing = array() ) {
global $wgContLang, $wgCategoryCollation;
* Get an array of interlanguage link insertions
*
* @param $existing Array mapping existing language codes to titles
- * @private
+ *
*/
function getInterlangInsertions( $existing = array() ) {
$diffs = array_diff_assoc( $this->mInterlangs, $existing );
/**
* Get an array of interwiki insertions for passing to the DB
* Skips the titles specified by the 2-D array $existing
- * @private
+ *
*/
function getInterwikiInsertions( $existing = array() ) {
$arr = array();
/**
* Given an array of existing links, returns those links which are not in $this
* and thus should be deleted.
- * @private
+ *
*/
function getLinkDeletions( $existing ) {
$del = array();
/**
* Given an array of existing templates, returns those templates which are not in $this
* and thus should be deleted.
- * @private
+ *
*/
function getTemplateDeletions( $existing ) {
$del = array();
/**
* Given an array of existing images, returns those images which are not in $this
* and thus should be deleted.
- * @private
+ *
*/
function getImageDeletions( $existing ) {
return array_diff_key( $existing, $this->mImages );
/**
* Given an array of existing external links, returns those links which are not
* in $this and thus should be deleted.
- * @private
+ *
*/
function getExternalDeletions( $existing ) {
return array_diff_key( $existing, $this->mExternals );
/**
* Given an array of existing categories, returns those categories which are not in $this
* and thus should be deleted.
- * @private
+ *
*/
function getCategoryDeletions( $existing ) {
return array_diff_assoc( $existing, $this->mCategories );
/**
* Given an array of existing interlanguage links, returns those links which are not
* in $this and thus should be deleted.
- * @private
+ *
*/
function getInterlangDeletions( $existing ) {
return array_diff_assoc( $existing, $this->mInterlangs );
/**
* Get array of properties which should be deleted.
- * @private
+ *
*/
function getPropertyDeletions( $existing ) {
return array_diff_assoc( $existing, $this->mProperties );
/**
* Given an array of existing interwiki links, returns those links which are not in $this
* and thus should be deleted.
- * @private
+ *
*/
function getInterwikiDeletions( $existing ) {
$del = array();
/**
* Get an array of existing links, as a 2-D array
- * @private
+ *
*/
function getExistingLinks() {
$res = $this->mDb->select( 'pagelinks', array( 'pl_namespace', 'pl_title' ),
/**
* Get an array of existing templates, as a 2-D array
- * @private
+ *
*/
function getExistingTemplates() {
$res = $this->mDb->select( 'templatelinks', array( 'tl_namespace', 'tl_title' ),
/**
* Get an array of existing images, image names in the keys
- * @private
+ *
*/
function getExistingImages() {
$res = $this->mDb->select( 'imagelinks', array( 'il_to' ),
/**
* Get an array of existing external links, URLs in the keys
- * @private
+ *
*/
function getExistingExternals() {
$res = $this->mDb->select( 'externallinks', array( 'el_to' ),
/**
* Get an array of existing categories, with the name in the key and sort key in the value.
- * @private
+ *
*/
function getExistingCategories() {
$res = $this->mDb->select( 'categorylinks', array( 'cl_to', 'cl_sortkey_prefix' ),
/**
* Get an array of existing interlanguage links, with the language code in the key and the
* title in the value.
- * @private
+ *
*/
function getExistingInterlangs() {
$res = $this->mDb->select( 'langlinks', array( 'll_lang', 'll_title' ),
/**
* Get an array of existing categories, with the name in the key and sort key in the value.
- * @private
+ *
*/
function getExistingProperties() {
$res = $this->mDb->select( 'page_props', array( 'pp_propname', 'pp_value' ),