ILIAS  Release_5_0_x_branch Revision 61816
 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)

Data Fields

const MATERIAL_TYPE_INTERNALLINK = 0
const MATERIAL_TYPE_URL = 1
const MATERIAL_TYPE_FILE = 2

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 43723 2013-07-29 11:19:02Z jluetzen

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

Constructor & Destructor Documentation

ilSurveyMaterial::__construct ( )

ilSurveyMaterial constructor

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

{
$this->data = array(
'type' => self::MATERIAL_TYPE_INTERNALLINK,
'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.

const ilSurveyMaterial::MATERIAL_TYPE_FILE = 2

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

const ilSurveyMaterial::MATERIAL_TYPE_INTERNALLINK = 0

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

const ilSurveyMaterial::MATERIAL_TYPE_URL = 1

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


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