protected function get_content_div() { $div = new HTMLTags_Div(); /* * Get the act id */ if (isset($_GET['act_id'])) { $act_id = $_GET['act_id']; } elseif (isset($_GET['scene_id'])) { $act_id = Oedipus_DramaHelper::get_act_id_for_scene_id($_GET['scene_id']); } elseif (isset($_GET['frame_id'])) { $act_id = Oedipus_DramaHelper::get_act_id_for_frame_id($_GET['frame_id']); } else { $act_id = Oedipus_DramaHelper::get_first_act_id_for_drama_id($this->get_drama()->get_id()); } /* *Get the Act */ $act = $this->get_drama()->get_act($act_id); if ($this->get_drama()->is_editable()) { $act->make_editable(); } /* *Get the Act Div */ $div->append($this->get_act_div($act)); return $div; }