/** * Removes the child control with the given id * @param string $strControlId * @param boolean $blnRemoveFromForm should the control be removed from the form, too? */ public function RemoveChildControl($strControlId, $blnRemoveFromForm) { $this->blnModified = true; if (array_key_exists($strControlId, $this->objChildControlArray)) { $objChildControl = $this->objChildControlArray[$strControlId]; $objChildControl->objParentControl = null; unset($this->objChildControlArray[$strControlId]); if ($blnRemoveFromForm) { $this->objForm->RemoveControl($objChildControl->ControlId); } } }