17 $this->instances =
array();
21 if (self::$instance === null) {
24 return self::$instance;
30 require_once(
"Modules/StudyProgramme/classes/class.ilObjStudyProgramme.php");
36 if (!array_key_exists($a_ref_id, $this->instances)) {
39 return $this->instances[$a_ref_id];
44 throw new ilException(
"ilObjStudyProgrammeCache::addInstance: " 45 .
"Can't add instance without ref_id.");
47 $this->instances[$a_prg->
getRefId()] = $a_prg;
56 $this->instances =
array();
60 return count($this->instances) == 0;
Base class for ILIAS Exception handling.
Cache for ilObjStudyProgrammes.
getInstanceByRefId($a_ref_id)
addInstance(ilObjStudyProgramme $a_prg)
Class ilObjStudyProgramme.
Create styles array
The data for the language used.
getRefId()
get reference id public
test_clear()
For testing purpose.