Survey material class.
More...
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.
◆ __construct()
ilSurveyMaterial::__construct |
( |
| ) |
|
ilSurveyMaterial constructor
Definition at line 42 of file class.ilSurveyMaterial.php.
43 {
44 $this->data = array(
45 'type' => self::MATERIAL_TYPE_INTERNALLINK,
46 'internal_link' => '',
47 'title' => '',
48 'url' => '',
49 'filename' => ''
50 );
51 }
◆ __get()
ilSurveyMaterial::__get |
( |
|
$name | ) |
|
Definition at line 58 of file class.ilSurveyMaterial.php.
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 }
◆ __set()
ilSurveyMaterial::__set |
( |
|
$name, |
|
|
|
$value |
|
) |
| |
◆ $data
◆ MATERIAL_TYPE_FILE
const ilSurveyMaterial::MATERIAL_TYPE_FILE = 2 |
◆ MATERIAL_TYPE_INTERNALLINK
const ilSurveyMaterial::MATERIAL_TYPE_INTERNALLINK = 0 |
◆ MATERIAL_TYPE_URL
const ilSurveyMaterial::MATERIAL_TYPE_URL = 1 |
The documentation for this class was generated from the following file: