/** * Destructor (remove the current form in the static list) * * @access public * @author Cédric Alfonsi, <*****@*****.**> * @return mixed */ public function __destruct() { if (!is_null($this->form)) { //remove the refs of the contained form unset(self::$forms[$this->form->getName()]); } }