lockableClass Class Reference

Inheritance diagram for lockableClass:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 lock ()
 unlock ()

Public Attributes

 $lockfile
 string The file which is used to lock the data against access


Detailed Description

Definition at line 3 of file shared-lockableclass.php.


Member Function Documentation

lockableClass::lock (  ) 

Lock the class' file access

if( $this->lock() )
{
 Reload the class' data to really be on the safe side
 $this->load();
 Do some processing...
 $this->save();
 Remember to unlock before continuing
        $this->unlock();
}
Returns:
bool True if successful, false if locking was impossible

Definition at line 23 of file shared-lockableclass.php.

References $i.

Referenced by Convention::calculateAverage(), Convention::Convention(), discussForum::discussForum(), discussThread::discussThread(), subscriptionsManager::handle(), Convention::handleRegistration(), discussForum::loadThreads(), subscriptionsManager::removeGlobalID(), subscriptionsManager::renameGlobalID(), discussThread::render(), Convention::renderEditor(), blogger_entry::renderEditor(), blogger_entry::renderFull(), discussForum::renderNewThread(), subscriptionsManager::subscribe(), subscriptionsManager::unsubscribe(), and subscriptionsManager::unsubscribeAll().

lockableClass::unlock (  ) 


Member Data Documentation

lockableClass::$lockfile

string The file which is used to lock the data against access

Definition at line 5 of file shared-lockableclass.php.


The documentation for this class was generated from the following file:

Generated on Sun Oct 26 20:33:15 2008 for The Travelsized Content Management System by  doxygen 1.5.5