ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilSoapStructureObjectFactory Class Reference
+ Collaboration diagram for ilSoapStructureObjectFactory:

Public Member Functions

 getInstanceForObject ($object)
 getInstance ($objId, $type, $title, $description, $parentRefId)
 _getClassnameForType ($type)

Detailed Description

Definition at line 34 of file class.ilSoapStructureObjectFactory.php.

Member Function Documentation

ilSoapStructureObjectFactory::_getClassnameForType (   $type)

Definition at line 61 of file class.ilSoapStructureObjectFactory.php.

References $type.

Referenced by getInstance(), and getInstanceForObject().

{
switch ($type)
{
case "lm":
include_once "./webservice/soap/classes/class.ilSoapRepositoryStructureObject.php";
return "ilSoapRepositoryStructureObject";
case "st":
include_once "./webservice/soap/classes/class.ilSoapLMChapterStructureObject.php";
return "ilSoapLMChapterStructureObject";
case "pg":
include_once "./webservice/soap/classes/class.ilSoapLMPageStructureObject.php";
return "ilSoapLMPageStructureObject";
case "glo":
include_once "./webservice/soap/classes/class.ilSoapRepositoryStructureObject.php";
return "ilSoapRepositoryStructureObject";
case "git":
include_once "./webservice/soap/classes/class.ilSoapGLOTermStructureObject.php";
return "ilSoapGLOTermStructureObject";
case "gdf":
include_once "./webservice/soap/classes/class.ilSoapGLOTermDefinitionStructureObject.php";
return "ilSoapGLOTermDefinitionStructureObject";
}
return null;
}

+ Here is the caller graph for this function:

ilSoapStructureObjectFactory::getInstance (   $objId,
  $type,
  $title,
  $description,
  $parentRefId 
)

Definition at line 52 of file class.ilSoapStructureObjectFactory.php.

References $title, $type, and _getClassnameForType().

Referenced by ilSoapLMStructureReader\_parseStructure(), and ilSoapGLOStructureReader\_parseStructure().

{
if ($classname == null)
return null;
return new $classname($objId, $type, $title, $description, $parentRefId);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilSoapStructureObjectFactory::getInstanceForObject (   $object)

Definition at line 35 of file class.ilSoapStructureObjectFactory.php.

References _getClassnameForType().

Referenced by ilSoapStructureReader\ilSoapStructureReader().

{
$classname = ilSoapStructureObjectFactory::_getClassnameForType ($object->getType());
if ($classname != null)
switch ($object->getType())
{
case "lm":
case "glo":
return new $classname(
$object->getId(), $object->getType(), $object->getTitle(),
$object->getLongDescription(), $object->getRefId());
break;
}
return null;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


The documentation for this class was generated from the following file: