MediaWiki  master
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. More...
 
 getInsertValuesWithTempTable (IDatabase $dbw, $key, UserIdentity $user)
 Get UPDATE fields for the actor. More...
 
 getJoin ( $key)
 Get SELECT fields and joins for the actor key. More...
 
 getWhere (IDatabase $db, $key, $users, $useId=true)
 Get WHERE condition for the actor. More...
 
 isAnon ( $field)
 Return an SQL condition to test if a user field is anonymous. More...
 
 isNotAnon ( $field)
 Return an SQL condition to test if a user field is non-anonymous. More...
 

Static Public Member Functions

static newMigration ()
 Static constructor. More...
 

Public Attributes

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

Additional Inherited Members

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

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 ActorMigrationBase\$actorStoreFactory, and SCHEMA_COMPAT_OLD.

Member Function Documentation

◆ newMigration()

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: