public function get_explanation_for_stated_intention(Oedipus_Character $character, Oedipus_StatedIntention $stated_intention, Oedipus_Option $option) { /* *Set the Phrases */ $owner_of_option = $character->get_name(); $owner_of_option_is_plural = self::is_plural($owner_of_option); if ($owner_of_option_is_plural) { $pronoun = ' they '; } else { $pronoun = ' he/she '; } $will_or_wont = self::get_stated_intention_str($stated_intention, $owner_of_position_is_plural); /* *Construct the sentence */ $explanation = ''; $explanation .= $owner_of_option . ' '; if ($owner_of_option_is_plural) { $explanation .= 'have '; } else { $explanation .= 'has '; } $explanation .= 'stated that ' . $pronoun . ' '; $explanation .= $will_or_wont . ' '; $explanation .= $option->get_name() . '.'; return $explanation; }
public function __construct(Oedipus_Frame $frame, Oedipus_Option $option, $iteration) { parent::__construct($frame, 'option_editor'); // $this->frame = $frame; # Name Input $this->add_input_name_with_value('option_name', $option->get_name(), 'Option ' . $iteration); # Hidden Inputs $this->add_hidden_input('option_id', $option->get_id()); }
public function add_option(Oedipus_Option $option) { $this->options[$option->get_id()] = $option; }