From b2cc871f0928e6379c1dd25dc7ad824509c572ed Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Fri, 14 Sep 2007 23:31:20 -0400 Subject: [PATCH] =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use objectManager to create monitors. --- include/monitor.php | 12 ++++++++++-- include/objectManager.php | 2 +- include/version.php | 13 ++++++++++--- 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/include/monitor.php b/include/monitor.php index 7dc93b8..b01b087 100644 --- a/include/monitor.php +++ b/include/monitor.php @@ -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 */ diff --git a/include/objectManager.php b/include/objectManager.php index ad3d1a8..c0b61d3 100644 --- a/include/objectManager.php +++ b/include/objectManager.php @@ -817,7 +817,7 @@ class ObjectManager else $sRedirectLink = APPDB_ROOT; - util_redirect_and_exit($sRedirectLink); + $this->return_to_url($sRedirectLink); return TRUE; } diff --git a/include/version.php b/include/version.php index b3428d3..cf9b347 100644 --- a/include/version.php +++ b/include/version.php @@ -848,9 +848,16 @@ class version { $oMonitor->find($_SESSION['current']->iUserId, $this->iVersionId); if(!$oMonitor->iMonitorId) { - echo '
'."\n"; - echo "\t".''."\n"; + echo '\n"; + echo "\tiAppId."\" />\n"; + echo "\tiVersionId."\" />\n"; + echo "\t\n"; + echo "\t\n"; + echo "\tobjectMakeUrl()."\" />\n"; echo "\t".''."\n"; echo "
\n"; }