MediaWiki  1.27.2
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. More...
 
string $file
 
int $pos
 Position. More...
 

Protected Member Functions

 getBinlogName ()
 
 getCoordinates ()
 

Detailed Description

Definition at line 1444 of file DatabaseMysqlBase.php.

Constructor & Destructor Documentation

MySQLMasterPos::__construct (   $file,
  $pos 
)

Definition at line 1452 of file DatabaseMysqlBase.php.

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

Member Function Documentation

MySQLMasterPos::__toString ( )
Returns
string
Since
1.27

Implements DBMasterPos.

Definition at line 1484 of file DatabaseMysqlBase.php.

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

Implements DBMasterPos.

Definition at line 1458 of file DatabaseMysqlBase.php.

References $asOfTime.

Referenced by __construct().

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 getBinlogName().

Referenced by DatabaseMysqlBaseTest\testChannelsMatch().

MySQLMasterPos::getBinlogName ( )
protected
Returns
string|bool

Definition at line 1492 of file DatabaseMysqlBase.php.

Referenced by channelsMatch().

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

Definition at line 1504 of file DatabaseMysqlBase.php.

Referenced by 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 getCoordinates().

Referenced by DatabaseMysqlBaseTest\testHasReached().

Member Data Documentation

float MySQLMasterPos::$asOfTime = 0.0

UNIX timestamp.

Definition at line 1450 of file DatabaseMysqlBase.php.

Referenced by asOfTime().

string MySQLMasterPos::$file

Definition at line 1446 of file DatabaseMysqlBase.php.

Referenced by __construct().

int MySQLMasterPos::$pos

Position.

Definition at line 1448 of file DatabaseMysqlBase.php.

Referenced by __construct().


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