Location: PHPKode > scripts > PHP Form Builder Class > pfbc3.1-php5/PFBC/Element/YesNo.php
<?php
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);
    }
}
Return current item: PHP Form Builder Class