ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilSurveyMaterial Class Reference

Survey material class. More...

+ Collaboration diagram for ilSurveyMaterial:

Public Member Functions

 __construct ()
 ilSurveyMaterial constructor More...
 
 __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$

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

Constructor & Destructor Documentation

◆ __construct()

ilSurveyMaterial::__construct ( )

ilSurveyMaterial constructor

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

References array, and data.

43  {
44  $this->data = array(
45  'type' => self::MATERIAL_TYPE_INTERNALLINK,
46  'internal_link' => '',
47  'title' => '',
48  'url' => '',
49  'filename' => ''
50  );
51  }
Add some data
Create styles array
The data for the language used.

Member Function Documentation

◆ __get()

ilSurveyMaterial::__get (   $name)

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

References data.

59  {
60  if (array_key_exists($name, $this->data))
61  {
62  switch ($name)
63  {
64  case 'internal_link':
65  case 'import_id':
66  case 'material_title':
67  case 'text_material':
68  case 'file_material':
69  case 'external_link':
70  return (strlen($this->data[$name])) ? $this->data[$name] : NULL;
71  break;
72  default:
73  return $this->data[$name];
74  }
75  }
76  return null;
77  }
Add some data

◆ __set()

ilSurveyMaterial::__set (   $name,
  $value 
)

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

References data.

54  {
55  $this->data[$name] = $value;
56  }
Add some data

Field Documentation

◆ $data

ilSurveyMaterial::$data
protected

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

◆ MATERIAL_TYPE_FILE

const ilSurveyMaterial::MATERIAL_TYPE_FILE = 2

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

◆ MATERIAL_TYPE_INTERNALLINK

const ilSurveyMaterial::MATERIAL_TYPE_INTERNALLINK = 0

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

◆ MATERIAL_TYPE_URL

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: