ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilChatroomTabGUIFactory. More...
Public Member Functions | |
__construct (ilObjectGUI $gui) | |
getAdminTabsForCommand ($command) | |
Builds $config and $commandparts arrays to assign them as parameters when calling $this->buildTabs and $this->activateTab. More... | |
getTabsForCommand ($command) | |
Builds $config and $commandparts arrays to assign them as parameters when calling $this->buildTabs and $this->activateTab. More... | |
Static Public Member Functions | |
static | convertUnderscoreCaseToLowerCamelCaseConversion ($value, $upper_case_first=false) |
Convert a value given in underscore case conversion to lower camel case conversion (e.g. More... | |
static | convertLowerCamelCaseToUnderscoreCaseConversion ($value) |
Convert a value given in lower camel case conversion to underscore case conversion (e.g. More... | |
Private Member Functions | |
buildTabs (ilTabsGUI $tabs, $config, $command, $inRoom=true) | |
Builds tabs and subtabs using given $tabs, $config and $command parameters. More... | |
getLabel ($tabDefinition, $id) | |
Returns label for tab by $tabDefinition or $id. More... | |
activateTab (array $commandParts, $config) | |
Activates tab or subtab if existing. More... | |
Private Attributes | |
$gui | |
$lng | |
Class ilChatroomTabGUIFactory.
Definition at line 11 of file class.ilChatroomTabGUIFactory.php.
ilChatroomTabGUIFactory::__construct | ( | ilObjectGUI | $gui | ) |
|
private |
Activates tab or subtab if existing.
Calls $ilTabs->activateTab() or $ilTabs->activateSubTab() method to set current tab active.
array | $commandParts |
Definition at line 246 of file class.ilChatroomTabGUIFactory.php.
Referenced by getAdminTabsForCommand(), and getTabsForCommand().
|
private |
Builds tabs and subtabs using given $tabs, $config and $command parameters.
ilTabsGUI | $tabs | |
array | $config | |
array | $command | |
bool | $inRoom |
Definition at line 185 of file class.ilChatroomTabGUIFactory.php.
References $config, $DIC, $id, ilTabsGUI\addSubTab(), ilTabsGUI\addTab(), ilChatroom\checkUserPermissions(), and getLabel().
Referenced by getAdminTabsForCommand(), and getTabsForCommand().
|
static |
Convert a value given in lower camel case conversion to underscore case conversion (e.g.
MyClass to my_class)
string | $value | Value in lower camel case conversion |
Definition at line 172 of file class.ilChatroomTabGUIFactory.php.
Referenced by getAdminTabsForCommand(), and getTabsForCommand().
|
static |
Convert a value given in underscore case conversion to lower camel case conversion (e.g.
my_class to MyClass)
string | $value | Value in underscore case conversion |
boolean | $upper_case_first | If TRUE first character in upper case, lower case if FALSE |
Definition at line 40 of file class.ilChatroomTabGUIFactory.php.
References array.
ilChatroomTabGUIFactory::getAdminTabsForCommand | ( | $command | ) |
Builds $config and $commandparts arrays to assign them as parameters when calling $this->buildTabs and $this->activateTab.
string | $command |
Definition at line 61 of file class.ilChatroomTabGUIFactory.php.
References $config, $DIC, ilObject\_getAllReferences(), ilObject\_getObjectsByType(), activateTab(), array, buildTabs(), and convertLowerCamelCaseToUnderscoreCaseConversion().
|
private |
Returns label for tab by $tabDefinition or $id.
array | $tabDefinition | |
string | $id |
Definition at line 231 of file class.ilChatroomTabGUIFactory.php.
References $id.
Referenced by buildTabs().
ilChatroomTabGUIFactory::getTabsForCommand | ( | $command | ) |
Builds $config and $commandparts arrays to assign them as parameters when calling $this->buildTabs and $this->activateTab.
string | $command |
Definition at line 268 of file class.ilChatroomTabGUIFactory.php.
References $config, $DIC, activateTab(), array, buildTabs(), ilChatroom\byObjectId(), and convertLowerCamelCaseToUnderscoreCaseConversion().
|
private |
Definition at line 16 of file class.ilChatroomTabGUIFactory.php.
Referenced by __construct().
|
private |
Definition at line 21 of file class.ilChatroomTabGUIFactory.php.