Class: Lock
Properties
Methods
public __construct ($resource = false, $key = false)
public add ($resource = false, $key = false)
public exists ($resource = false, $key = false)
public info ($resource = false, $key = false)
public update ($resource = false, $key = false)
public remove ($resource = false, $key = false)
public static clear_all ()
A simple locking mechanism for ensuring users don't edit the same object at the same time.
Usage:
Fields:
id user resource resource_id expires created modified