19declare(strict_types=1);
49 private readonly
string $moduleName,
65 return new self($moduleName,
'../components/ILIAS/' . $moduleName .
'/');
77 '../components/ILIAS/' . $moduleName .
'/',
83 public function hasGUI(
string $gui): bool
88 return class_exists($class) && file_exists(
$path);
97 $this->moduleBasePath .
'/' .
98 $this->relativeClassPath .
'/' .
108 return 'il' . $this->moduleName . ucfirst($this->guiScope) . ucfirst($gui) .
'GUI';
117 return new $className($chatroomObjectGUI);
Class ilChatroomGUIHandler.
static getDefaultDefinitionWithCustomGUIPath(string $moduleName, string $guiScope='')
Returns an Instance of ilChatroomObjectDefinition, using given $moduleName and $guiScope as parameter...
static getDefaultDefinition(string $moduleName)
Returns an Instance of ilChatroomObjectDefinition, using given $moduleName as parameter.
readonly string $moduleBasePath
readonly string $guiScope
getGUIClassName(string $gui)
Builds gui classname using given $gui and returns it.
readonly string $relativeClassPath
buildGUI(string $gui, ilChatroomObjectGUI $chatroomObjectGUI)
Builds and returns new gui using given $gui and $gui.
getGUIPath(string $gui)
Builds gui path using given $gui and returns it.
__construct(private readonly string $moduleName, string $moduleBasePath, string $relativeClassPath='classes', string $guiScope='')