예제 #1
0
 /**
  * Detaches the form object from the page.
  * @param TForm an instance of TForm or its desendent class
  */
 public function unsetForm(TForm $form)
 {
     if (isset($this->forms[$form->getUniqueID()])) {
         unset($this->forms[$form->getUniqueID()]);
     }
     if (!is_null($this->form) && $form->getUniqueID() == $this->form->getUniqueID()) {
         $this->form = null;
     }
 }