ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ilMDEducational Class Reference
+ Inheritance diagram for ilMDEducational:
+ Collaboration diagram for ilMDEducational:

Public Member Functions

 getTypicalAgeRangeIds ()
 
 getTypicalAgeRange (int $a_typical_age_range_id)
 
 addTypicalAgeRange ()
 
 getDescriptionIds ()
 
 getDescription (int $a_description_id)
 
 addDescription ()
 
 getLanguageIds ()
 
 getLanguage (int $a_language_id)
 
 addLanguage ()
 
 setInteractivityType (string $a_iat)
 
 getInteractivityType ()
 
 setLearningResourceType (string $a_lrt)
 
 getLearningResourceType ()
 
 setInteractivityLevel (string $a_iat)
 
 getInteractivityLevel ()
 
 setSemanticDensity (string $a_sd)
 
 getSemanticDensity ()
 
 setIntendedEndUserRole (string $a_ieur)
 
 getIntendedEndUserRole ()
 
 setContext (string $a_context)
 
 getContext ()
 
 setDifficulty (string $a_difficulty)
 
 getDifficulty ()
 
 setPhysicalTypicalLearningTime (int $months, int $days, int $hours, int $minutes, int $seconds)
 
 setTypicalLearningTime (string $a_tlt)
 
 getTypicalLearningTime ()
 
 getTypicalLearningTimeSeconds ()
 
 save ()
 
 update ()
 
 delete ()
 
 __getFields ()
 
 read ()
 
 toXML (ilXmlWriter $writer)
 
 setMetaId (int $a_meta_id, bool $a_read_data=true)
 Compatibility fix for legacy MD classes for new db tables. More...
 
- Public Member Functions inherited from ilMDBase
 __construct (int $a_rbac_id=0, int $a_obj_id=0, string $a_type='')
 constructor More...
 
 read ()
 
 setRBACId (int $a_id)
 
 getRBACId ()
 
 setObjId (int $a_id)
 
 getObjId ()
 
 setObjType (string $a_type)
 
 getObjType ()
 
 setMetaId (int $a_meta_id, bool $a_read_data=true)
 
 getMetaId ()
 
 setParentType (string $a_parent_type)
 
 getParentType ()
 
 setParentId (int $a_id)
 
 getParentId ()
 
 setExportMode (bool $a_export_mode=true)
 
 getExportMode ()
 
 validate ()
 
 update ()
 
 save ()
 
 delete ()
 
 toXML (ilXmlWriter $writer)
 

Static Public Member Functions

static _getId (int $a_rbac_id, int $a_obj_id)
 
static _getTypicalLearningTimeSeconds (int $a_rbac_id, int $a_obj_id=0)
 

Protected Member Functions

 createOrUpdateLearningResourceType ()
 Compatibility fix for legacy MD classes for new db tables. More...
 
 createOrUpdateIntendedEndUserRole ()
 Compatibility fix for legacy MD classes for new db tables. More...
 
 createOrUpdateContext ()
 Compatibility fix for legacy MD classes for new db tables. More...
 
 createOrUpdateInNewTable (string $table, string $id_field, int $id, string $data_field, string $data_value)
 Compatibility fix for legacy MD classes for new db tables. More...
 
 readFirstLearningResourceType ()
 Compatibility fix for legacy MD classes for new db tables. More...
 
 readFirstIntendedEndUserRole ()
 Compatibility fix for legacy MD classes for new db tables. More...
 
 readFirstContext ()
 Compatibility fix for legacy MD classes for new db tables. More...
 
 deleteAllLearningResourceTypes ()
 Compatibility fix for legacy MD classes for new db tables. More...
 
 deleteAllIntendedEndUserRoles ()
 Compatibility fix for legacy MD classes for new db tables. More...
 
 deleteAllContexts ()
 Compatibility fix for legacy MD classes for new db tables. More...
 
 getLearningResourceTypeId ()
 Compatibility fix for legacy MD classes for new db tables. More...
 
 getIntendedEndUserRoleId ()
 Compatibility fix for legacy MD classes for new db tables. More...
 
 getContextId ()
 Compatibility fix for legacy MD classes for new db tables. More...
 
 readLearningResourceTypeId (int $parent_id)
 Compatibility fix for legacy MD classes for new db tables. More...
 
 readIntendedEndUserRoleId (int $parent_id)
 Compatibility fix for legacy MD classes for new db tables. More...
 
 readContextId (int $parent_id)
 Compatibility fix for legacy MD classes for new db tables. More...
 

Private Attributes

const INTERACTIVITY_TYPE_TRANSLATION
 Compatibility fix for legacy MD classes for new db tables. More...
 
const const LEARNING_RESOURCE_TYPE_TRANSLATION
 
const const const INTERACTIVITY_LEVEL_TRANSLATION
 
const const const const SEMANTIC_DENSITY_TRANSLATION
 
const const const const const INTENDED_END_USER_ROLE_TRANSLATION
 
const const const const const const CONTEXT_TRANSLATION
 
const const const const const const const DIFFICULTY_TRANSLATION
 
const const const const const const const string $interactivity_type = ''
 
string $learning_resource_type = ''
 
string $interactivity_level = ''
 
string $semantic_density = ''
 
string $intended_end_user_role = ''
 
string $context = ''
 
string $difficulty = ''
 
string $typical_learning_time = ''
 
int $learning_resource_type_id = 0
 Compatibility fix for legacy MD classes for new db tables. More...
 
int $intended_end_user_role_id = 0
 
int $context_id = 0
 

Additional Inherited Members

- Protected Attributes inherited from ilMDBase
ilLogger $log
 
ilDBInterface $db
 

Detailed Description

Definition at line 27 of file class.ilMDEducational.php.

Member Function Documentation

◆ __getFields()

ilMDEducational::__getFields ( )
Returns
array<string, array<string, mixed>>

Compatibility fix for legacy MD classes for new db tables

Definition at line 471 of file class.ilMDEducational.php.

References getDifficulty(), getInteractivityLevel(), getInteractivityType(), ilMDBase\getObjId(), ilMDBase\getObjType(), ilMDBase\getRBACId(), getSemanticDensity(), and getTypicalLearningTime().

Referenced by save(), and update().

471  : array
472  {
476  $interactivity_type = (string) array_search(
477  $this->getInteractivityType(),
478  self::INTERACTIVITY_TYPE_TRANSLATION
479  );
480  $interactivity_level = (string) array_search(
481  $this->getInteractivityLevel(),
482  self::INTERACTIVITY_LEVEL_TRANSLATION
483  );
484  $semantic_density = (string) array_search(
485  $this->getSemanticDensity(),
486  self::SEMANTIC_DENSITY_TRANSLATION
487  );
488  $difficulty = (string) array_search(
489  $this->getDifficulty(),
490  self::DIFFICULTY_TRANSLATION
491  );
492 
493  return array(
494  'rbac_id' => array('integer', $this->getRBACId()),
495  'obj_id' => array('integer', $this->getObjId()),
496  'obj_type' => array('text', $this->getObjType()),
497  'interactivity_type' => array('text', $interactivity_type),
498  //'learning_resource_type' => array('text', $this->getLearningResourceType()),
499  'interactivity_level' => array('text', $interactivity_level),
500  'semantic_density' => array('text', $semantic_density),
501  //'intended_end_user_role' => array('text', $this->getIntendedEndUserRole()),
502  //'context' => array('text', $this->getContext()),
503  'difficulty' => array('text', $difficulty),
504  'typical_learning_time' => array('text', $this->getTypicalLearningTime())
505  );
506  }
const const const const const const const string $interactivity_type
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getId()

static ilMDEducational::_getId ( int  $a_rbac_id,
int  $a_obj_id 
)
static

Definition at line 600 of file class.ilMDEducational.php.

References $DIC, $ilDB, $res, and ilDBConstants\FETCHMODE_OBJECT.

Referenced by ilMD\getEducational().

600  : int
601  {
602  global $DIC;
603 
604  $ilDB = $DIC->database();
605 
606  $query = "SELECT meta_educational_id FROM il_meta_educational " .
607  "WHERE rbac_id = " . $ilDB->quote($a_rbac_id, 'integer') . " " .
608  "AND obj_id = " . $ilDB->quote($a_obj_id, 'integer');
609 
610  $res = $ilDB->query($query);
611  while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
612  return (int) $row->meta_educational_id;
613  }
614  return 0;
615  }
$res
Definition: ltiservices.php:69
global $DIC
Definition: shib_login.php:25
+ Here is the caller graph for this function:

◆ _getTypicalLearningTimeSeconds()

static ilMDEducational::_getTypicalLearningTimeSeconds ( int  $a_rbac_id,
int  $a_obj_id = 0 
)
static

Definition at line 617 of file class.ilMDEducational.php.

References $DIC, $ilDB, $res, ilMDUtils\_LOMDurationToArray(), and ilDBConstants\FETCHMODE_OBJECT.

617  : int
618  {
619  global $DIC;
620 
621  $ilDB = $DIC->database();
622 
623  $a_obj_id = $a_obj_id ?: $a_rbac_id;
624 
625  $query = "SELECT typical_learning_time FROM il_meta_educational " .
626  "WHERE rbac_id = " . $ilDB->quote($a_rbac_id, 'integer') . " " .
627  "AND obj_id = " . $ilDB->quote($a_obj_id, 'integer');
628  $res = $ilDB->query($query);
629  while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
630  $time_arr = ilMDUtils::_LOMDurationToArray((string) $row->typical_learning_time);
631  if (!count($time_arr)) {
632  return 0;
633  }
634  return 60 * 60 * 24 * 30 * $time_arr[0] +
635  60 * 60 * 24 * $time_arr[1] +
636  60 * 60 * $time_arr[2] +
637  60 * $time_arr[3] +
638  $time_arr[4];
639  }
640  return 0;
641  }
$res
Definition: ltiservices.php:69
static _LOMDurationToArray(string $a_string)
LOM datatype duration is a string like P2M4DT7H18M2S (2 months 4 days 7 hours 18 minutes 2 seconds) T...
global $DIC
Definition: shib_login.php:25
+ Here is the call graph for this function:

◆ addDescription()

ilMDEducational::addDescription ( )

Definition at line 163 of file class.ilMDEducational.php.

References ilMDBase\getMetaId(), ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

164  {
165  $des = new ilMDDescription($this->getRBACId(), $this->getObjId(), $this->getObjType());
166  $des->setParentId($this->getMetaId());
167  $des->setParentType('meta_educational');
168 
169  return $des;
170  }
+ Here is the call graph for this function:

◆ addLanguage()

ilMDEducational::addLanguage ( )

Definition at line 191 of file class.ilMDEducational.php.

References ilMDBase\getMetaId(), ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

191  : ilMDLanguage
192  {
193  $lan = new ilMDLanguage($this->getRBACId(), $this->getObjId(), $this->getObjType());
194  $lan->setParentId($this->getMetaId());
195  $lan->setParentType('meta_educational');
196 
197  return $lan;
198  }
+ Here is the call graph for this function:

◆ addTypicalAgeRange()

ilMDEducational::addTypicalAgeRange ( )

Definition at line 135 of file class.ilMDEducational.php.

References ilMDBase\getMetaId(), ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

136  {
137  $typ = new ilMDTypicalAgeRange($this->getRBACId(), $this->getObjId(), $this->getObjType());
138  $typ->setParentId($this->getMetaId());
139  $typ->setParentType('meta_educational');
140 
141  return $typ;
142  }
+ Here is the call graph for this function:

◆ createOrUpdateContext()

ilMDEducational::createOrUpdateContext ( )
protected

Compatibility fix for legacy MD classes for new db tables.

Definition at line 684 of file class.ilMDEducational.php.

References createOrUpdateInNewTable(), getContext(), and getContextId().

Referenced by save(), and update().

684  : void
685  {
686  $context = (string) array_search(
687  $this->getContext(),
688  self::CONTEXT_TRANSLATION
689  );
690 
691  $this->context_id = $this->createOrUpdateInNewTable(
692  'il_meta_context',
693  'meta_context_id',
694  $this->getContextId(),
695  'context',
696  $context
697  );
698  }
getContextId()
Compatibility fix for legacy MD classes for new db tables.
createOrUpdateInNewTable(string $table, string $id_field, int $id, string $data_field, string $data_value)
Compatibility fix for legacy MD classes for new db tables.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createOrUpdateInNewTable()

ilMDEducational::createOrUpdateInNewTable ( string  $table,
string  $id_field,
int  $id,
string  $data_field,
string  $data_value 
)
protected

Compatibility fix for legacy MD classes for new db tables.

Definition at line 703 of file class.ilMDEducational.php.

References $id, ilMDBase\getMetaId(), ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

Referenced by createOrUpdateContext(), createOrUpdateIntendedEndUserRole(), and createOrUpdateLearningResourceType().

709  : int {
710  if ($data_value === '') {
711  return 0;
712  }
713 
714  if (!$id) {
715  $this->db->insert(
716  $table,
717  [
718  $id_field => ['integer', $next_id = $this->db->nextId($table)],
719  'rbac_id' => ['integer', $this->getRBACId()],
720  'obj_id' => ['integer', $this->getObjId()],
721  'obj_type' => ['text', $this->getObjType()],
722  'parent_type' => ['text', 'meta_educational'],
723  'parent_id' => ['integer', $this->getMetaId()],
724  $data_field => ['text', $data_value]
725  ]
726  );
727  return $next_id;
728  }
729 
730  $this->db->update(
731  $table,
732  [$data_field => ['text', $data_value]],
733  [$id_field => ['integer', $id]]
734  );
735  return $id;
736  }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:24
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createOrUpdateIntendedEndUserRole()

ilMDEducational::createOrUpdateIntendedEndUserRole ( )
protected

Compatibility fix for legacy MD classes for new db tables.

Definition at line 665 of file class.ilMDEducational.php.

References createOrUpdateInNewTable(), getIntendedEndUserRole(), and getIntendedEndUserRoleId().

Referenced by save(), and update().

665  : void
666  {
667  $intended_end_user_role = (string) array_search(
668  $this->getIntendedEndUserRole(),
669  self::INTENDED_END_USER_ROLE_TRANSLATION
670  );
671 
672  $this->intended_end_user_role_id = $this->createOrUpdateInNewTable(
673  'il_meta_end_usr_role',
674  'meta_end_usr_role_id',
675  $this->getIntendedEndUserRoleId(),
676  'intended_end_user_role',
678  );
679  }
getIntendedEndUserRoleId()
Compatibility fix for legacy MD classes for new db tables.
createOrUpdateInNewTable(string $table, string $id_field, int $id, string $data_field, string $data_value)
Compatibility fix for legacy MD classes for new db tables.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createOrUpdateLearningResourceType()

ilMDEducational::createOrUpdateLearningResourceType ( )
protected

Compatibility fix for legacy MD classes for new db tables.

Definition at line 646 of file class.ilMDEducational.php.

References createOrUpdateInNewTable(), getLearningResourceType(), and getLearningResourceTypeId().

Referenced by save(), and update().

646  : void
647  {
648  $learning_resource_type = (string) array_search(
649  $this->getLearningResourceType(),
650  self::LEARNING_RESOURCE_TYPE_TRANSLATION
651  );
652 
653  $this->learning_resource_type_id = $this->createOrUpdateInNewTable(
654  'il_meta_lr_type',
655  'meta_lr_type_id',
656  $this->getLearningResourceTypeId(),
657  'learning_resource_type',
659  );
660  }
createOrUpdateInNewTable(string $table, string $id_field, int $id, string $data_field, string $data_value)
Compatibility fix for legacy MD classes for new db tables.
getLearningResourceTypeId()
Compatibility fix for legacy MD classes for new db tables.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ delete()

ilMDEducational::delete ( )

Definition at line 439 of file class.ilMDEducational.php.

References $id, $res, deleteAllContexts(), deleteAllIntendedEndUserRoles(), deleteAllLearningResourceTypes(), getDescription(), getDescriptionIds(), getLanguage(), getLanguageIds(), ilMDBase\getMetaId(), getTypicalAgeRange(), getTypicalAgeRangeIds(), and ilDBConstants\T_INTEGER.

439  : bool
440  {
441  if ($this->getMetaId()) {
442  $query = "DELETE FROM il_meta_educational " .
443  "WHERE meta_educational_id = " . $this->db->quote($this->getMetaId(), ilDBConstants::T_INTEGER);
444  $res = $this->db->manipulate($query);
445 
448  $this->deleteAllContexts();
449 
450  foreach ($this->getTypicalAgeRangeIds() as $id) {
451  $typ = $this->getTypicalAgeRange($id);
452  $typ->delete();
453  }
454  foreach ($this->getDescriptionIds() as $id) {
455  $des = $this->getDescription($id);
456  $des->delete();
457  }
458  foreach ($this->getLanguageIds() as $id) {
459  $lan = $this->getLanguage($id);
460  $lan->delete();
461  }
462 
463  return true;
464  }
465  return false;
466  }
$res
Definition: ltiservices.php:69
getTypicalAgeRange(int $a_typical_age_range_id)
getDescription(int $a_description_id)
deleteAllLearningResourceTypes()
Compatibility fix for legacy MD classes for new db tables.
deleteAllContexts()
Compatibility fix for legacy MD classes for new db tables.
deleteAllIntendedEndUserRoles()
Compatibility fix for legacy MD classes for new db tables.
getLanguage(int $a_language_id)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:24
+ Here is the call graph for this function:

◆ deleteAllContexts()

ilMDEducational::deleteAllContexts ( )
protected

Compatibility fix for legacy MD classes for new db tables.

Definition at line 812 of file class.ilMDEducational.php.

References $res, and ilMDBase\getMetaId().

Referenced by delete().

812  : void
813  {
814  $query = "DELETE FROM il_meta_context WHERE parent_type = 'meta_educational'
815  AND parent_id = " . $this->db->quote($this->getMetaId(), 'integer');
816  $res = $this->db->manipulate($query);
817  }
$res
Definition: ltiservices.php:69
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ deleteAllIntendedEndUserRoles()

ilMDEducational::deleteAllIntendedEndUserRoles ( )
protected

Compatibility fix for legacy MD classes for new db tables.

Definition at line 802 of file class.ilMDEducational.php.

References $res, and ilMDBase\getMetaId().

Referenced by delete().

802  : void
803  {
804  $query = "DELETE FROM il_meta_end_usr_role WHERE parent_type = 'meta_educational'
805  AND parent_id = " . $this->db->quote($this->getMetaId(), 'integer');
806  $res = $this->db->manipulate($query);
807  }
$res
Definition: ltiservices.php:69
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ deleteAllLearningResourceTypes()

ilMDEducational::deleteAllLearningResourceTypes ( )
protected

Compatibility fix for legacy MD classes for new db tables.

Definition at line 792 of file class.ilMDEducational.php.

References $res, and ilMDBase\getMetaId().

Referenced by delete().

792  : void
793  {
794  $query = "DELETE FROM il_meta_lr_type WHERE parent_type = 'meta_educational'
795  AND parent_id = " . $this->db->quote($this->getMetaId(), 'integer');
796  $res = $this->db->manipulate($query);
797  }
$res
Definition: ltiservices.php:69
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getContext()

ilMDEducational::getContext ( )

Definition at line 328 of file class.ilMDEducational.php.

References $context.

Referenced by createOrUpdateContext(), and toXML().

328  : string
329  {
330  return $this->context;
331  }
+ Here is the caller graph for this function:

◆ getContextId()

ilMDEducational::getContextId ( )
protected

Compatibility fix for legacy MD classes for new db tables.

Definition at line 838 of file class.ilMDEducational.php.

References $context_id.

Referenced by createOrUpdateContext(), and readFirstContext().

838  : int
839  {
840  return $this->context_id;
841  }
+ Here is the caller graph for this function:

◆ getDescription()

ilMDEducational::getDescription ( int  $a_description_id)

Definition at line 152 of file class.ilMDEducational.php.

Referenced by delete(), and toXML().

152  : ?ilMDDescription
153  {
154  if (!$a_description_id) {
155  return null;
156  }
157  $des = new ilMDDescription();
158  $des->setMetaId($a_description_id);
159 
160  return $des;
161  }
+ Here is the caller graph for this function:

◆ getDescriptionIds()

ilMDEducational::getDescriptionIds ( )
Returns
int[]

Definition at line 147 of file class.ilMDEducational.php.

References ilMDDescription\_getIds(), ilMDBase\getMetaId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

Referenced by delete(), and toXML().

147  : array
148  {
149  return ilMDDescription::_getIds($this->getRBACId(), $this->getObjId(), $this->getMetaId(), 'meta_educational');
150  }
static _getIds(int $a_rbac_id, int $a_obj_id, int $a_parent_id, string $a_parent_type)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDifficulty()

ilMDEducational::getDifficulty ( )

Definition at line 349 of file class.ilMDEducational.php.

References $difficulty.

Referenced by __getFields(), and toXML().

349  : string
350  {
351  return $this->difficulty;
352  }
+ Here is the caller graph for this function:

◆ getIntendedEndUserRole()

ilMDEducational::getIntendedEndUserRole ( )

Definition at line 308 of file class.ilMDEducational.php.

References $intended_end_user_role.

Referenced by createOrUpdateIntendedEndUserRole(), and toXML().

308  : string
309  {
311  }
+ Here is the caller graph for this function:

◆ getIntendedEndUserRoleId()

ilMDEducational::getIntendedEndUserRoleId ( )
protected

Compatibility fix for legacy MD classes for new db tables.

Definition at line 830 of file class.ilMDEducational.php.

References $intended_end_user_role_id.

Referenced by createOrUpdateIntendedEndUserRole(), and readFirstIntendedEndUserRole().

830  : int
831  {
833  }
+ Here is the caller graph for this function:

◆ getInteractivityLevel()

ilMDEducational::getInteractivityLevel ( )

Definition at line 267 of file class.ilMDEducational.php.

References $interactivity_level.

Referenced by __getFields(), and toXML().

267  : string
268  {
270  }
+ Here is the caller graph for this function:

◆ getInteractivityType()

ilMDEducational::getInteractivityType ( )

Definition at line 215 of file class.ilMDEducational.php.

References $interactivity_type.

Referenced by __getFields(), and toXML().

215  : string
216  {
218  }
const const const const const const const string $interactivity_type
+ Here is the caller graph for this function:

◆ getLanguage()

ilMDEducational::getLanguage ( int  $a_language_id)

Definition at line 180 of file class.ilMDEducational.php.

Referenced by delete(), and toXML().

180  : ?ilMDLanguage
181  {
182  if (!$a_language_id) {
183  return null;
184  }
185  $lan = new ilMDLanguage();
186  $lan->setMetaId($a_language_id);
187 
188  return $lan;
189  }
+ Here is the caller graph for this function:

◆ getLanguageIds()

ilMDEducational::getLanguageIds ( )
Returns
int[]

Definition at line 175 of file class.ilMDEducational.php.

References ilMDLanguage\_getIds(), ilMDBase\getMetaId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

Referenced by delete(), and toXML().

175  : array
176  {
177  return ilMDLanguage::_getIds($this->getRBACId(), $this->getObjId(), $this->getMetaId(), 'meta_educational');
178  }
static _getIds(int $a_rbac_id, int $a_obj_id, int $a_parent_id, string $a_parent_type)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLearningResourceType()

ilMDEducational::getLearningResourceType ( )

Definition at line 246 of file class.ilMDEducational.php.

References $learning_resource_type.

Referenced by createOrUpdateLearningResourceType(), and toXML().

246  : string
247  {
249  }
+ Here is the caller graph for this function:

◆ getLearningResourceTypeId()

ilMDEducational::getLearningResourceTypeId ( )
protected

Compatibility fix for legacy MD classes for new db tables.

Definition at line 822 of file class.ilMDEducational.php.

References $learning_resource_type_id.

Referenced by createOrUpdateLearningResourceType(), and readFirstLearningResourceType().

822  : int
823  {
825  }
int $learning_resource_type_id
Compatibility fix for legacy MD classes for new db tables.
+ Here is the caller graph for this function:

◆ getSemanticDensity()

ilMDEducational::getSemanticDensity ( )

Definition at line 288 of file class.ilMDEducational.php.

References $semantic_density.

Referenced by __getFields(), and toXML().

288  : string
289  {
291  }
+ Here is the caller graph for this function:

◆ getTypicalAgeRange()

ilMDEducational::getTypicalAgeRange ( int  $a_typical_age_range_id)

Definition at line 124 of file class.ilMDEducational.php.

Referenced by delete(), and toXML().

125  {
126  if (!$a_typical_age_range_id) {
127  return null;
128  }
129  $typ = new ilMDTypicalAgeRange();
130  $typ->setMetaId($a_typical_age_range_id);
131 
132  return $typ;
133  }
+ Here is the caller graph for this function:

◆ getTypicalAgeRangeIds()

ilMDEducational::getTypicalAgeRangeIds ( )
Returns
int[]

Definition at line 114 of file class.ilMDEducational.php.

References ilMDTypicalAgeRange\_getIds(), ilMDBase\getMetaId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

Referenced by delete(), and toXML().

114  : array
115  {
117  $this->getRBACId(),
118  $this->getObjId(),
119  $this->getMetaId(),
120  'meta_educational'
121  );
122  }
static _getIds(int $a_rbac_id, int $a_obj_id, int $a_parent_id, string $a_parent_type)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTypicalLearningTime()

ilMDEducational::getTypicalLearningTime ( )

Definition at line 393 of file class.ilMDEducational.php.

References $typical_learning_time.

Referenced by __getFields(), getTypicalLearningTimeSeconds(), and toXML().

393  : string
394  {
396  }
+ Here is the caller graph for this function:

◆ getTypicalLearningTimeSeconds()

ilMDEducational::getTypicalLearningTimeSeconds ( )

Definition at line 398 of file class.ilMDEducational.php.

References ilMDUtils\_LOMDurationToArray(), and getTypicalLearningTime().

398  : int
399  {
401  if ($time_arr === []) {
402  return 0;
403  }
404  return 60 * 60 * 24 * 30 * $time_arr[0] + 60 * 60 * 24 * $time_arr[1] + 60 * 60 * $time_arr[2] + 60 * $time_arr[3] + $time_arr[4];
405  }
static _LOMDurationToArray(string $a_string)
LOM datatype duration is a string like P2M4DT7H18M2S (2 months 4 days 7 hours 18 minutes 2 seconds) T...
+ Here is the call graph for this function:

◆ read()

ilMDEducational::read ( )

Compatibility fix for legacy MD classes for new db tables

Definition at line 508 of file class.ilMDEducational.php.

References $res, ilDBConstants\FETCHMODE_OBJECT, ilMDBase\getMetaId(), readFirstContext(), readFirstIntendedEndUserRole(), readFirstLearningResourceType(), setDifficulty(), setInteractivityLevel(), setInteractivityType(), ilMDBase\setObjId(), ilMDBase\setObjType(), ilMDBase\setRBACId(), setSemanticDensity(), and setTypicalLearningTime().

508  : bool
509  {
510  if ($this->getMetaId()) {
511  $query = "SELECT * FROM il_meta_educational " .
512  "WHERE meta_educational_id = " . $this->db->quote($this->getMetaId(), 'integer');
513 
514  $res = $this->db->query($query);
515  while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
519  if (key_exists($row->interactivity_type ?? '', self::INTERACTIVITY_TYPE_TRANSLATION)) {
520  $row->interactivity_type = self::INTERACTIVITY_TYPE_TRANSLATION[$row->interactivity_type ?? ''];
521  }
522  if (key_exists($row->interactivity_level ?? '', self::INTERACTIVITY_LEVEL_TRANSLATION)) {
523  $row->interactivity_level = self::INTERACTIVITY_LEVEL_TRANSLATION[$row->interactivity_level ?? ''];
524  }
525  if (key_exists($row->semantic_density ?? '', self::SEMANTIC_DENSITY_TRANSLATION)) {
526  $row->semantic_density = self::SEMANTIC_DENSITY_TRANSLATION[$row->semantic_density ?? ''];
527  }
528  if (key_exists($row->difficulty ?? '', self::DIFFICULTY_TRANSLATION)) {
529  $row->difficulty = self::DIFFICULTY_TRANSLATION[$row->difficulty ?? ''];
530  }
531 
532  $this->setRBACId((int) $row->rbac_id);
533  $this->setObjId((int) $row->obj_id);
534  $this->setObjType($row->obj_type ?? '');
535  $this->setInteractivityType($row->interactivity_type ?? '');
536  //$this->setLearningResourceType($row->learning_resource_type ?? '');
537  $this->setInteractivityLevel($row->interactivity_level ?? '');
538  $this->setSemanticDensity($row->semantic_density ?? '');
539  //$this->setIntendedEndUserRole($row->intended_end_user_role ?? '');
540  //$this->setContext($row->context ?? '');
541  $this->setDifficulty($row->difficulty ?? '');
542  $this->setTypicalLearningTime($row->typical_learning_time ?? '');
543  }
544 
547  $this->readFirstContext();
548  return true;
549  }
550  return false;
551  }
readFirstIntendedEndUserRole()
Compatibility fix for legacy MD classes for new db tables.
$res
Definition: ltiservices.php:69
readFirstLearningResourceType()
Compatibility fix for legacy MD classes for new db tables.
setTypicalLearningTime(string $a_tlt)
setInteractivityLevel(string $a_iat)
setRBACId(int $a_id)
readFirstContext()
Compatibility fix for legacy MD classes for new db tables.
setObjId(int $a_id)
setInteractivityType(string $a_iat)
setDifficulty(string $a_difficulty)
setSemanticDensity(string $a_sd)
setObjType(string $a_type)
+ Here is the call graph for this function:

◆ readContextId()

ilMDEducational::readContextId ( int  $parent_id)
protected

Compatibility fix for legacy MD classes for new db tables.

Definition at line 876 of file class.ilMDEducational.php.

References $res, and ILIAS\Repository\int().

Referenced by setMetaId().

876  : void
877  {
878  $query = "SELECT meta_context_id FROM il_meta_context WHERE parent_type = 'meta_educational'
879  AND parent_id = " . $this->db->quote($parent_id, 'integer') .
880  " ORDER BY meta_context_id";
881 
882  $res = $this->db->query($query);
883  if ($row = $this->db->fetchAssoc($res)) {
884  $this->context_id = (int) $row['meta_context_id'];
885  }
886  }
$res
Definition: ltiservices.php:69
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ readFirstContext()

ilMDEducational::readFirstContext ( )
protected

Compatibility fix for legacy MD classes for new db tables.

Definition at line 775 of file class.ilMDEducational.php.

References $res, getContextId(), and setContext().

Referenced by read().

775  : void
776  {
777  $query = "SELECT * FROM il_meta_context WHERE meta_context_id = " .
778  $this->db->quote($this->getContextId(), 'integer');
779 
780  $res = $this->db->query($query);
781  if ($row = $this->db->fetchAssoc($res)) {
782  if (key_exists($row['context'], self::CONTEXT_TRANSLATION)) {
783  $row['context'] = self::CONTEXT_TRANSLATION[$row['context']];
784  }
785  $this->setContext((string) $row['context']);
786  }
787  }
$res
Definition: ltiservices.php:69
setContext(string $a_context)
getContextId()
Compatibility fix for legacy MD classes for new db tables.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ readFirstIntendedEndUserRole()

ilMDEducational::readFirstIntendedEndUserRole ( )
protected

Compatibility fix for legacy MD classes for new db tables.

Definition at line 758 of file class.ilMDEducational.php.

References $res, getIntendedEndUserRoleId(), and setIntendedEndUserRole().

Referenced by read().

758  : void
759  {
760  $query = "SELECT * FROM il_meta_end_usr_role WHERE meta_end_usr_role_id = " .
761  $this->db->quote($this->getIntendedEndUserRoleId(), 'integer');
762 
763  $res = $this->db->query($query);
764  if ($row = $this->db->fetchAssoc($res)) {
765  if (key_exists($row['intended_end_user_role'], self::INTENDED_END_USER_ROLE_TRANSLATION)) {
766  $row['intended_end_user_role'] = self::INTENDED_END_USER_ROLE_TRANSLATION[$row['intended_end_user_role']];
767  }
768  $this->setIntendedEndUserRole((string) $row['intended_end_user_role']);
769  }
770  }
$res
Definition: ltiservices.php:69
setIntendedEndUserRole(string $a_ieur)
getIntendedEndUserRoleId()
Compatibility fix for legacy MD classes for new db tables.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ readFirstLearningResourceType()

ilMDEducational::readFirstLearningResourceType ( )
protected

Compatibility fix for legacy MD classes for new db tables.

Definition at line 741 of file class.ilMDEducational.php.

References $res, getLearningResourceTypeId(), and setLearningResourceType().

Referenced by read().

741  : void
742  {
743  $query = "SELECT * FROM il_meta_lr_type WHERE meta_lr_type_id = " .
744  $this->db->quote($this->getLearningResourceTypeId(), 'integer');
745 
746  $res = $this->db->query($query);
747  if ($row = $this->db->fetchAssoc($res)) {
748  if (key_exists($row['learning_resource_type'], self::LEARNING_RESOURCE_TYPE_TRANSLATION)) {
749  $row['learning_resource_type'] = self::LEARNING_RESOURCE_TYPE_TRANSLATION[$row['learning_resource_type']];
750  }
751  $this->setLearningResourceType((string) $row['learning_resource_type']);
752  }
753  }
$res
Definition: ltiservices.php:69
setLearningResourceType(string $a_lrt)
getLearningResourceTypeId()
Compatibility fix for legacy MD classes for new db tables.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ readIntendedEndUserRoleId()

ilMDEducational::readIntendedEndUserRoleId ( int  $parent_id)
protected

Compatibility fix for legacy MD classes for new db tables.

Definition at line 861 of file class.ilMDEducational.php.

References $res, and ILIAS\Repository\int().

Referenced by setMetaId().

861  : void
862  {
863  $query = "SELECT meta_end_usr_role_id FROM il_meta_end_usr_role WHERE parent_type = 'meta_educational'
864  AND parent_id = " . $this->db->quote($parent_id, 'integer') .
865  " ORDER BY meta_end_usr_role_id";
866 
867  $res = $this->db->query($query);
868  if ($row = $this->db->fetchAssoc($res)) {
869  $this->intended_end_user_role_id = (int) $row['meta_end_usr_role_id'];
870  }
871  }
$res
Definition: ltiservices.php:69
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ readLearningResourceTypeId()

ilMDEducational::readLearningResourceTypeId ( int  $parent_id)
protected

Compatibility fix for legacy MD classes for new db tables.

Definition at line 846 of file class.ilMDEducational.php.

References $res, and ILIAS\Repository\int().

Referenced by setMetaId().

846  : void
847  {
848  $query = "SELECT meta_lr_type_id FROM il_meta_lr_type WHERE parent_type = 'meta_educational'
849  AND parent_id = " . $this->db->quote($parent_id, 'integer') .
850  " ORDER BY meta_lr_type_id";
851 
852  $res = $this->db->query($query);
853  if ($row = $this->db->fetchAssoc($res)) {
854  $this->learning_resource_type_id = (int) $row['meta_lr_type_id'];
855  }
856  }
$res
Definition: ltiservices.php:69
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ save()

ilMDEducational::save ( )

Definition at line 407 of file class.ilMDEducational.php.

References __getFields(), createOrUpdateContext(), createOrUpdateIntendedEndUserRole(), createOrUpdateLearningResourceType(), ilMDBase\getMetaId(), and setMetaId().

407  : int
408  {
409  $fields = $this->__getFields();
410  $fields['meta_educational_id'] = array('integer', $next_id = $this->db->nextId('il_meta_educational'));
411 
412  if ($this->db->insert('il_meta_educational', $fields)) {
413  $this->setMetaId($next_id);
416  $this->createOrUpdateContext();
417  return $this->getMetaId();
418  }
419  return 0;
420  }
createOrUpdateLearningResourceType()
Compatibility fix for legacy MD classes for new db tables.
createOrUpdateIntendedEndUserRole()
Compatibility fix for legacy MD classes for new db tables.
setMetaId(int $a_meta_id, bool $a_read_data=true)
Compatibility fix for legacy MD classes for new db tables.
createOrUpdateContext()
Compatibility fix for legacy MD classes for new db tables.
+ Here is the call graph for this function:

◆ setContext()

ilMDEducational::setContext ( string  $a_context)

Definition at line 313 of file class.ilMDEducational.php.

Referenced by readFirstContext().

313  : bool
314  {
315  switch ($a_context) {
316  case 'School':
317  case 'HigherEducation':
318  case 'Training':
319  case 'Other':
320  $this->context = $a_context;
321  return true;
322 
323  default:
324  return false;
325  }
326  }
+ Here is the caller graph for this function:

◆ setDifficulty()

ilMDEducational::setDifficulty ( string  $a_difficulty)

Definition at line 333 of file class.ilMDEducational.php.

Referenced by read().

333  : bool
334  {
335  switch ($a_difficulty) {
336  case 'VeryEasy':
337  case 'Easy':
338  case 'Medium':
339  case 'Difficult':
340  case 'VeryDifficult':
341  $this->difficulty = $a_difficulty;
342  return true;
343 
344  default:
345  return false;
346  }
347  }
+ Here is the caller graph for this function:

◆ setIntendedEndUserRole()

ilMDEducational::setIntendedEndUserRole ( string  $a_ieur)

Definition at line 293 of file class.ilMDEducational.php.

Referenced by readFirstIntendedEndUserRole().

293  : bool
294  {
295  switch ($a_ieur) {
296  case 'Teacher':
297  case 'Author':
298  case 'Learner':
299  case 'Manager':
300  $this->intended_end_user_role = $a_ieur;
301  return true;
302 
303  default:
304  return false;
305  }
306  }
+ Here is the caller graph for this function:

◆ setInteractivityLevel()

ilMDEducational::setInteractivityLevel ( string  $a_iat)

Definition at line 251 of file class.ilMDEducational.php.

Referenced by read().

251  : bool
252  {
253  switch ($a_iat) {
254  case 'VeryLow':
255  case 'Low':
256  case 'Medium':
257  case 'High':
258  case 'VeryHigh':
259  $this->interactivity_level = $a_iat;
260  return true;
261 
262  default:
263  return false;
264  }
265  }
+ Here is the caller graph for this function:

◆ setInteractivityType()

ilMDEducational::setInteractivityType ( string  $a_iat)

Definition at line 201 of file class.ilMDEducational.php.

Referenced by read().

201  : bool
202  {
203  switch ($a_iat) {
204  case 'Active':
205  case 'Expositive':
206  case 'Mixed':
207  $this->interactivity_type = $a_iat;
208  return true;
209 
210  default:
211  return false;
212  }
213  }
+ Here is the caller graph for this function:

◆ setLearningResourceType()

ilMDEducational::setLearningResourceType ( string  $a_lrt)

Definition at line 220 of file class.ilMDEducational.php.

Referenced by readFirstLearningResourceType().

220  : bool
221  {
222  switch ($a_lrt) {
223  case 'Exercise':
224  case 'Simulation':
225  case 'Questionnaire':
226  case 'Diagram':
227  case 'Figure':
228  case 'Graph':
229  case 'Index':
230  case 'Slide':
231  case 'Table':
232  case 'NarrativeText':
233  case 'Exam':
234  case 'Experiment':
235  case 'ProblemStatement':
236  case 'SelfAssessment':
237  case 'Lecture':
238  $this->learning_resource_type = $a_lrt;
239  return true;
240 
241  default:
242  return false;
243  }
244  }
+ Here is the caller graph for this function:

◆ setMetaId()

ilMDEducational::setMetaId ( int  $a_meta_id,
bool  $a_read_data = true 
)

Compatibility fix for legacy MD classes for new db tables.

Definition at line 891 of file class.ilMDEducational.php.

References readContextId(), readIntendedEndUserRoleId(), and readLearningResourceTypeId().

Referenced by save().

891  : void
892  {
893  $this->readLearningResourceTypeId($a_meta_id);
894  $this->readIntendedEndUserRoleId($a_meta_id);
895  $this->readContextId($a_meta_id);
896  parent::setMetaId($a_meta_id, $a_read_data);
897  }
readContextId(int $parent_id)
Compatibility fix for legacy MD classes for new db tables.
readIntendedEndUserRoleId(int $parent_id)
Compatibility fix for legacy MD classes for new db tables.
readLearningResourceTypeId(int $parent_id)
Compatibility fix for legacy MD classes for new db tables.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setPhysicalTypicalLearningTime()

ilMDEducational::setPhysicalTypicalLearningTime ( int  $months,
int  $days,
int  $hours,
int  $minutes,
int  $seconds 
)

Definition at line 354 of file class.ilMDEducational.php.

References setTypicalLearningTime().

360  : bool {
361  if (!$months && !$days && !$hours && !$minutes && !$seconds) {
362  $this->setTypicalLearningTime('PT00H00M');
363  return true;
364  }
365  $tlt = 'P';
366  if ($months) {
367  $tlt .= ($months . 'M');
368  }
369  if ($days) {
370  $tlt .= ($days . 'D');
371  }
372  if ($hours || $minutes || $seconds) {
373  $tlt .= 'T';
374  }
375  if ($hours) {
376  $tlt .= ($hours . 'H');
377  }
378  if ($minutes) {
379  $tlt .= ($minutes . 'M');
380  }
381  if ($seconds) {
382  $tlt .= ($seconds . 'S');
383  }
384  $this->setTypicalLearningTime($tlt);
385  return true;
386  }
setTypicalLearningTime(string $a_tlt)
+ Here is the call graph for this function:

◆ setSemanticDensity()

ilMDEducational::setSemanticDensity ( string  $a_sd)

Definition at line 272 of file class.ilMDEducational.php.

Referenced by read().

272  : bool
273  {
274  switch ($a_sd) {
275  case 'VeryLow':
276  case 'Low':
277  case 'Medium':
278  case 'High':
279  case 'VeryHigh':
280  $this->semantic_density = $a_sd;
281  return true;
282 
283  default:
284  return false;
285  }
286  }
+ Here is the caller graph for this function:

◆ setTypicalLearningTime()

ilMDEducational::setTypicalLearningTime ( string  $a_tlt)

Definition at line 388 of file class.ilMDEducational.php.

Referenced by read(), and setPhysicalTypicalLearningTime().

388  : void
389  {
390  $this->typical_learning_time = $a_tlt;
391  }
+ Here is the caller graph for this function:

◆ toXML()

ilMDEducational::toXML ( ilXmlWriter  $writer)

Definition at line 553 of file class.ilMDEducational.php.

References $id, getContext(), getDescription(), getDescriptionIds(), getDifficulty(), getIntendedEndUserRole(), getInteractivityLevel(), getInteractivityType(), getLanguage(), getLanguageIds(), getLearningResourceType(), ilMDBase\getObjId(), ilMDBase\getRBACId(), getSemanticDensity(), getTypicalAgeRange(), getTypicalAgeRangeIds(), getTypicalLearningTime(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().

553  : void
554  {
555  $writer->xmlStartTag(
556  'Educational',
557  array(
558  'InteractivityType' => $this->getInteractivityType() ?: 'Active',
559  'LearningResourceType' => $this->getLearningResourceType() ?: 'Exercise',
560  'InteractivityLevel' => $this->getInteractivityLevel() ?: 'Medium',
561  'SemanticDensity' => $this->getSemanticDensity() ?: 'Medium',
562  'IntendedEndUserRole' => $this->getIntendedEndUserRole() ?: 'Learner',
563  'Context' => $this->getContext() ?: 'Other',
564  'Difficulty' => $this->getDifficulty() ?: 'Medium'
565  )
566  );
567 
568  // TypicalAgeRange
569  $typ_ages = $this->getTypicalAgeRangeIds();
570  foreach ($typ_ages as $id) {
571  $key = $this->getTypicalAgeRange($id);
572 
573  // extra test due to bug 5316 (may be due to eLaix import)
574  if (is_object($key)) {
575  $key->toXML($writer);
576  }
577  }
578  if (!count($typ_ages)) {
579  $typ = new ilMDTypicalAgeRange($this->getRBACId(), $this->getObjId());
580  $typ->toXML($writer);
581  }
582 
583  // TypicalLearningTime
584  $writer->xmlElement('TypicalLearningTime', null, $this->getTypicalLearningTime());
585 
586  // Description
587  foreach ($this->getDescriptionIds() as $id) {
588  $key = $this->getDescription($id);
589  $key->toXML($writer);
590  }
591  // Language
592  foreach ($this->getLanguageIds() as $id) {
593  $lang = $this->getLanguage($id);
594  $lang->toXML($writer);
595  }
596  $writer->xmlEndTag('Educational');
597  }
getTypicalAgeRange(int $a_typical_age_range_id)
getDescription(int $a_description_id)
xmlEndTag(string $tag)
Writes an endtag.
getLanguage(int $a_language_id)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:24
xmlStartTag(string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
Writes a starttag.
xmlElement(string $tag, $attrs=null, $data=null, $encode=true, $escape=true)
Writes a basic element (no children, just textual content)
+ Here is the call graph for this function:

◆ update()

ilMDEducational::update ( )

Definition at line 422 of file class.ilMDEducational.php.

References __getFields(), createOrUpdateContext(), createOrUpdateIntendedEndUserRole(), createOrUpdateLearningResourceType(), and ilMDBase\getMetaId().

422  : bool
423  {
424  if (!$this->getMetaId()) {
425  return false;
426  }
427 
430  $this->createOrUpdateContext();
431 
432  return (bool) $this->db->update(
433  'il_meta_educational',
434  $this->__getFields(),
435  array("meta_educational_id" => array('integer', $this->getMetaId()))
436  );
437  }
createOrUpdateLearningResourceType()
Compatibility fix for legacy MD classes for new db tables.
createOrUpdateIntendedEndUserRole()
Compatibility fix for legacy MD classes for new db tables.
createOrUpdateContext()
Compatibility fix for legacy MD classes for new db tables.
+ Here is the call graph for this function:

Field Documentation

◆ $context

string ilMDEducational::$context = ''
private

Definition at line 99 of file class.ilMDEducational.php.

Referenced by getContext().

◆ $context_id

int ilMDEducational::$context_id = 0
private

Definition at line 109 of file class.ilMDEducational.php.

Referenced by getContextId().

◆ $difficulty

string ilMDEducational::$difficulty = ''
private

Definition at line 100 of file class.ilMDEducational.php.

Referenced by getDifficulty().

◆ $intended_end_user_role

string ilMDEducational::$intended_end_user_role = ''
private

Definition at line 98 of file class.ilMDEducational.php.

Referenced by getIntendedEndUserRole().

◆ $intended_end_user_role_id

int ilMDEducational::$intended_end_user_role_id = 0
private

Definition at line 108 of file class.ilMDEducational.php.

Referenced by getIntendedEndUserRoleId().

◆ $interactivity_level

string ilMDEducational::$interactivity_level = ''
private

Definition at line 96 of file class.ilMDEducational.php.

Referenced by getInteractivityLevel().

◆ $interactivity_type

const const const const const const const string ilMDEducational::$interactivity_type = ''
private

Definition at line 94 of file class.ilMDEducational.php.

Referenced by getInteractivityType().

◆ $learning_resource_type

string ilMDEducational::$learning_resource_type = ''
private

Definition at line 95 of file class.ilMDEducational.php.

Referenced by getLearningResourceType().

◆ $learning_resource_type_id

int ilMDEducational::$learning_resource_type_id = 0
private

Compatibility fix for legacy MD classes for new db tables.

Definition at line 107 of file class.ilMDEducational.php.

Referenced by getLearningResourceTypeId().

◆ $semantic_density

string ilMDEducational::$semantic_density = ''
private

Definition at line 97 of file class.ilMDEducational.php.

Referenced by getSemanticDensity().

◆ $typical_learning_time

string ilMDEducational::$typical_learning_time = ''
private

Definition at line 101 of file class.ilMDEducational.php.

Referenced by getTypicalLearningTime().

◆ CONTEXT_TRANSLATION

const const const const const const ilMDEducational::CONTEXT_TRANSLATION
private
Initial value:
= [
'school' => 'School'

Definition at line 79 of file class.ilMDEducational.php.

◆ DIFFICULTY_TRANSLATION

const const const const const const const ilMDEducational::DIFFICULTY_TRANSLATION
private
Initial value:
= [
'very easy' => 'VeryEasy'

Definition at line 86 of file class.ilMDEducational.php.

◆ INTENDED_END_USER_ROLE_TRANSLATION

const const const const const ilMDEducational::INTENDED_END_USER_ROLE_TRANSLATION
private
Initial value:
= [
'teacher' => 'Teacher'

Definition at line 72 of file class.ilMDEducational.php.

◆ INTERACTIVITY_LEVEL_TRANSLATION

const const const ilMDEducational::INTERACTIVITY_LEVEL_TRANSLATION
private
Initial value:
= [
'very low' => 'VeryLow'

Definition at line 56 of file class.ilMDEducational.php.

◆ INTERACTIVITY_TYPE_TRANSLATION

const ilMDEducational::INTERACTIVITY_TYPE_TRANSLATION
private
Initial value:
= [
'active' => 'Active'

Compatibility fix for legacy MD classes for new db tables.

Definition at line 32 of file class.ilMDEducational.php.

◆ LEARNING_RESOURCE_TYPE_TRANSLATION

const const ilMDEducational::LEARNING_RESOURCE_TYPE_TRANSLATION
private
Initial value:
= [
'exercise' => 'Exercise'

Definition at line 38 of file class.ilMDEducational.php.

◆ SEMANTIC_DENSITY_TRANSLATION

const const const const ilMDEducational::SEMANTIC_DENSITY_TRANSLATION
private
Initial value:
= [
'very low' => 'VeryLow'

Definition at line 64 of file class.ilMDEducational.php.


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