Check if a certain main module is accessible/loaded
By giving the module mode you are able to additionally check for only one mode within the main module
public loaded ( string $module_basename, mixed $module_mode = false ) : boolean | ||
$module_basename | string | The module base name, for example logs, reports, main (for the mcp). |
$module_mode | mixed | The module mode to check. If provided the mode will be checked in addition for presence. |
리턴 | boolean | Returns true if module is loaded and accessible, else returns false |