[Fusionforge-commits] r19345 - in trunk/src/common: reporting survey tracker

Marc-Etienne VARGENAU vargenau at fusionforge.org
Mon Mar 3 18:42:33 CET 2014


Author: vargenau
Date: 2014-03-03 18:42:33 +0100 (Mon, 03 Mar 2014)
New Revision: 19345

Modified:
   trunk/src/common/reporting/ReportDownloads.class.php
   trunk/src/common/reporting/ReportGroupAdded.class.php
   trunk/src/common/reporting/ReportGroupCum.class.php
   trunk/src/common/reporting/ReportPerGroupDocmanDownloads.class.php
   trunk/src/common/reporting/ReportProjectAct.class.php
   trunk/src/common/reporting/ReportProjectTime.class.php
   trunk/src/common/reporting/ReportSiteAct.class.php
   trunk/src/common/reporting/ReportSiteTime.class.php
   trunk/src/common/reporting/ReportUserAct.class.php
   trunk/src/common/reporting/ReportUserAdded.class.php
   trunk/src/common/reporting/ReportUserCum.class.php
   trunk/src/common/reporting/ReportUserTime.class.php
   trunk/src/common/survey/SurveyFactory.class.php
   trunk/src/common/survey/SurveyQuestion.class.php
   trunk/src/common/survey/SurveyQuestionFactory.class.php
   trunk/src/common/survey/SurveyResponse.class.php
   trunk/src/common/survey/SurveyResponseFactory.class.php
   trunk/src/common/tracker/ArtifactFactory.class.php
Log:
No "::" in error messages

Modified: trunk/src/common/reporting/ReportDownloads.class.php
===================================================================
--- trunk/src/common/reporting/ReportDownloads.class.php	2014-03-03 17:41:44 UTC (rev 19344)
+++ trunk/src/common/reporting/ReportDownloads.class.php	2014-03-03 17:42:33 UTC (rev 19345)
@@ -103,7 +103,7 @@
 		$this->end_date=$end;
 
 		if (!$res || db_error()) {
-			$this->setError('ReportUserAct:: '.db_error());
+			$this->setError('ReportUserAct: '.db_error());
 			return false;
 		}
 

Modified: trunk/src/common/reporting/ReportGroupAdded.class.php
===================================================================
--- trunk/src/common/reporting/ReportGroupAdded.class.php	2014-03-03 17:41:44 UTC (rev 19344)
+++ trunk/src/common/reporting/ReportGroupAdded.class.php	2014-03-03 17:42:33 UTC (rev 19345)
@@ -55,7 +55,7 @@
 	$this->end_date=$end;
 
 	if (!$res || db_error()) {
-		$this->setError('ReportGroupAdded:: '.db_error());
+		$this->setError('ReportGroupAdded: '.db_error());
 		return false;
 	}
 	$this->setSpan($span);

Modified: trunk/src/common/reporting/ReportGroupCum.class.php
===================================================================
--- trunk/src/common/reporting/ReportGroupCum.class.php	2014-03-03 17:41:44 UTC (rev 19344)
+++ trunk/src/common/reporting/ReportGroupCum.class.php	2014-03-03 17:42:33 UTC (rev 19345)
@@ -55,7 +55,7 @@
 	$this->end_date=$end;
 
 	if (!$res || db_error()) {
-		$this->setError('ReportGroupAdded:: '.db_error());
+		$this->setError('ReportGroupAdded: '.db_error());
 		return false;
 	}
 	$this->setSpan($span);

Modified: trunk/src/common/reporting/ReportPerGroupDocmanDownloads.class.php
===================================================================
--- trunk/src/common/reporting/ReportPerGroupDocmanDownloads.class.php	2014-03-03 17:41:44 UTC (rev 19344)
+++ trunk/src/common/reporting/ReportPerGroupDocmanDownloads.class.php	2014-03-03 17:42:33 UTC (rev 19345)
@@ -88,7 +88,7 @@
 		$this->end_date = $end;
 
 		if (!$res || db_error()) {
-			$this->setError('ReportUserAct:: '.db_error());
+			$this->setError('ReportUserAct: '.db_error());
 			return;
 		}
 

Modified: trunk/src/common/reporting/ReportProjectAct.class.php
===================================================================
--- trunk/src/common/reporting/ReportProjectAct.class.php	2014-03-03 17:41:44 UTC (rev 19344)
+++ trunk/src/common/reporting/ReportProjectAct.class.php	2014-03-03 17:42:33 UTC (rev 19345)
@@ -65,7 +65,7 @@
 	$this->end_date=$end;
 
 	if (!$res || db_error()) {
-		$this->setError('ReportProjectAct:: '.db_error());
+		$this->setError('ReportProjectAct: '.db_error());
 		return false;
 	}
 	$this->setSpan($span);

Modified: trunk/src/common/reporting/ReportProjectTime.class.php
===================================================================
--- trunk/src/common/reporting/ReportProjectTime.class.php	2014-03-03 17:41:44 UTC (rev 19344)
+++ trunk/src/common/reporting/ReportProjectTime.class.php	2014-03-03 17:42:33 UTC (rev 19345)
@@ -113,7 +113,7 @@
 	$this->end_date=$end;
 
 	if (!$res || db_error()) {
-		$this->setError('ReportUserAct:: '.db_error());
+		$this->setError('ReportUserAct: '.db_error());
 		return false;
 	}
 

Modified: trunk/src/common/reporting/ReportSiteAct.class.php
===================================================================
--- trunk/src/common/reporting/ReportSiteAct.class.php	2014-03-03 17:41:44 UTC (rev 19344)
+++ trunk/src/common/reporting/ReportSiteAct.class.php	2014-03-03 17:42:33 UTC (rev 19345)
@@ -57,7 +57,7 @@
 	$this->end_date=$end;
 
 	if (!$res || db_error()) {
-		$this->setError('ReportProjectAct:: '.db_error());
+		$this->setError('ReportProjectAct: '.db_error());
 		return false;
 	}
 	$this->setSpan($span);

Modified: trunk/src/common/reporting/ReportSiteTime.class.php
===================================================================
--- trunk/src/common/reporting/ReportSiteTime.class.php	2014-03-03 17:41:44 UTC (rev 19344)
+++ trunk/src/common/reporting/ReportSiteTime.class.php	2014-03-03 17:42:33 UTC (rev 19345)
@@ -92,7 +92,7 @@
 	$this->end_date=$end;
 
 	if (!$res || db_error()) {
-		$this->setError('ReportUserAct:: '.db_error());
+		$this->setError('ReportUserAct: '.db_error());
 		return false;
 	}
 

Modified: trunk/src/common/reporting/ReportUserAct.class.php
===================================================================
--- trunk/src/common/reporting/ReportUserAct.class.php	2014-03-03 17:41:44 UTC (rev 19344)
+++ trunk/src/common/reporting/ReportUserAct.class.php	2014-03-03 17:42:33 UTC (rev 19345)
@@ -64,7 +64,7 @@
 	$this->end_date=$end;
 
 	if (!$res || db_error()) {
-		$this->setError('ReportUserAct:: '.db_error());
+		$this->setError('ReportUserAct: '.db_error());
 		return false;
 	}
 	$this->setSpan($span);

Modified: trunk/src/common/reporting/ReportUserAdded.class.php
===================================================================
--- trunk/src/common/reporting/ReportUserAdded.class.php	2014-03-03 17:41:44 UTC (rev 19344)
+++ trunk/src/common/reporting/ReportUserAdded.class.php	2014-03-03 17:42:33 UTC (rev 19345)
@@ -55,7 +55,7 @@
 	$this->end_date=$end;
 
 	if (!$res || db_error()) {
-		$this->setError('ReportUserAdded:: '.db_error());
+		$this->setError('ReportUserAdded: '.db_error());
 		return false;
 	}
 	$this->setSpan($span);

Modified: trunk/src/common/reporting/ReportUserCum.class.php
===================================================================
--- trunk/src/common/reporting/ReportUserCum.class.php	2014-03-03 17:41:44 UTC (rev 19344)
+++ trunk/src/common/reporting/ReportUserCum.class.php	2014-03-03 17:42:33 UTC (rev 19345)
@@ -55,7 +55,7 @@
 	$this->end_date=$end;
 
 	if (!$res || db_error()) {
-		$this->setError('ReportUserAdded:: '.db_error());
+		$this->setError('ReportUserAdded: '.db_error());
 		return false;
 	}
 	$this->setSpan($span);

Modified: trunk/src/common/reporting/ReportUserTime.class.php
===================================================================
--- trunk/src/common/reporting/ReportUserTime.class.php	2014-03-03 17:41:44 UTC (rev 19344)
+++ trunk/src/common/reporting/ReportUserTime.class.php	2014-03-03 17:42:33 UTC (rev 19345)
@@ -91,7 +91,7 @@
 	$this->end_date=$end;
 
 	if (!$res || db_error()) {
-		$this->setError('ReportUserAct:: '.db_error());
+		$this->setError('ReportUserAct: '.db_error());
 		return false;
 	}
 

Modified: trunk/src/common/survey/SurveyFactory.class.php
===================================================================
--- trunk/src/common/survey/SurveyFactory.class.php	2014-03-03 17:41:44 UTC (rev 19344)
+++ trunk/src/common/survey/SurveyFactory.class.php	2014-03-03 17:42:33 UTC (rev 19345)
@@ -56,7 +56,7 @@
 		}
 
 		if ($Group->isError()) {
-			$this->setError(_('Survey').':: '.$Group->getErrorMessage());
+			$this->setError(_('Survey')._(': ').$Group->getErrorMessage());
 			return;
 		}
 		if (!$Group->usesSurvey()) {

Modified: trunk/src/common/survey/SurveyQuestion.class.php
===================================================================
--- trunk/src/common/survey/SurveyQuestion.class.php	2014-03-03 17:41:44 UTC (rev 19344)
+++ trunk/src/common/survey/SurveyQuestion.class.php	2014-03-03 17:42:33 UTC (rev 19345)
@@ -58,7 +58,7 @@
 			return;
 		}
 		if ($Group->isError()) {
-			$this->setError('Survey:: '.$Group->getErrorMessage());
+			$this->setError('Survey: '.$Group->getErrorMessage());
 			return;
 		}
 		$this->Group =& $Group;

Modified: trunk/src/common/survey/SurveyQuestionFactory.class.php
===================================================================
--- trunk/src/common/survey/SurveyQuestionFactory.class.php	2014-03-03 17:41:44 UTC (rev 19344)
+++ trunk/src/common/survey/SurveyQuestionFactory.class.php	2014-03-03 17:42:33 UTC (rev 19345)
@@ -54,7 +54,7 @@
 			return;
 		}
 		if ($Group->isError()) {
-			$this->setError(_('Survey').':: '.$Group->getErrorMessage());
+			$this->setError(_('Survey')._(': ').$Group->getErrorMessage());
 			return;
 		}
 		if (!$Group->usesSurvey()) {

Modified: trunk/src/common/survey/SurveyResponse.class.php
===================================================================
--- trunk/src/common/survey/SurveyResponse.class.php	2014-03-03 17:41:44 UTC (rev 19344)
+++ trunk/src/common/survey/SurveyResponse.class.php	2014-03-03 17:42:33 UTC (rev 19345)
@@ -56,7 +56,7 @@
 			return;
 		}
 		if ($Group->isError()) {
-			$this->setError('Survey:: '.$Group->getErrorMessage());
+			$this->setError('Survey: '.$Group->getErrorMessage());
 			return;
 		}
 		$this->Group =& $Group;

Modified: trunk/src/common/survey/SurveyResponseFactory.class.php
===================================================================
--- trunk/src/common/survey/SurveyResponseFactory.class.php	2014-03-03 17:41:44 UTC (rev 19344)
+++ trunk/src/common/survey/SurveyResponseFactory.class.php	2014-03-03 17:42:33 UTC (rev 19345)
@@ -77,7 +77,7 @@
 			return;
 		}
 		if ($survey->isError()) {
-			$this->setError(_('Survey').':: '.$survey->getErrorMessage());
+			$this->setError(_('Survey')._(': ').$survey->getErrorMessage());
 			return;
 		}
 		if (!$question || !is_object($question)) {
@@ -85,7 +85,7 @@
 			return;
 		}
 		if ($question->isError()) {
-			$this->setError(_('Survey').':: '.$question->getErrorMessage());
+			$this->setError(_('Survey')._(': ').$question->getErrorMessage());
 			return;
 		}
 

Modified: trunk/src/common/tracker/ArtifactFactory.class.php
===================================================================
--- trunk/src/common/tracker/ArtifactFactory.class.php	2014-03-03 17:41:44 UTC (rev 19344)
+++ trunk/src/common/tracker/ArtifactFactory.class.php	2014-03-03 17:42:33 UTC (rev 19345)
@@ -72,11 +72,11 @@
 	function __construct(&$ArtifactType) {
 		$this->Error();
 		if (!$ArtifactType || !is_object($ArtifactType)) {
-			$this->setError('ArtifactFactory:: No Valid ArtifactType Object');
+			$this->setError('ArtifactFactory: No Valid ArtifactType Object');
 			return;
 		}
 		if ($ArtifactType->isError()) {
-			$this->setError('ArtifactFactory:: '.$ArtifactType->getErrorMessage());
+			$this->setError('ArtifactFactory: '.$ArtifactType->getErrorMessage());
 			return;
 		}
 		$this->ArtifactType =& $ArtifactType;




More information about the Fusionforge-commits mailing list