19 $this->instances = array();
24 if (self::$instance === null) {
27 return self::$instance;
34 require_once(
"Modules/StudyProgramme/classes/class.ilObjStudyProgramme.php");
40 if (!array_key_exists($a_ref_id, $this->instances)) {
43 return $this->instances[$a_ref_id];
49 throw new ilException(
"ilObjStudyProgrammeCache::addInstance: " 50 .
"Can't add instance without ref_id.");
52 $this->instances[$a_prg->
getRefId()] = $a_prg;
62 $this->instances = array();
67 return count($this->instances) == 0;
Cache for ilObjStudyProgrammes.
getInstanceByRefId($a_ref_id)
addInstance(ilObjStudyProgramme $a_prg)
Class ilObjStudyProgramme.
getRefId()
get reference id public
test_clear()
For testing purpose.