Ah, I thought you meant to ask if it’s possible to write to these variables, but now I understand you want me to write what the variables are. ??
The form contains everything related to the form itself
$form = new Form( $post->ID );
$form->title = $post->post_title;
$form->slug = $post->post_name;
$form->markup = $post->post_content;
$form->settings = $settings;
$form->messages = $messages; //success and error messages for the form)
return $form;
And the submission has everything related to what was submitted, I assume the $submission->data is what you are after?
$submission = new Submission();
$submission->id = (int) $object->id;
$submission->form_id = (int) $object->form_id;
$submission->data = $data; //array with the submitted form fields
$submission->ip_address = (string) $object->ip_address;
$submission->user_agent = (string) $object->user_agent;
$submission->referer_url = (string) $object->referer_url;
$submission->submitted_at = $object->submitted_at;
Hope that helps. If you have any questions, please let me know!