SilverStripe IDE Annotations

AbstractTagGenerator

AbstractYes

AbstractTagGenerator

Table of Contents

Properties

$className  : string
The current class we are working with
$existingTags  : array<string|int, Tag>
The existing tags of the class we are working with
$pageClassesCache  : mixed
$reflector  : ReflectionClass
$tagFactory  : StandardTagFactory
$tags  : array<string|int, Tag>
List all the generated tags form the various generateSomeORMProperies methods

Methods

__construct()  : mixed
DocBlockTagGenerator constructor.
getExistingTagCommentByTagString()  : string
getExistingTags()  : array<string|int, Tag>
getSupportedTagTypes()  : array<string|int, mixed>
List of supported tags.
getTags()  : array<string|int, Tag>
generateExtensionsTags()  : mixed
Generate the mixins for DataExtensions.
generateOwnerTags()  : mixed
Generate the Owner-properties for extensions.
generateTags()  : void
getAnnotationClassName()  : string
Check if we need to use the short name for a class
getClassConfig()  : mixed
getOwnerClasses()  : array<string|int, string>|Generator
Get all owner classes of the given extension class
pushMethodTag()  : mixed
pushMixinTag()  : mixed
pushPropertyTag()  : mixed
pushTagWithExistingComment()  : Tag

Properties

$existingTags

The existing tags of the class we are working with

protected array<string|int, Tag> $existingTags = []

$tags

List all the generated tags form the various generateSomeORMProperies methods

protected array<string|int, Tag> $tags = []
Tags
see

$this->getSupportedTagTypes();

Methods

__construct()

DocBlockTagGenerator constructor.

public __construct(string $className,  $existingTags) : mixed
Parameters
$className : string
$existingTags :
Tags
throws
ReflectionException

getExistingTagCommentByTagString()

public getExistingTagCommentByTagString(string $tagString) : string
Parameters
$tagString : string
Return values
string

getExistingTags()

public getExistingTags() : array<string|int, Tag>
Return values
array<string|int, Tag>

getSupportedTagTypes()

List of supported tags.

public getSupportedTagTypes() : array<string|int, mixed>

Each tag type can hold many tags, so we keep them grouped. Also used to reset the tag list after each run

Return values
array<string|int, mixed>

getTags()

public getTags() : array<string|int, Tag>
Return values
array<string|int, Tag>

generateExtensionsTags()

Generate the mixins for DataExtensions.

protected generateExtensionsTags() : mixed

generateOwnerTags()

Generate the Owner-properties for extensions.

protected generateOwnerTags() : mixed
Tags
throws
ReflectionException

getAnnotationClassName()

Check if we need to use the short name for a class

protected getAnnotationClassName(string $class) : string
Parameters
$class : string
Return values
string

getOwnerClasses()

Get all owner classes of the given extension class

protected getOwnerClasses(string $extensionClass) : array<string|int, string>|Generator
Parameters
$extensionClass : string

Class name of the extension

Return values
array<string|int, string>|Generator

List of all direct owners of this extension

pushMethodTag()

protected pushMethodTag(string $methodName, string $tagString) : mixed
Parameters
$methodName : string
$tagString : string

pushPropertyTag()

protected pushPropertyTag(string $tagString) : mixed
Parameters
$tagString : string

pushTagWithExistingComment()

protected pushTagWithExistingComment( $type,  $tagString) : Tag
Parameters
$type :
$tagString :
Return values
Tag

        
On this page

Search results