phpDocumentor Picasa
PHPUnit
[ class tree: Picasa ] [ index: Picasa ] [ all elements ]

Class: MockLockSystem

Source Location: /modules/picasa/test/phpunit/MockLockSystem.class

Class MockLockSystem

Class Overview

This is a mock LockSystem to get rid of the pain of Flock platform calls in unit tests

Located in /modules/picasa/test/phpunit/MockLockSystem.class [line 35]

GalleryLockSystem
   |
   --MockLockSystem

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From GalleryLockSystem

GalleryLockSystem::$_locks
GalleryLockSystem::$_releaseQueue

Inherited From GalleryLockSystem

GalleryLockSystem::GalleryLockSystem()
GalleryLockSystem::acquireReadLock()
Read lock one or more objects
GalleryLockSystem::acquireWriteLock()
Write lock one or more objects
GalleryLockSystem::getLockIds()
Return the ids of all the locks we hold
GalleryLockSystem::isReadLocked()
Return true if the given id is read locked or write locked
GalleryLockSystem::isWriteLocked()
Return true if the given id is write locked
GalleryLockSystem::refreshLocks()
Refresh all the locks that we hold so that they aren't accidentally considered expired
GalleryLockSystem::releaseAllLocks()
Release any locks that we're holding
GalleryLockSystem::releaseLocks()
Release the given lock(s) (queue the specified locks for later release on transactional databases or release them immediately if transactions are not supported)
GalleryLockSystem::releaseQueue()
Cleanup any locks queued for release
GalleryLockSystem::_acquireLock()
Extending class must implement this function to actually acquire a lock.
GalleryLockSystem::_moveObjectsBetweenLocks()
Move ids from givens locks into a new lock.
GalleryLockSystem::_newLockId()
Generate an id for a new lock.
GalleryLockSystem::_releaseLocksNow()
Release the given locks now
GalleryLockSystem::_removeObjectsFromLock()
Remove some object ids from the given lock.

[ Top ]
Method Summary
void   acquireReadLock()  
void   acquireWriteLock()  
void   FlockLockSystem()  
array   getLockIds()   Return the ids of all the locks we hold
void   isReadLocked()  
void   isWriteLocked()  
void   refreshLocks()  
void   releaseAllLocks()  
void   releaseLocks()  

[ Top ]
Methods
acquireReadLock  [line 44]

  void acquireReadLock( $ids, [ $timeout = 10]  )

Parameters:
   $ids: 
   $timeout: 

API Tags:
See:  GalleryLockSystem::acquireReadLock


Redefinition of:
GalleryLockSystem::acquireReadLock()
Read lock one or more objects

[ Top ]
acquireWriteLock  [line 58]

  void acquireWriteLock( $ids, [ $timeout = 10]  )

Parameters:
   $ids: 
   $timeout: 

API Tags:
See:  GalleryLockSystem::acquireWriteLock


Redefinition of:
GalleryLockSystem::acquireWriteLock()
Write lock one or more objects

[ Top ]
FlockLockSystem  [line 37]

  void FlockLockSystem( )



[ Top ]
getLockIds  [line 95]

  array getLockIds( )

Return the ids of all the locks we hold


API Tags:
Return:  lock ids


Redefinition of:
GalleryLockSystem::getLockIds()
Return the ids of all the locks we hold

[ Top ]
isReadLocked  [line 51]

  void isReadLocked( $id  )

Parameters:
   $id: 

API Tags:
See:  GalleryLockSystem::isReadLocked


Redefinition of:
GalleryLockSystem::isReadLocked()
Return true if the given id is read locked or write locked

[ Top ]
isWriteLocked  [line 65]

  void isWriteLocked( $id  )

Parameters:
   $id: 

API Tags:
See:  GalleryLockSystem::isWriteLocked


Redefinition of:
GalleryLockSystem::isWriteLocked()
Return true if the given id is write locked

[ Top ]
refreshLocks  [line 86]

  void refreshLocks( $freshUntil  )

Parameters:
   $freshUntil: 

API Tags:
See:  GalleryLockSystem::refreshLocks


Redefinition of:
GalleryLockSystem::refreshLocks()
Refresh all the locks that we hold so that they aren't accidentally considered expired

[ Top ]
releaseAllLocks  [line 79]

  void releaseAllLocks( )


API Tags:
See:  GalleryLockSystem::refreshAllLocks


Redefinition of:
GalleryLockSystem::releaseAllLocks()
Release any locks that we're holding

[ Top ]
releaseLocks  [line 72]

  void releaseLocks( $lockIds  )

Parameters:
   $lockIds: 

API Tags:
See:  GalleryLockSystem::releaseLocks


Redefinition of:
GalleryLockSystem::releaseLocks()
Release the given lock(s) (queue the specified locks for later release on transactional databases or release them immediately if transactions are not supported)

[ Top ]

Documentation generated on Fri, 08 Oct 2010 05:33:27 -0700 by phpDocumentor 1.3.0RC6