Submission_Export_Handler::__construct( string $prefix, awsmug\Torro_Forms\DB_Objects\Submissions\Submission_Manager $submission_manager )

Constructor.

Description

Parameters

$prefix

(string) (Required) Instance prefix.

$submission_manager

(awsmug\Torro_Forms\DB_Objects\Submissions\Submission_Manager) (Required) Submission manager instance.

Source

File: src/components/submission-export-handler.php

	public function __construct( $prefix, $submission_manager ) {
		$this->set_prefix( $prefix );

		$this->submission_manager = $submission_manager;

		$this->modes = array(
			'xls' => new Submission_Export_XLS( $this ),
			'csv' => new Submission_Export_CSV( $this ),
		);

		$this->nonce_action = $this->get_prefix() . 'submission_export';
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.