17 require_once SQ_INCLUDE_PATH.
'/asset.inc';
56 parent::__construct($assetid);
87 public static function acquireLock($lockid, $source_lockid=
'', $expires=0)
89 trigger_error(
'This locking method has not implemented acquiring of locks', E_USER_ERROR);
116 trigger_error(
'This locking method has not implemented updating of locks', E_USER_ERROR);
135 trigger_error(
'This locking method has not implemented releasing of locks', E_USER_ERROR);
159 public static function getLockInfo($lockid, $full_chain=FALSE, $check_expires=TRUE, $allow_only_one=TRUE)
161 trigger_error(
'This locking method has not implemented getting of lock info', E_USER_ERROR);
185 public static function getActiveLocks($owner_assetid=NULL, $include_expired=FALSE)
187 if (self::supportsGetActiveLocks() === FALSE) {
188 trigger_error(
'This locking method does not support getting of active locks', E_USER_WARNING);
191 trigger_error(
'This locking method supports getting of active locks, but has not implemented getActiveLocks method', E_USER_ERROR);
225 if (self::supportsGetActiveLocks() === FALSE) {
226 trigger_error(
'This locking method does not support changing of lock owner', E_USER_WARNING);
229 trigger_error(
'This locking method supports changing of lock owner, but has not implemented changeLockOwner method', E_USER_ERROR);