瀏覽代碼

Stop watches - workaround for the triggers

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2168 a333f486-631f-4898-b8df-5754b55c2be0
romainq 12 年之前
父節點
當前提交
7062733a08
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      core/ormstopwatch.class.inc.php

+ 7 - 1
core/ormstopwatch.class.inc.php

@@ -77,10 +77,16 @@ class ormStopWatch
 
 return false;
 
-		
 		return true;
 	}
 
+	/**
+	 * Necessary for the triggers
+	 */	 	
+	public function __toString()
+	{
+		return (string) $this->iTimeSpent;
+	}
 
 	public function DefineThreshold($iPercent, $tDeadline = null, $bPassed = false, $bTriggered = false, $iOverrun = 0)
 	{