17    public static function getInstance(&$a_content_obj, $a_id = 0, $a_halt = 
true)
 
   23        $query = 
"SELECT * FROM lm_data WHERE obj_id = " .
 
   24            $ilDB->quote($a_id, 
"integer");
 
   26        $obj_rec = 
$ilDB->fetchAssoc($obj_set);
 
   28        switch ($obj_rec[
"type"]) {
 
   31                $obj->setId($obj_rec[
"obj_id"]);
 
   32                $obj->setDataRecord($obj_rec);
 
   38                $obj->setId($obj_rec[
"obj_id"]);
 
   39                $obj->setDataRecord($obj_rec);
 
An exception for terminatinating execution or to throw for unit testing.
static getInstance(&$a_content_obj, $a_id=0, $a_halt=true)