/** * add the given child to the form for this object. * @param I2CE_Form $form * @param string $form_name: The form name to add * @param string the id of this form */ public function addChild($form, $form_name, $id) { if ($form->childFormAdded($form_name, $id)) { return true; } $child_form = I2CE_FormFactory::instance()->createContainer($form_name . '|' . $id); if (!$child_form instanceof I2CE_Form) { return false; } $child_form->populate(); return $form->addChildForm($child_form); }