Skip to content

Commit

Permalink
Merge pull request #914 from takayukister/dev/5.6
Browse files Browse the repository at this point in the history
Update submission.php
  • Loading branch information
takayukister authored Aug 7, 2022
2 parents eca0333 + 818e4aa commit effd36d
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions includes/submission.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,22 +211,44 @@ public function add_result_props( $args = '' ) {
}


/**
* Retrieves the response property.
*
* @return string The current response property value.
*/
public function get_response() {
return $this->response;
}


/**
* Sets the response property.
*
* @param string $response New response property value.
*/
public function set_response( $response ) {
$this->response = $response;
return true;
}


/**
* Retrieves the contact form property.
*
* @return WPCF7_ContactForm A contact form object.
*/
public function get_contact_form() {
return $this->contact_form;
}


/**
* Search an invalid field by field name.
*
* @param string $name The field name.
* @return array|bool An associative array of validation error
* or false when no invalid field.
*/
public function get_invalid_field( $name ) {
if ( isset( $this->invalid_fields[$name] ) ) {
return $this->invalid_fields[$name];
Expand All @@ -236,11 +258,23 @@ public function get_invalid_field( $name ) {
}


/**
* Retrieves all invalid fields.
*
* @return array Invalid fields.
*/
public function get_invalid_fields() {
return $this->invalid_fields;
}


/**
* Retrieves meta information.
*
* @param string $name Name of the meta information.
* @return string|null The meta information of the given name if it exists,
* null otherwise.
*/
public function get_meta( $name ) {
if ( isset( $this->meta[$name] ) ) {
return $this->meta[$name];
Expand Down

0 comments on commit effd36d

Please sign in to comment.