objectManager: Handle sState in URLs

This commit is contained in:
Alexander Nicolaysen Sørnes
2008-01-06 01:14:56 +01:00
committed by Chris Morgan
parent d4c09ee6f3
commit f04c6fe4dc
4 changed files with 40 additions and 26 deletions

View File

@@ -65,7 +65,19 @@ class ObjectManager
public function setState($sState)
{
$this->sState = $sState;
/* Ensure that the given state is valid */
switch($sState)
{
case 'accepted':
case 'queued':
case 'rejected':
case 'deleted':
$this->sState = $sState;
return true;
default:
return false;
}
}
public function getIsQueue()