protected function do_actions()
 {
     $this->set_return_message('edited note');
     $this->get_variables = array();
     /*
      * The $_POST
      */
     if (isset($_POST['edit_note']) && isset($_POST['note_id']) && isset($_POST['note_text'])) {
         Oedipus_NotesHelper::set_note_text($_POST['note_id'], $_POST['note_text']);
     } elseif (isset($_POST['add_note']) && isset($_POST['scene_id'])) {
         $scene = Oedipus_DramaHelper::get_scene_by_id($_POST['scene_id']);
         if (isset($_POST['note_text'])) {
             Oedipus_NotesHelper::add_note_to_scene($scene, $_POST['note_text']);
         }
     }
     /*
      * The $_GET
      */
     if (isset($_POST['drama_id'])) {
         $this->get_variables['drama_id'] = $_POST['drama_id'];
     }
     if (isset($_POST['scene_id'])) {
         $this->get_variables['scene_id'] = $_POST['scene_id'];
     }
     $return_to_url = $this->get_return_to_url();
     $this->set_return_to_url($return_to_url);
 }
 private function add_frame($scene_id, $frame_name, $parent_frame_id)
 {
     /*
      * Get the scene
      */
     $scene = Oedipus_DramaHelper::get_scene_by_id($scene_id);
     /*
      * Add a default frame to the scene
      */
     $frame = Oedipus_DramaHelper::add_frame($scene, $frame_name, $parent_frame_id);
     /*
      * Add a default note for the frame
      */
     $note = Oedipus_NotesHelper::add_note_to_frame_with_default_content($frame);
     return $frame;
 }