ClassSchema
A class schema
only to be used within Extbase, not part of TYPO3 Core API.
Table of Contents
Properties
- $className : string
- Name of the class this schema is referring to
- $properties : array<string|int, mixed>
- Properties of the class which need to be persisted
Methods
- __construct() : mixed
- Constructs this class schema
- getClassName() : string
- Returns the class name this schema is referring to
- getDomainObjectProperties() : array<string|int, Property>
- Returns all properties that do not start with an underscore like $_localizedUid
- getInjectMethods() : array<string|int, mixed>|array<string|int, Method>
- getInjectProperties() : array<string|int, mixed>|array<string|int, Property>
- getMethod() : Method
- getMethods() : array<string|int, mixed>|array<string|int, Method>
- getProperties() : array<string|int, mixed>|array<string|int, Property>
- getProperty() : Property
- hasConstructor() : bool
- hasInjectMethods() : bool
- hasInjectProperties() : bool
- hasMethod() : bool
- hasProperty() : bool
- If the class schema has a certain property.
- isAggregateRoot() : bool
- Whether the class is an aggregate root and therefore accessible through a repository.
- isEntity() : bool
- isModel() : bool
- isSingleton() : bool
- isValueObject() : bool
- hasInjectMethodName() : bool
- reflectMethods() : void
- reflectProperties() : void
Properties
$className
Name of the class this schema is referring to
protected
string
$className
$properties
Properties of the class which need to be persisted
protected
array<string|int, mixed>
$properties
= []
Methods
__construct()
Constructs this class schema
public
__construct(string $className) : mixed
Parameters
- $className : string
-
Name of the class this schema is referring to
Tags
getClassName()
Returns the class name this schema is referring to
public
getClassName() : string
Return values
string —The class name
getDomainObjectProperties()
Returns all properties that do not start with an underscore like $_localizedUid
public
getDomainObjectProperties() : array<string|int, Property>
Return values
array<string|int, Property>getInjectMethods()
public
getInjectMethods() : array<string|int, mixed>|array<string|int, Method>
Return values
array<string|int, mixed>|array<string|int, Method>getInjectProperties()
public
getInjectProperties() : array<string|int, mixed>|array<string|int, Property>
Return values
array<string|int, mixed>|array<string|int, Property>getMethod()
public
getMethod(string $methodName) : Method
Parameters
- $methodName : string
Tags
Return values
MethodgetMethods()
public
getMethods() : array<string|int, mixed>|array<string|int, Method>
Return values
array<string|int, mixed>|array<string|int, Method>getProperties()
public
getProperties() : array<string|int, mixed>|array<string|int, Property>
Return values
array<string|int, mixed>|array<string|int, Property>getProperty()
public
getProperty(string $propertyName) : Property
Parameters
- $propertyName : string
Tags
Return values
PropertyhasConstructor()
public
hasConstructor() : bool
Return values
boolhasInjectMethods()
public
hasInjectMethods() : bool
Return values
boolhasInjectProperties()
public
hasInjectProperties() : bool
Return values
boolhasMethod()
public
hasMethod(string $methodName) : bool
Parameters
- $methodName : string
Return values
boolhasProperty()
If the class schema has a certain property.
public
hasProperty(string $propertyName) : bool
Parameters
- $propertyName : string
-
Name of the property
Return values
boolisAggregateRoot()
Whether the class is an aggregate root and therefore accessible through a repository.
public
isAggregateRoot() : bool
Return values
bool —TRUE if it is managed
isEntity()
public
isEntity() : bool
Return values
boolisModel()
public
isModel() : bool
Return values
boolisSingleton()
public
isSingleton() : bool
Return values
boolisValueObject()
public
isValueObject() : bool
Return values
boolhasInjectMethodName()
protected
hasInjectMethodName(ReflectionMethod $reflectionMethod) : bool
Parameters
- $reflectionMethod : ReflectionMethod
Return values
boolreflectMethods()
protected
reflectMethods(ReflectionClass $reflectionClass) : void
Parameters
- $reflectionClass : ReflectionClass
Tags
reflectProperties()
protected
reflectProperties(ReflectionClass $reflectionClass) : void
Parameters
- $reflectionClass : ReflectionClass