noalyss  Version-6.7.2
Public Member Functions | Static Public Member Functions
IRadio Class Reference
Inheritance diagram for IRadio:
HtmlInput

Public Member Functions

 display ()
 print in html the readonly value of the widget
 input ($p_name=null, $p_value=null)
 show the html input of the widget
 set_check ($p_value)
 set selected to true (checked) if the value equal the parameter

Static Public Member Functions

static test_me ()

Detailed Description

Definition at line 28 of file class_iradio.php.


Member Function Documentation

print in html the readonly value of the widget

Definition at line 49 of file class_iradio.php.

References $check, $r, and selected.

Referenced by input().

        {

        $check = ( $this->selected == true || $this->selected == 't' ) ? "Yes" : "no";
        $r = $check;
        return $r;
        }
IRadio::input ( p_name = null,
p_value = null 
)

show the html input of the widget

Definition at line 32 of file class_iradio.php.

References $check, $r, display(), javascript, name, readOnly, selected, and value.

        {
        $this->name = ($p_name == null) ? $this->name : $p_name;
        $this->value = ($p_value == null) ? $this->value : $p_value;
        if ($this->readOnly == true)
            return $this->display();

        $check = ( $this->selected == true || $this->selected == 't' ) ? "checked" : "unchecked";
        $r = '<input type="RADIO" name="' . $this->name . '"';
        $r.=" VALUE=\"$this->value\"";
        $r.=($this->javascript != '') ? 'onclick="' . $this->javascript . '"' : '';
        $r.="  $check > ";
        return $r;
        }
IRadio::set_check ( p_value)

set selected to true (checked) if the value equal the parameter

Parameters:
$p_valuevalue to compare

Definition at line 61 of file class_iradio.php.

References selected, and value.

        {
        if ($this->value == $p_value)
            $this->selected = true;
        }
static IRadio::test_me ( ) [static]

Definition at line 67 of file class_iradio.php.

        {
        
        }

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations