function addForm(Am_Form_Setup $form) { $id = $form->getPageId(); if (isset($this->forms[$id])) { throw new Am_Exception_InternalError("Form [{$id}] is already exists"); } $this->forms[$id] = $form; return $this; }