| @@ -1,16 +1,16 @@ | ||
| 1 | -<?php | |
| 2 | -class Element_YesNo extends Element_Radio { | |
| 3 | - public function __construct($label, $name, array $properties = null) { | |
| 4 | - $options = array( | |
| 5 | - "1" => "Yes", | |
| 6 | - "0" => "No" | |
| 7 | - ); | |
| 8 | - | |
| 9 | - if(!is_array($properties)) | |
| 10 | - $properties = array("inline" => 1); | |
| 11 | - elseif(!array_key_exists("inline", $properties)) | |
| 12 | - $properties["inline"] = 1; | |
| 13 | - | |
| 14 | - parent::__construct($label, $name, $options, $properties); | |
| 15 | - } | |
| 16 | -} | |
| 1 | +<?php | |
| 2 | +class Element_YesNo extends Element_Radio { | |
| 3 | + public function __construct($label, $name, array $properties = null) { | |
| 4 | + $options = array( | |
| 5 | + "1" => "Yes", | |
| 6 | + "0" => "No" | |
| 7 | + ); | |
| 8 | + | |
| 9 | + if(!is_array($properties)) | |
| 10 | + $properties = array("inline" => 1); | |
| 11 | + elseif(!array_key_exists("inline", $properties)) | |
| 12 | + $properties["inline"] = 1; | |
| 13 | + | |
| 14 | + parent::__construct($label, $name, $options, $properties); | |
| 15 | + } | |
| 16 | +} | |