Alexander Nicolaysen Sørnes <alex@thehandofagony.com>
Use objectManager to create monitors.
This commit is contained in:
@@ -76,6 +76,7 @@ class Monitor {
|
||||
{
|
||||
/* Check for duplicate entries */
|
||||
$oMonitor = new monitor();
|
||||
$this->iUserId = $_SESSION['current']->iUserId;
|
||||
$oMonitor->find($this->iUserId, $this->iVersionId);
|
||||
if($oMonitor->iVersionId)
|
||||
return FALSE;
|
||||
@@ -100,6 +101,12 @@ class Monitor {
|
||||
}
|
||||
}
|
||||
|
||||
function update()
|
||||
{
|
||||
/* Stub */
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
function objectGetSubmitterId()
|
||||
{
|
||||
return $this->iUserId;
|
||||
@@ -235,9 +242,10 @@ class Monitor {
|
||||
}
|
||||
|
||||
/* Stub */
|
||||
function getOutputEditorValues()
|
||||
function getOutputEditorValues($aClean)
|
||||
{
|
||||
return FALSE;
|
||||
$this->iVersionId = $aClean['iVersionId'];
|
||||
$this->iAppId = $aClean['iAppId'];
|
||||
}
|
||||
|
||||
/* Stub */
|
||||
|
||||
Reference in New Issue
Block a user