Exemplo n.º 1
0
 /**
  * Checks if the requested page is not in use from another user, and free the 
  * previous page used by current user.
  * 
  * @param int  The previous page id
  *
  */
 public function isPageFree($prevPage)
 {
     $operation = $this->idLanguage . $this->idPage;
     $prevOperation = $this->idLanguage . $prevPage;
     return semaphore::setRequestedOperation(sfContext::getInstance()->getUser()->getGuardUser()->getId(), $operation, $prevOperation);
 }