Quellcode durchsuchen

Finalized the demo of impact computation (removed an ugly test message) and added few comments

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@315 a333f486-631f-4898-b8df-5754b55c2be0
romainq vor 15 Jahren
Ursprung
Commit
6f9275eed0
3 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 0 2
      core/attributedef.class.inc.php
  2. 1 0
      core/dbobjectset.class.php
  3. 1 0
      core/valuesetdef.class.inc.php

+ 0 - 2
core/attributedef.class.inc.php

@@ -241,14 +241,12 @@ class AttributeLinkedSet extends AttributeDefinition
 		//       
 		if (($this->IsParam('default_value')) && array_key_exists('this', $aArgs))
 		{
-echo "### this est la <br/>\n";
 			$aValues = $this->Get('default_value')->GetValues($aArgs);
 			$oSet = DBObjectSet::FromArray($this->Get('linked_class'), $aValues);
 			return $oSet;
 		}
 		else
 		{
-echo "### this manque a l'appel<br/>\n";
 			return DBObjectSet::FromScratch($this->Get('linked_class'));
 		}
 	}

+ 1 - 0
core/dbobjectset.class.php

@@ -214,6 +214,7 @@ class DBObjectSet
 
 	public function AddObjectArray($aObjects)
 	{
+		// #@# todo - add a check on the object class ?
 		foreach ($aObjects as $oObj)
 		{
 			$this->AddObject($oObj);

+ 1 - 0
core/valuesetdef.class.inc.php

@@ -180,6 +180,7 @@ class ValueSetRelatedObjectsFromLinkSet extends ValueSetDefinition
 					$aLinksToCreate[] = $oNewLink;
 				}
 			}
+			// #@# or AddObjectArray($aObjects) ?
 			$oSetToCreate = DBObjectSet::FromArray($this->m_sTargetLinkClass, $aLinksToCreate);
 			$this->m_aValues[$oObject->GetKey()] = $oObject->GetAsHTML($oObject->GetName());
 		}