ILIAS  trunk Revision v11.0_alpha-1838-g59fc79e306b
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\Services\Help\ScreenId Namespace Reference

Data Structures

class  HelpScreenId
 
class  HelpScreenIdObserver
 
class  RecurringHelpScreenId
 
class  SilentHelpScreenId
 

Functions

 classNameToScreenId (string $classname)
 
 snakeToCamel (string $command)
 

Variables

trait ClassNameToScreenId
 

Function Documentation

◆ classNameToScreenId()

ILIAS\Services\Help\ScreenId\classNameToScreenId ( string  $classname)
protected

Definition at line 27 of file ClassNameToScreenId.php.

References ILIAS\Services\Help\ScreenId\snakeToCamel().

Referenced by ILIAS\Services\Help\ScreenId\HelpScreenIdObserver\cleanClassName().

27  : ?string
28  {
29  $classname = preg_replace(self::$REGEX, "$2", $classname);
30  $classname = $this->snakeToCamel($classname);
31 
32  return $classname;
33  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ snakeToCamel()

ILIAS\Services\Help\ScreenId\snakeToCamel ( string  $command)
protected

Definition at line 35 of file ClassNameToScreenId.php.

Referenced by ILIAS\Services\Help\ScreenId\classNameToScreenId(), and ILIAS\Services\Help\ScreenId\HelpScreenIdObserver\cleanCommandName().

35  : string
36  {
37  return strtolower(preg_replace('/(?<!^)[A-Z]/', '_$0', $command));
38  }
+ Here is the caller graph for this function:

Variable Documentation

◆ ClassNameToScreenId

trait ILIAS::Services::Help::ScreenId\ClassNameToScreenId
Initial value:
{
private static string $REGEX = '/il(Object|Obj|)(.*)GUI/mi'

Definition at line 24 of file ClassNameToScreenId.php.