Documentation

MultiExecState
in package

Utility class used to track the state of a MULTI / EXEC transaction.

Tags
author

Daniele Alessandri suppakilla@gmail.com

Table of Contents

CAS  = 8
DISCARDED  = 4
INITIALIZED  = 1
INSIDEBLOCK  = 2
WATCH  = 16
$flags  : mixed
__construct()  : mixed
check()  : bool
Returns if the specified flag or set of flags is set.
flag()  : mixed
Sets one or more flags.
get()  : int
Gets the internal state flags.
isCAS()  : bool
Returns the state of the CAS flag.
isDiscarded()  : bool
Returns the state of the DISCARDED flag.
isExecuting()  : bool
Returns the state of the INSIDEBLOCK flag.
isInitialized()  : bool
Returns the state of the INITIALIZED flag.
isReset()  : bool
Returns the state of the RESET flag.
isWatchAllowed()  : bool
Returns if WATCH is allowed in the current state.
isWatching()  : bool
Returns the state of the WATCH flag.
reset()  : mixed
Resets the state of a transaction.
set()  : mixed
Sets the internal state flags.
unflag()  : mixed
Resets one or more flags.

Constants

Properties

Methods

__construct()

public __construct() : mixed
Return values
mixed

check()

Returns if the specified flag or set of flags is set.

public check(int $flags) : bool
Parameters
$flags : int

Flag

Return values
bool

flag()

Sets one or more flags.

public flag(int $flags) : mixed
Parameters
$flags : int

Set of flags

Return values
mixed

get()

Gets the internal state flags.

public get() : int
Return values
int

isCAS()

Returns the state of the CAS flag.

public isCAS() : bool
Return values
bool

isDiscarded()

Returns the state of the DISCARDED flag.

public isDiscarded() : bool
Return values
bool

isExecuting()

Returns the state of the INSIDEBLOCK flag.

public isExecuting() : bool
Return values
bool

isInitialized()

Returns the state of the INITIALIZED flag.

public isInitialized() : bool
Return values
bool

isReset()

Returns the state of the RESET flag.

public isReset() : bool
Return values
bool

isWatchAllowed()

Returns if WATCH is allowed in the current state.

public isWatchAllowed() : bool
Return values
bool

isWatching()

Returns the state of the WATCH flag.

public isWatching() : bool
Return values
bool

reset()

Resets the state of a transaction.

public reset() : mixed
Return values
mixed

set()

Sets the internal state flags.

public set(int $flags) : mixed
Parameters
$flags : int

Set of flags

Return values
mixed

unflag()

Resets one or more flags.

public unflag(int $flags) : mixed
Parameters
$flags : int

Set of flags

Return values
mixed

Search results