/** * @param CONTEXT $context */ public function __construct($context) { parent::__construct($context); $this->set_required('sender_name', false); $this->set_required('sender_email', false); $field = $this->field_at('sender_email'); $field->description = 'Optional, but lets us follow up if we have any questions.'; $field = $this->field_at('message'); $field->description = 'Briefly describe the problem with our browser detection (very useful).'; }
/** * @param CONTEXT $context */ public function __construct($context) { parent::__construct($context); $this->set_required('sender_name', false); $this->set_required('sender_email', false); $this->set_required('message', true); $field = $this->field_at('sender_email'); $field->description = 'Optional, but lets us follow up if we have any questions.'; $field = $this->field_at('message'); $field->description = 'Briefly describe the question or problem you\'re having.'; }
/** * @param CONTEXT $context */ public function __construct($context) { parent::__construct($context); $field = new BOOLEAN_FIELD(); $field->id = 'include_browser_info'; $field->caption = 'Browser'; $field->description = 'Include information about your browser and operating system.'; $this->add_field($field); $field = new BOOLEAN_FIELD(); $field->id = 'include_page_data'; $field->caption = 'Data'; $field->description = 'Include page, form and cookie data. Excludes passwords, but may include other personal information.'; $this->add_field($field); $this->set_required('sender_name', false); $this->set_required('sender_email', false); $field = $this->field_at('sender_email'); $field->description = 'Optional, but lets us follow up if we have any questions.'; $field = $this->field_at('message'); $field->description = 'Briefly describe what you were doing when the error occurred (very useful).'; }
/** * @param APPLICATION $context Main application. */ public function __construct($context) { parent::__construct($context); $field = new TEXT_FIELD(); $field->id = 'recipients'; $field->caption = 'Recipients'; $field->description = 'Type each email on its own line.'; $field->required = true; $field->tag_validator_type = Tag_validator_none; $this->add_field($field); $field = new ENUMERATED_FIELD(); $field->id = 'email_type'; $field->caption = 'Email Options'; $field->description = '*May time out if many emails are specified.'; $field->add_value('single_mail'); $field->add_value('multiple_mail'); $this->add_field($field); $field = $this->field_at('send_to'); $field->required = false; }