* @link https://TheTempusProject.com/Core
* @license https://opensource.org/licenses/MIT [MIT LICENSE]
*/
namespace TheTempusProject\Houdini\Classes;
use DateTimeZone;
class Forms {
public static $options = [];
/**
* Sets the specified radio button with $x value to checked.
*
* @param {string} [$fieldName] - The name of the radio field.
* @param {string} [$value] - The field value to be selected.
*/
public static function selectRadio( $fieldName, $value ) {
$selected = 'CHECKED:' . $fieldName . '=' . $value;
Components::set( $selected, 'checked="checked"' );
}
/**
* This will add an option to our selected options menu that will
* automatically be selected when the template is rendered.
*
* @param {string} [$value] - The value of the option you want selected.
*/
public static function selectOption( $value ) {
$find = "#\