Public Member Functions | Protected Attributes

ilRadioOption Class Reference
[Services/Form]

This class represents an option in a radio group. More...

Public Member Functions

 __construct ($a_title="", $a_value="", $a_info="")
 setTitle ($a_title)
 Set Title.
 getTitle ()
 Get Title.
 setInfo ($a_info)
 Set Info.
 getInfo ()
 Get Info.
 setValue ($a_value)
 Set Value.
 getValue ()
 Get Value.
 addSubItem ($a_item)
 Add Subitem.
 getSubItems ()
 Get Subitems.

Protected Attributes

 $title
 $value
 $info
 $sub_items = array()

Detailed Description

This class represents an option in a radio group.

Author:
Alex Killing <alex.killing@gmx.de>
Version:
$Id$

Definition at line 31 of file class.ilRadioOption.php.


Constructor & Destructor Documentation

ilRadioOption::__construct ( a_title = "",
a_value = "",
a_info = "" 
)

Definition at line 38 of file class.ilRadioOption.php.

References setInfo(), setTitle(), and setValue().

        {
                $this->setTitle($a_title);
                $this->setValue($a_value);
                $this->setInfo($a_info);
        }

Here is the call graph for this function:


Member Function Documentation

ilRadioOption::addSubItem ( a_item  ) 

Add Subitem.

Parameters:
object $a_item Item

Definition at line 110 of file class.ilRadioOption.php.

Referenced by ilObjRemoteCourseGUI::initEditTable(), and ilLDAPSettingsGUI::initFormRoleAssignments().

        {
                $this->sub_items[] = $a_item;
        }

Here is the caller graph for this function:

ilRadioOption::getInfo (  ) 

Get Info.

Returns:
string Info

Definition at line 80 of file class.ilRadioOption.php.

        {
                return $this->info;
        }

ilRadioOption::getSubItems (  ) 

Get Subitems.

Returns:
array Array of items

Definition at line 120 of file class.ilRadioOption.php.

        {
                return $this->sub_items;
        }

ilRadioOption::getTitle (  ) 

Get Title.

Returns:
string Title

Definition at line 60 of file class.ilRadioOption.php.

        {
                return $this->title;
        }

ilRadioOption::getValue (  ) 

Get Value.

Returns:
string Value

Definition at line 100 of file class.ilRadioOption.php.

        {
                return $this->value;
        }

ilRadioOption::setInfo ( a_info  ) 

Set Info.

Parameters:
string $a_info Info

Definition at line 70 of file class.ilRadioOption.php.

Referenced by __construct(), and ilLDAPSettingsGUI::initFormRoleAssignments().

        {
                $this->info = $a_info;
        }

Here is the caller graph for this function:

ilRadioOption::setTitle ( a_title  ) 

Set Title.

Parameters:
string $a_title Title

Definition at line 50 of file class.ilRadioOption.php.

Referenced by __construct().

        {
                $this->title = $a_title;
        }

Here is the caller graph for this function:

ilRadioOption::setValue ( a_value  ) 

Set Value.

Parameters:
string $a_value Value

Definition at line 90 of file class.ilRadioOption.php.

Referenced by __construct(), and ilLDAPSettingsGUI::initFormRoleAssignments().

        {
                $this->value = $a_value;
        }

Here is the caller graph for this function:


Field Documentation

ilRadioOption::$info [protected]

Definition at line 35 of file class.ilRadioOption.php.

ilRadioOption::$sub_items = array() [protected]

Definition at line 36 of file class.ilRadioOption.php.

ilRadioOption::$title [protected]

Definition at line 33 of file class.ilRadioOption.php.

ilRadioOption::$value [protected]

Definition at line 34 of file class.ilRadioOption.php.


The documentation for this class was generated from the following file: