* to be in URI form.
* @param int $lifetime Time (in seconds) for which the lock will be
* considered valid.
- * @param string exclusive One of HORDE_LOCK_TYPE_SHARED or
- * HORDE_LOCK_TYPE_EXCLUSIVE.
+ * @param string exclusive One of self::TYPE_SHARED or
+ * self::TYPE_EXCLUSIVE.
* - An exclusive lock will be enforced strictly
* and must be interpreted to mean that the
* resource can not be modified. Only one
* @throws Horde_Log_Exception
*/
public function setLock($requestor, $scope, $principal,
- $lifetime = 1, $exclusive = HORDE_LOCK_TYPE_SHARED)
+ $lifetime = 1, $exclusive = self::TYPE_SHARED)
{
throw new Horde_Log_Exception(_("No lock driver configured!"));
}
* @see Horde_Lock::setLock
*/
public function setLock($requestor, $scope, $principal,
- $lifetime = 1, $type = HORDE_LOCK_TYPE_SHARED)
+ $lifetime = 1, $type = self::TYPE_SHARED)
{
if (is_a(($result = $this->_connect()), 'PEAR_Error')) {
Horde::logMessage($result, __FILE__, __LINE__, PEAR_LOG_ERR);
throw new Horde_Lock_Exception(_("Internal database error. Details have been logged for the administrator."));
}
- $oldlocks = $this->getLocks($scope, $principal, HORDE_LOCK_TYPE_EXCLUSIVE);
+ $oldlocks = $this->getLocks($scope, $principal, self::TYPE_EXCLUSIVE);
if (is_a($oldlocks, 'PEAR_Error')) {
throw new Horde_Lock_Exception($oldlocks->getMessage());
}