objectManager: Get rid of setIsQueue/Rejected
This commit is contained in:
committed by
Chris Morgan
parent
6508c7f430
commit
61d2291e3b
@@ -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 */
|
||||
|
||||
@@ -234,6 +234,15 @@ function make_maintainer_rating_list($varname, $cvalue)
|
||||
return $sTxt;
|
||||
}
|
||||
|
||||
/* Get the element with specified key from an array if it is defined */
|
||||
function getInput($sVar, $aInput)
|
||||
{
|
||||
if(array_key_exists($sVar, $aInput))
|
||||
return $aInput[$sVar];
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/* Get the number of users in the database */
|
||||
function getNumberOfComments()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user