Class ilChatroomTabFactory.  
 More...
| 
Private Member Functions | 
|  | getLabel ($tabDefinition, $id) | 
|  | Returns label for tab by $tabDefinition or $id. 
 | 
Detailed Description
Member Function Documentation
  
  | 
        
          | static ilChatroomTabFactory::convertLowerCamelCaseToUnderscoreCaseConversion | ( |  | $value | ) |  |  | static | 
 
Convert a value given in lower camel case conversion to underscore case conversion (e.g. 
MyClass to my_class) 
- Parameters
- 
  
    | string | $value | Value in lower camel case conversion |  
 
- Returns
- string The value in underscore case conversion 
Definition at line 358 of file class.ilChatroomTabFactory.php.
        {
                return strtolower(preg_replace('/(.*?)-(.*?)/', '$1_$2', $value));
        }
 
 
  
  | 
        
          | static ilChatroomTabFactory::convertUnderscoreCaseToLowerCamelCaseConversion | ( |  | $value, |  
          |  |  |  | $upper_case_first = FALSE |  
          |  | ) |  |  |  | static | 
 
Convert a value given in underscore case conversion to lower camel case conversion (e.g. 
my_class to MyClass) 
- Parameters
- 
  
    | string | $value | Value in underscore case conversion |  | boolean | $upper_case_first | If TRUE first character in upper case, lower case if FALSE |  
 
- Returns
- string The value in lower camel case conversion 
Definition at line 369 of file class.ilChatroomTabFactory.php.
        {
                $tokens = (array)explode('_', $value);
                $value  = '';
                foreach($tokens as $token)
                {
                        $value .= ucfirst($token);
                }
                if($upper_case_first === FALSE)
                {
                        $value = strtolower($value, 0, 1) . substr($value, 1);
                }
                return $value;
        }
 
 
  
  | 
        
          | ilChatroomTabFactory::getLabel | ( |  | $tabDefinition, |  
          |  |  |  | $id |  
          |  | ) |  |  |  | private | 
 
Returns label for tab by $tabDefinition or $id. 
- Parameters
- 
  
    | array | $tabDefinition |  |  | string | $id |  |  
 
- Returns
- string 
- Todo:
- : $tabDefinition sollte doch stets ein array und $id stets ein string sein, oder? Dann sollte man auch hier typehinten. (array $tabDefinition, string $id) 
Definition at line 345 of file class.ilChatroomTabFactory.php.
        {
                if(isset($tabDefinition['lng']))
                        return $this->lng->txt($tabDefinition['lng']);
                else
                        return $this->lng->txt($id);
        }
 
 
Field Documentation
  
  | 
        
          | ilChatroomTabFactory::$gui |  | private | 
 
 
  
  | 
        
          | ilChatroomTabFactory::$lng |  | private | 
 
 
The documentation for this class was generated from the following file: