options_table = $options_table; $this->poll = $poll; if ( $raw_option != null ) { $this->option_id = $raw_option->option_id; $this->text = stripslashes($raw_option->option_text); $this->votes = $raw_option->option_votes; $this->order = $raw_option->option_order; } } function get_id() { return $this->option_id; } function get_order() { return $this->order; } function get_text() { return $this->text; } function get_votes() { return $this->votes; } function get_poll() { return $this->poll; } function set_text($text) { $this->text = $text; } function set_order($order) { $this->order = $order; } function set_id($option_id) { $this->option_id = $option_id; } function set_votes($votes) { $this->votes = $votes; } function save() { return $this->options_table->save_option($this); } function destroy() { return $this->options_table->destroy_option($this); } } ?>