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

SVN:trunk[315]
This commit is contained in:
Romain Quetiez
2010-03-11 08:15:19 +00:00
parent e2524d28d7
commit 5b4057aebb
3 changed files with 2 additions and 2 deletions

View File

@@ -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'));
}
}

View File

@@ -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);

View File

@@ -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());
}