# contact-forms/2.2.0/PFBC/Element/YesNo.php

Contact Forms by Cimatti, version 2.2.0. 24 lines.

- Page: https://pluginprobe.com/plugins/contact-forms/2.2.0/code/PFBC/Element/YesNo.php
- Raw: https://pluginprobe.com/plugins/contact-forms/2.2.0/raw/PFBC/Element/YesNo.php
- Modified: 2026-04-08T09:49:58+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/contact-forms/2.2.0/code/PFBC/Element/YesNo.php#L10-L20`.

```php
<?php
/**
 * PFBC (PHP Form Builder Class) - Third-party library
 * @package PFBC
 */

// phpcs:disable WordPress.Security.EscapeOutput, WordPress.NamingConventions.PrefixAllGlobals, PluginCheck.CodeAnalysis.Heredoc -- Third-party library

class Element_YesNo extends Element_Radio {
	public function __construct($label, $name, array $properties = null) {
		$options = array(
			"1" => "Yes",
			"0" => "No"
		);

		if(!is_array($properties))
			$properties = array("inline" => 1);
		elseif(!array_key_exists("inline", $properties))
			$properties["inline"] = 1;
		
		parent::__construct($label, $name, $options, $properties);
    }
}

```
