ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilSurveyMaterial Class Reference

Survey material class. More...

+ Collaboration diagram for ilSurveyMaterial:

Public Member Functions

 __construct ()
 ilSurveyMaterial constructor
 __set ($name, $value)
 __get ($name)

Protected Attributes

 $data

Detailed Description

Survey material class.

Author
Helmut Schottmüller ilias.nosp@m.@aur.nosp@m.ealis.nosp@m..de
Version
Id:
class.ilSurveyMaterial.php 20554 2009-07-13 23:11:39Z hschottm

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

Constructor & Destructor Documentation

ilSurveyMaterial::__construct ( )

ilSurveyMaterial constructor

Definition at line 42 of file class.ilSurveyMaterial.php.

References MATERIAL_TYPE_INTERNALLINK.

{
$this->data = array(
'internal_link' => '',
'title' => '',
'url' => '',
'filename' => ''
);
}

Member Function Documentation

ilSurveyMaterial::__get (   $name)

Definition at line 58 of file class.ilSurveyMaterial.php.

{
if (array_key_exists($name, $this->data))
{
switch ($name)
{
case 'internal_link':
case 'import_id':
case 'material_title':
case 'text_material':
case 'file_material':
case 'external_link':
return (strlen($this->data[$name])) ? $this->data[$name] : NULL;
break;
default:
return $this->data[$name];
}
}
return null;
}
ilSurveyMaterial::__set (   $name,
  $value 
)

Definition at line 53 of file class.ilSurveyMaterial.php.

{
$this->data[$name] = $value;
}

Field Documentation

ilSurveyMaterial::$data
protected

Definition at line 37 of file class.ilSurveyMaterial.php.


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