19 $this->instances = array();
24 if (self::$instance ===
null) {
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;
An exception for terminatinating execution or to throw for unit testing.
Base class for ILIAS Exception handling.
Cache for ilObjStudyProgrammes.
addInstance(ilObjStudyProgramme $a_prg)
test_clear()
For testing purpose.
getInstanceByRefId($a_ref_id)
getRefId()
get reference id @access public