MediaWiki REL1_27
MySQLMasterPos Class Reference
Inheritance diagram for MySQLMasterPos:
Collaboration diagram for MySQLMasterPos:

Public Member Functions

 __construct ( $file, $pos)
 
 __toString ()
 
 asOfTime ()
 
 channelsMatch (DBMasterPos $pos)
 
 hasReached (DBMasterPos $pos)
 

Public Attributes

float $asOfTime = 0.0
 UNIX timestamp.
 
string $file
 
int $pos
 Position.
 

Protected Member Functions

 getBinlogName ()
 
 getCoordinates ()
 

Detailed Description

Definition at line 1444 of file DatabaseMysqlBase.php.

Constructor & Destructor Documentation

◆ __construct()

MySQLMasterPos::__construct (   $file,
  $pos 
)

Definition at line 1452 of file DatabaseMysqlBase.php.

References $file, $pos, asOfTime(), and file.

Member Function Documentation

◆ __toString()

MySQLMasterPos::__toString ( )
Returns
string
Since
1.27

Implements DBMasterPos.

Definition at line 1484 of file DatabaseMysqlBase.php.

◆ asOfTime()

MySQLMasterPos::asOfTime ( )
Returns
float UNIX timestamp
Since
1.25

Implements DBMasterPos.

Definition at line 1458 of file DatabaseMysqlBase.php.

References $asOfTime.

Referenced by __construct().

◆ channelsMatch()

MySQLMasterPos::channelsMatch ( DBMasterPos  $pos)
Parameters
DBMasterPos$pos
Returns
bool Whether this position appears to be for the same channel as another
Since
1.27

Implements DBMasterPos.

Definition at line 1473 of file DatabaseMysqlBase.php.

References $pos, and getBinlogName().

Referenced by DatabaseMysqlBaseTest\testChannelsMatch().

◆ getBinlogName()

MySQLMasterPos::getBinlogName ( )
protected
Returns
string|bool

Definition at line 1492 of file DatabaseMysqlBase.php.

Referenced by channelsMatch().

◆ getCoordinates()

MySQLMasterPos::getCoordinates ( )
protected
Returns
array|bool (int, int)

Definition at line 1504 of file DatabaseMysqlBase.php.

Referenced by hasReached().

◆ hasReached()

MySQLMasterPos::hasReached ( DBMasterPos  $pos)
Parameters
DBMasterPos$pos
Returns
bool Whether this position is at or higher than $pos
Since
1.27

Implements DBMasterPos.

Definition at line 1462 of file DatabaseMysqlBase.php.

References $pos, and getCoordinates().

Referenced by DatabaseMysqlBaseTest\testHasReached().

Member Data Documentation

◆ $asOfTime

float MySQLMasterPos::$asOfTime = 0.0

UNIX timestamp.

Definition at line 1450 of file DatabaseMysqlBase.php.

Referenced by asOfTime().

◆ $file

string MySQLMasterPos::$file

Definition at line 1446 of file DatabaseMysqlBase.php.

Referenced by __construct().

◆ $pos

int MySQLMasterPos::$pos

Position.

Definition at line 1448 of file DatabaseMysqlBase.php.

Referenced by __construct(), channelsMatch(), and hasReached().


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