19 declare(strict_types=1);
53 string $moduleBasePath,
54 string $relativeClassPath =
'classes',
58 $this->moduleBasePath = rtrim($moduleBasePath,
'/\\');
59 $this->relativeClassPath = rtrim($relativeClassPath);
60 $this->guiScope = rtrim($guiScope);
71 return new self(
$moduleName,
'Modules/' . $moduleName .
'/');
85 'Modules/' . $moduleName .
'/',
96 public function hasGUI(
string $gui): bool
109 $this->moduleBasePath .
'/' .
110 $this->relativeClassPath .
'/' .
122 return 'il' . $this->moduleName . ucfirst($this->guiScope) . ucfirst($gui) .
'GUI';
144 return new $className($chatroomObjectGUI);
loadGUI(string $gui)
Requires file, whereby given $gui is used as parameter in getGUIPath method to build the filename of ...
getGUIPath(string $gui)
Builds gui path using given $gui and returns it.
static getDefaultDefinitionWithCustomGUIPath(string $moduleName, string $guiScope='')
Returns an Instance of ilChatroomObjectDefinition, using given $moduleName and $guiScope as parameter...
string $relativeClassPath
hasGUI(string $gui)
Returns true if file exists.
Class ilChatroomGUIHandler.
__construct(string $moduleName, string $moduleBasePath, string $relativeClassPath='classes', string $guiScope='')
static getDefaultDefinition(string $moduleName)
Returns an Instance of ilChatroomObjectDefinition, using given $moduleName as parameter.
buildGUI(string $gui, ilChatroomObjectGUI $chatroomObjectGUI)
Builds and returns new gui using given $gui and $gui.
getGUIClassName(string $gui)
Builds gui classname using given $gui and returns it.