MediaWiki REL1_37
ActorMigration Class Reference

This is not intended to be a long-term part of MediaWiki; it will be deprecated and removed once actor migration is complete. More...

Inheritance diagram for ActorMigration:
Collaboration diagram for ActorMigration:

Public Member Functions

 __construct ( $stage, ActorStoreFactory $actorStoreFactory)
 
- Public Member Functions inherited from ActorMigrationBase
 __construct ( $fieldInfos, $stage, ActorStoreFactory $actorStoreFactory, $options=[])
 
 getInsertValues (IDatabase $dbw, $key, UserIdentity $user)
 Get UPDATE fields for the actor.
 
 getInsertValuesWithTempTable (IDatabase $dbw, $key, UserIdentity $user)
 Get UPDATE fields for the actor.
 
 getJoin ( $key)
 Get SELECT fields and joins for the actor key.
 
 getWhere (IDatabase $db, $key, $users, $useId=true)
 Get WHERE condition for the actor.
 
 isAnon ( $field)
 Return an SQL condition to test if a user field is anonymous.
 
 isNotAnon ( $field)
 Return an SQL condition to test if a user field is non-anonymous.
 

Static Public Member Functions

static newMigration ()
 Static constructor.
 

Public Attributes

const FIELD_INFOS
 Field information.
 
const MIGRATION_STAGE_SCHEMA_COMPAT = 1
 Constant for extensions to feature-test whether $wgActorTableSchemaMigrationStage (in MW <1.34) expects MIGRATION_* or SCHEMA_COMPAT_*.
 

Additional Inherited Members

- Protected Member Functions inherited from ActorMigrationBase
 checkDeprecation ( $key)
 Issue deprecation warning/error as appropriate.
 
 getFieldInfo ( $key)
 Get config information about a field.
 
 getInstanceName ()
 Get a name for this instance to use in error messages.
 

Detailed Description

This is not intended to be a long-term part of MediaWiki; it will be deprecated and removed once actor migration is complete.

Since
1.31
1.34 Use with 'ar_user', 'img_user', 'oi_user', 'fa_user', 'rc_user', 'log_user', and 'ipb_by' is deprecated. Callers should reference the corresponding actor fields directly.

Definition at line 15 of file ActorMigration.php.

Constructor & Destructor Documentation

◆ __construct()

ActorMigration::__construct (   $stage,
ActorStoreFactory  $actorStoreFactory 
)
Access: internal
Parameters
int$stage
ActorStoreFactory$actorStoreFactory

Definition at line 86 of file ActorMigration.php.

References SCHEMA_COMPAT_OLD.

Member Function Documentation

◆ newMigration()

static ActorMigration::newMigration ( )
static

Static constructor.

Returns
self

Definition at line 76 of file ActorMigration.php.

Member Data Documentation

◆ FIELD_INFOS

const ActorMigration::FIELD_INFOS

Field information.

See also
ActorMigrationBase::getFieldInfo()

Definition at line 26 of file ActorMigration.php.

◆ MIGRATION_STAGE_SCHEMA_COMPAT

const ActorMigration::MIGRATION_STAGE_SCHEMA_COMPAT = 1

Constant for extensions to feature-test whether $wgActorTableSchemaMigrationStage (in MW <1.34) expects MIGRATION_* or SCHEMA_COMPAT_*.

Definition at line 20 of file ActorMigration.php.


The documentation for this class was generated from the following file: