class Lock extends AbstractModel (View source)

Properties

protected AbstractDao $dao from AbstractModel
string $id
int $date
static protected array $acquiredLocks
static protected Lock $instance

Methods

Dao
getDao()

No description

setDao($dao)

No description

getResource() deprecated

No description

initDao(null $key = null, bool $forceDetection = false)

No description

static string|null
locateDaoClass(string $modelClass)

No description

$this
setValues(array $data = [])

No description

$this
setValue($key, $value)

No description

array
__sleep()

No description

mixed
__call($method, $args)

No description

__clone()

No description

array
getObjectVars()

returns object values without the dao

array
__debugInfo()

No description

void
beginTransaction()

No description

void
commit()

No description

void
rollBack()

No description

void
configure()

No description

array
getValidTableColumns(string $table, bool $cache)

No description

void
resetValidTableColumnsCache(string $table)

No description

static Lock
getInstance()

No description

static 
acquire(string $key, int $expire = 120, int $refreshInterval = 1)

No description

static 
release(string $key)

No description

static bool
lock(string $key)

No description

static mixed
isLocked($key, int $expire = 120)

No description

static Lock
get($key)

No description

static 
releaseAll()

No description

setDate(int $date)

No description

int
getDate()

No description

setId(string $id)

No description

string
getId()

No description

Details

Dao getDao()

Return Value

Dao

AbstractModel setDao($dao)

Parameters

$dao

Return Value

AbstractModel

AbstractDao getResource() deprecated

deprecated

Return Value

AbstractDao

initDao(null $key = null, bool $forceDetection = false)

Parameters

null $key
bool $forceDetection

Exceptions

Exception

static string|null locateDaoClass(string $modelClass)

Parameters

string $modelClass

Return Value

string|null

$this setValues(array $data = [])

Parameters

array $data

Return Value

$this

$this setValue($key, $value)

Parameters

$key
$value

Return Value

$this

array __sleep()

Return Value

array

mixed __call($method, $args)

Parameters

$method
$args

Return Value

mixed

Exceptions

Exception

__clone()

array getObjectVars()

returns object values without the dao

Return Value

array

array __debugInfo()

Return Value

array

void beginTransaction()

Return Value

void

void commit()

Return Value

void

void rollBack()

Return Value

void

void configure()

Return Value

void

array getValidTableColumns(string $table, bool $cache)

Parameters

string $table
bool $cache

Return Value

array

void resetValidTableColumnsCache(string $table)

Parameters

string $table

Return Value

void

static protected Lock getInstance()

Return Value

Lock

static acquire(string $key, int $expire = 120, int $refreshInterval = 1)

Parameters

string $key
int $expire
int $refreshInterval

static release(string $key)

Parameters

string $key

static bool lock(string $key)

Parameters

string $key

Return Value

bool

static mixed isLocked($key, int $expire = 120)

Parameters

$key
int $expire

Return Value

mixed

static Lock get($key)

Parameters

$key

Return Value

Lock

static releaseAll()

setDate(int $date)

Parameters

int $date

int getDate()

Return Value

int

setId(string $id)

Parameters

string $id

string getId()

Return Value

string