Submission::get_submission_values( array $args = array() )

Returns all submission values that belong to the submission.

Description

See also

Parameters

$args

(array) (Optional) Additional query arguments.

Default value: array()

Return

(awsmug\Torro_Forms\DB_Objects\Submissions\Submission_Value_Collection) List of submission values.

Source

File: src/db-objects/submissions/submission.php

	public function get_submission_values( $args = array() ) {
		if ( empty( $this->id ) ) {
			return $this->manager->get_child_manager( 'submission_values' )->get_collection( array(), 0, 'objects' );
		}

		$args = wp_parse_args( $args, array(
			'number'        => -1,
			'submission_id' => $this->id,
		) );

		return $this->manager->get_child_manager( 'submission_values' )->query( $args );
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.