test_om_objects: Test unQueue()
This commit is contained in:
committed by
Chris Morgan
parent
663894bed4
commit
1f081f4be1
@@ -259,6 +259,11 @@ class application_queue
|
||||
return $sErrors;
|
||||
}
|
||||
|
||||
function objectGetState()
|
||||
{
|
||||
return $this->oApp->objectGetState();
|
||||
}
|
||||
|
||||
function canEdit()
|
||||
{
|
||||
return $this->oApp->canEdit();
|
||||
|
||||
@@ -462,6 +462,11 @@ class Bug
|
||||
return $sLink;
|
||||
}
|
||||
|
||||
function objectGetState()
|
||||
{
|
||||
return ($this->bQueued) ? 'queued' : 'accepted';
|
||||
}
|
||||
|
||||
function canEdit()
|
||||
{
|
||||
if($_SESSION['current']->hasPriv("admin"))
|
||||
|
||||
@@ -249,6 +249,11 @@ class downloadurl
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
function objectGetState()
|
||||
{
|
||||
return ($this->bQueued) ? 'queued' : 'accepted';
|
||||
}
|
||||
|
||||
function canEdit($iVersionId = NULL)
|
||||
{
|
||||
if($_SESSION['current']->hasPriv("admin") ||
|
||||
|
||||
@@ -675,6 +675,11 @@ class maintainer
|
||||
echo "</td></tr></table></div>\n\n";
|
||||
}
|
||||
|
||||
function objectGetState()
|
||||
{
|
||||
return $this->sState;
|
||||
}
|
||||
|
||||
function canEdit()
|
||||
{
|
||||
if($_SESSION['current']->hasPriv("admin") || $this->iUserId == $_SESSION['current']->iUserId)
|
||||
|
||||
@@ -107,6 +107,11 @@ class Monitor {
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
function unQueue()
|
||||
{
|
||||
return true; // We don't queue monitors
|
||||
}
|
||||
|
||||
function objectGetSubmitterId()
|
||||
{
|
||||
return $this->iUserId;
|
||||
@@ -226,6 +231,12 @@ class Monitor {
|
||||
mail_appdb($sEmail, $sSubject ,$sMsg);
|
||||
}
|
||||
|
||||
function objectGetState()
|
||||
{
|
||||
// We don't queue monitors
|
||||
return 'accepted';
|
||||
}
|
||||
|
||||
function canEdit()
|
||||
{
|
||||
if($_SESSION['current']->hasPriv("admin") ||
|
||||
|
||||
@@ -77,6 +77,11 @@ class Note {
|
||||
}
|
||||
|
||||
|
||||
function unQueue()
|
||||
{
|
||||
return true; // We don't queue notes
|
||||
}
|
||||
|
||||
/**
|
||||
* Update note.
|
||||
* Returns true on success and false on failure.
|
||||
@@ -372,6 +377,11 @@ class Note {
|
||||
return $sLink;
|
||||
}
|
||||
|
||||
function objectGetState()
|
||||
{
|
||||
return 'accepted'; // We don't queue notes
|
||||
}
|
||||
|
||||
// users can edit the note if they:
|
||||
// - have "admin" privileges
|
||||
// - maintain the version, or supermaintain the application that
|
||||
|
||||
@@ -665,6 +665,11 @@ class screenshot
|
||||
return appData::objectGetHeader("screenshot");
|
||||
}
|
||||
|
||||
function objectGetState()
|
||||
{
|
||||
return ($this->bQueued) ? 'queued' : 'accepted';
|
||||
}
|
||||
|
||||
function canEdit()
|
||||
{
|
||||
if($this)
|
||||
|
||||
@@ -122,6 +122,11 @@ class testData_queue
|
||||
return $this->oTestData->checkOutputEditorInput($aClean);
|
||||
}
|
||||
|
||||
function objectGetState()
|
||||
{
|
||||
return $this->oTestData->objectGetState();
|
||||
}
|
||||
|
||||
function canEdit()
|
||||
{
|
||||
return $this->oTestData->canEdit();
|
||||
|
||||
@@ -205,6 +205,11 @@ class version_queue
|
||||
return $sErrors;
|
||||
}
|
||||
|
||||
function objectGetState()
|
||||
{
|
||||
return $this->oVersion->objectGetState();
|
||||
}
|
||||
|
||||
function canEdit()
|
||||
{
|
||||
return $this->oVersion->canEdit();
|
||||
|
||||
Reference in New Issue
Block a user