63        if (!isset($a_ref_id)) {
 
   69            "SELECT * FROM object_data,object_reference " .
 
   70            "WHERE object_reference.obj_id = object_data.obj_id " .
 
   71            "AND object_reference.ref_id = %s ",
 
   75        if (!($rec = 
$db->fetchAssoc($set))) {
 
   76            throw new ilObjectNotFoundException(
"ilObjectGUIFactory::getInstanceByRefId(): Object with ref_id " . $a_ref_id . 
" not found!");
 
   80        $class_name = 
"ilObj" . 
$obj_definition->getClassName($rec[
"type"]) . 
"GUI";
 
   81        if ($class_name == 
"ilObjGUI") {
 
   82            throw new ilObjectException(
"ilObjectGUIFactory::getInstanceByRefId(): Not able to determine object " .
 
   83                "class for type" . $rec[
"type"] . 
".");
 
   88        include_once(
$location . 
"/class." . $class_name . 
".php");
 
   89        $gui_obj = 
new $class_name(
"", $a_ref_id, 
true, 
false);
 
An exception for terminatinating execution or to throw for unit testing.
parses the objects.xml it handles the xml-description of all ilias objects
Base exception class for object service.
See bug discussion 24472.
__construct(ilObjectDefinition $obj_definition=null, ilDBInterface $db=null)
Constructor.
getInstanceByRefId($a_ref_id)
Get ilObj...GUI instance by reference id.
Object not found exception.