mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 17:48:43 +02:00
Finalized the demo of impact computation (removed an ugly test message) and added few comments
SVN:trunk[315]
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user