SilverStripe Search

Annotatable extends Extension

Class Annotatable

Annotate extension for the provided DataObjects for autocompletion purposes. Start annotation, if skipannotation is not set and the annotator is enabled.

Table of Contents

Properties

$annotated_extensions  : array<string|int, mixed>
Keep track ot the annotation actions for extensions An Extension can belong to many DataObjects.
$owner  : DevBuildController|Annotatable
$annotator  : DataObjectAnnotator
$permissionChecker  : AnnotatePermissionChecker

Methods

afterCallActionHandler()  : mixed
Annotated Controllers and Extensions
annotateModules()  : bool
Conditionally annotate this project's modules if enabled and not skipped
displayMessage()  : mixed
getAnnotator()  : DataObjectAnnotator
getPermissionChecker()  : AnnotatePermissionChecker
setUp()  : mixed
Annotatable setup.

Properties

$annotated_extensions

Keep track ot the annotation actions for extensions An Extension can belong to many DataObjects.

public static array<string|int, mixed> $annotated_extensions = []

This prevents that an Extension is ran twice on dev/build

Methods

afterCallActionHandler()

Annotated Controllers and Extensions

public afterCallActionHandler() : mixed
Tags
throws
NotFoundExceptionInterface
throws
ReflectionException

annotateModules()

Conditionally annotate this project's modules if enabled and not skipped

public annotateModules() : bool
Tags
throws
NotFoundExceptionInterface
throws
ReflectionException
Return values
bool

Return true if annotation was successful

displayMessage()

public displayMessage(string $message[, bool $heading = false ][, bool $end = false ]) : mixed
Parameters
$message : string
$heading : bool = false
$end : bool = false

setUp()

Annotatable setup.

public setUp() : mixed

This is theoretically a constructor, but to save memory we're using setup called from afterCallActionHandler

Tags
throws
NotFoundExceptionInterface

        
On this page

Search results