objectManager: Get rid of setIsQueue/Rejected

This commit is contained in:
Alexander Nicolaysen Sørnes
2008-01-02 00:28:32 +01:00
committed by Chris Morgan
parent 6508c7f430
commit 61d2291e3b
3 changed files with 20 additions and 30 deletions

View File

@@ -60,14 +60,14 @@ class ObjectManager
return $this->sClass;
}
public function setIsQueue($bIsQueue)
public function getState()
{
$this->bIsQueue = $bIsQueue;
return $this->sState;
}
if($this->sState != 'rejected' && $bIsQueue)
$this->sState = 'queued';
else if ($this->sState == 'queued' && !$bIsQueue)
$this->sState = 'accepted';
public function setState($sState)
{
$this->sState = $sState;
}
public function getIsQueue()
@@ -85,16 +85,6 @@ class ObjectManager
$this->sReturnToTitle = $sTitle;
}
public function setIsRejected($bIsRejected)
{
$this->bIsRejected = $bIsRejected;
if($bIsRejected)
$this->sState = 'rejected';
else if ($this->sState == 'rejected')
$this->sState = 'queued';
}
public function setSortInfo($aClean = null)
{
/* No use to continue if there are no sortable fields */