Stop watches - workaround for the triggers

SVN:trunk[2168]
This commit is contained in:
Romain Quetiez
2012-09-07 14:39:29 +00:00
parent c37135af55
commit 95785ee22d

View File

@@ -77,10 +77,16 @@ class ormStopWatch
return false; return false;
return true; 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) public function DefineThreshold($iPercent, $tDeadline = null, $bPassed = false, $bTriggered = false, $iOverrun = 0)
{ {