ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilSurveyCategory Class Reference

Survey category class. More...

+ Collaboration diagram for ilSurveyCategory:

Public Member Functions

 __construct ($title=null, $other=0, $neutral=0, $label=null, $scale=null)
 ilSurveyPhrases constructor
 __get ($value)
 Object getter.
 __set ($key, $value)
 Object setter.

Private Attributes

 $arrData

Detailed Description

Survey category class.

The ilSurveyCategory class encapsules a survey category

Author
Helmut Schottmüller ilias.nosp@m.@aur.nosp@m.ealis.nosp@m..de
Version
$Id$

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

Constructor & Destructor Documentation

ilSurveyCategory::__construct (   $title = null,
  $other = 0,
  $neutral = 0,
  $label = null,
  $scale = null 
)

ilSurveyPhrases constructor

Definition at line 41 of file class.ilSurveyCategory.php.

References $title.

{
$this->arrData = array(
"title" => $title,
"other" => $other,
"neutral" => $neutral,
"label" => $label,
"scale" => $scale
);
}

Member Function Documentation

ilSurveyCategory::__get (   $value)

Object getter.

Definition at line 61 of file class.ilSurveyCategory.php.

{
switch ($value)
{
case 'other':
case 'neutral':
return ($this->arrData[$value]) ? 1 : 0;
break;
default:
if (array_key_exists($value, $this->arrData))
{
return $this->arrData[$value];
}
else
{
return null;
}
break;
}
}
ilSurveyCategory::__set (   $key,
  $value 
)

Object setter.

Definition at line 85 of file class.ilSurveyCategory.php.

{
switch ($key)
{
default:
$this->arrData[$key] = $value;
break;
}
}

Field Documentation

ilSurveyCategory::$arrData
private

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


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