/**
  * Display additional email options.
  * Allow descendants to use the standard email form rendering, while still adding new mailing options.
  * @param FORM_RENDERER $renderer
  * @access private
  */
 protected function _draw_options($renderer)
 {
     parent::_draw_options($renderer);
     $renderer->draw_check_box_row('include_browser_info');
     $renderer->draw_check_box_row('include_page_data');
 }
 /**
  * Initialize the form's fields with default values and visibilities.
  */
 public function load_with_defaults()
 {
     parent::load_with_defaults();
     $this->set_value('send_to', $this->context->mail_options->webmaster_address);
     $this->set_value('subject', "General Support Question");
 }
 /**
  * @param SEND_MAIL_FORM $obj
  * @param MAIL_OBJECT_RENDERER_OPTIONS $options
  * @access private
  */
 protected function _echo_text_content($obj, $options)
 {
     if ($obj->value_for('message')) {
         $munger = $this->context->plain_text_formatter();
         echo $this->line($munger->transform($obj->value_for('message')));
         echo $this->par('- ' . $obj->value_for('sender_name'));
     }
 }
 /**
  * Initialize the form's fields with default values and visibilities.
  */
 public function load_with_defaults()
 {
     parent::load_with_defaults();
     $this->set_value('send_to', $this->context->mail_options->webmaster_address);
     $this->set_value('subject', "Problem with browser detection");
 }
 /**
  * Display additional email options.
  * Allow descendants to use the standard email form rendering, while still adding new mailing options.
  * @param FORM_RENDERER $renderer
  * @access private
  */
 protected function _draw_options($renderer)
 {
     parent::_draw_options($renderer);
     $props = $renderer->make_list_properties();
     $props->add_item('Send one email to all recipients.', 'single_mail');
     $props->add_item('Send separate email to each recipient.*', 'multiple_mail');
     $renderer->draw_radio_group_row('email_type', $props);
     $renderer->draw_text_box_row('recipients', 'short-medium');
 }