ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilSoapStructureObjectFactory Class Reference
+ Collaboration diagram for ilSoapStructureObjectFactory:

Public Member Functions

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

Detailed Description

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

Member Function Documentation

◆ _getClassnameForType()

ilSoapStructureObjectFactory::_getClassnameForType ( string  $type)

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

61 : ?string
62 {
63 switch ($type) {
64 case "glo":
65 case "lm":
66 return "ilSoapRepositoryStructureObject";
67 case "st":
68 return "ilSoapLMChapterStructureObject";
69 case "pg":
70 return "ilSoapLMPageStructureObject";
71 case "git":
72 return "ilSoapGLOTermStructureObject";
73 case "term":
74 return "ilSoapGLOTermDefinitionStructureObject";
75 }
76
77 return null;
78 }

Referenced by getInstanceForObject().

+ Here is the caller graph for this function:

◆ getInstance()

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

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

53 $classname = $this->_getClassnameForType($type);
54 if ($classname === null) {
55 return null;
56 }
57
58 return new $classname($objId, $type, $title, $description, $parentRefId);
59 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$objId
Definition: xapitoken.php:57

Referenced by ilSoapGLOStructureReader\_parseStructure().

+ Here is the caller graph for this function:

◆ getInstanceForObject()

ilSoapStructureObjectFactory::getInstanceForObject ( ilObject  $object)

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

27 {
28 $classname = $this->_getClassnameForType($object->getType());
29 if ($classname !== null) {
30 switch ($object->getType()) {
31 case "lm":
32 case "glo":
33 return new $classname(
34 $object->getId(),
35 $object->getType(),
36 $object->getTitle(),
37 $object->getLongDescription(),
38 $object->getRefId()
39 );
40 }
41 }
42
43 return null;
44 }
getLongDescription()
get object long description (stored in object_description)

References _getClassnameForType(), ilObject\getId(), ilObject\getLongDescription(), ilObject\getRefId(), ilObject\getTitle(), and ilObject\getType().

Referenced by ilSoapStructureReader\__construct().

+ 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: