public static function add_note_to_frame_with_default_content(Oedipus_Frame $frame) { $note_text = Oedipus_LanguageHelper::get_default_note_text_for_frame(); return self::add_note_to_frame($frame, $note_text); }
public function get_explanation_for_stated_intention(Oedipus_Character $character, Oedipus_StatedIntention $stated_intention, Oedipus_Option $option) { return Oedipus_LanguageHelper::get_explanation_for_stated_intention($character, $stated_intention, $option); }
public function get_stated_intention_tile(Oedipus_StatedIntention $stated_intention, Oedipus_Character $character, $explanation) { // <a href="#" class="si-tile" id="character1-option1">0</a> if ($this->frame->is_editable()) { $html_tile_link = PublicHTML_URLHelper::get_oo_page_url('Oedipus_EditFrameRedirectScript', array('frame_id' => $this->frame->get_id(), 'edit_stated_intention' => 1, 'stated_intention_id' => $stated_intention->get_id(), 'stated_intention_tile' => $stated_intention->get_tile(), 'stated_intention_doubt' => $stated_intention->get_doubt())); if (isset($_GET['edit_frame'])) { $html_tile_link->set_get_variable('return_to_get', 'edit_frame'); } } else { $html_tile_link = new HTMLTags_URL(); $html_tile_link->set_file('#'); } $html_tile = new HTMLTags_A($stated_intention->get_tile() . $stated_intention->get_doubt()); $html_tile->set_href($html_tile_link); /** * An explanation for the position is set here in the * title attribute, for the javascript to use as a * cool -tip */ $html_tile->set_attribute_str('title', Oedipus_LanguageHelper::get_possessive($character->get_name()) . " Stated Intention" . '|' . $explanation); $html_tile->set_attribute_str('class', 'si-tile'); $html_tile_id = $character->get_color() . $stated_intention->get_tile() . $this->add_q_to_doubt($stated_intention->get_doubt()); $html_tile->set_attribute_str('id', $html_tile_id); return $html_tile; }