Documentation

MySQLCounter implements ICounter

A counter table that increments the counter value by 1 each time increment() is called.

Table of Contents

$table Table name string
$dbc Database connection IDBConnection
__construct() Create a new MySQLNumber increment. mixed
increment() Increment a stored number by some offset and return the new value. int

Properties

Methods

__construct()

Create a new MySQLNumber increment.

public __construct( $table : string , $dbc : IDBConnection ) : mixed
Parameters
$table : string

Table name

$dbc : IDBConnection

database connection

Return values
mixed

increment()

Increment a stored number by some offset and return the new value.

public increment( $key : string ) : int
Parameters
$key : string

Counter key

Return values
int

value

Search results