SilverLeague\IDEAnnotator\Helpers\AnnotatePermissionChecker
Class AnnotatePermissionChecker
Helperclass to check if the current environment, class or module is allowed to be annotated.
This is abstracted from @see DataObjectAnnotator to separate and clean up.
Synopsis
class AnnotatePermissionChecker
{
- // members
- protected array $supportedParentClasses = ;
- // methods
- public bool environmentIsAllowed()
- public bool isEnabled()
- public array getSupportedParentClasses()
- public bool classNameIsAllowed()
- public bool classNameIsSupported()
- public bool moduleIsAllowed()
- public array enabledModules()
Members
protected
-
$supportedParentClasses
In the future we will support other Classes as well.
Methods
public
- classNameIsAllowed() — Check if a DataObject or DataExtension subclass is allowed by checking if the file is in the $allowed_modules array The permission is checked by matching the filePath and modulePath
- classNameIsSupported() — Check if a (subclass of ) class is a supported
- enabledModules()
- environmentIsAllowed()
- getSupportedParentClasses()
- isEnabled()
- moduleIsAllowed() — Check if a module is in the $allowed_modules array Required for the buildTask.