MetaData

class \TYPO3\CMS\Core\Package\MetaData

The default TYPO3 Package MetaData implementation

Table of Contents

Constants

CONSTRAINT_TYPE_CONFLICTS  : mixed = 'conflicts'
CONSTRAINT_TYPE_DEPENDS  : mixed = 'depends'
CONSTRAINT_TYPE_SUGGESTS  : mixed = 'suggests'

Properties

$CONSTRAINT_TYPES  : array
$constraints  : array
constraints by constraint type (depends, conflicts, suggests)
$description  : string|null
Package description
$packageKey  : string
$packageType  : string|null
Package type
$title  : string|null
Package title
$version  : string
The version number

Methods

__construct()  : mixed
Package metadata constructor
addConstraint()  : mixed
Add a constraint
getConstraints()  : array
Get all constraints
getConstraintsByType()  : array
Get the constraints by type
getConstraintTypes()  : array
Get all available constraint types
getDescription()  : string|null
getPackageKey()  : string
getPackageType()  : string
Get package type
getTitle()  : string|null
getVersion()  : string
isExtensionType()  : bool
isFrameworkType()  : bool
setDescription()  : mixed
setPackageType()  : mixed
Set package type
setTitle()  : void
setVersion()  : mixed

Constants

CONSTRAINT_TYPE_CONFLICTS

public mixed CONSTRAINT_TYPE_CONFLICTS = 'conflicts'

CONSTRAINT_TYPE_DEPENDS

public mixed CONSTRAINT_TYPE_DEPENDS = 'depends'

CONSTRAINT_TYPE_SUGGESTS

public mixed CONSTRAINT_TYPE_SUGGESTS = 'suggests'

Properties

$CONSTRAINT_TYPES

protected static array $CONSTRAINT_TYPES = [self::CONSTRAINT_TYPE_DEPENDS, self::CONSTRAINT_TYPE_CONFLI…
Show the full value[self::CONSTRAINT_TYPE_DEPENDS, self::CONSTRAINT_TYPE_CONFLICTS, self::CONSTRAINT_TYPE_SUGGESTS]

$constraints

constraints by constraint type (depends, conflicts, suggests)

protected array $constraints = []

$description

Package description

protected string|null $description

$packageType

Package type

protected string|null $packageType

$title

Package title

protected string|null $title

$version

The version number

protected string $version

Methods

__construct()

Package metadata constructor

public __construct(string $packageKey) : mixed

Parameters

$packageKey : string

The package key

getConstraints()

Get all constraints

public getConstraints() : array

Return values

array —

Package constraints

getConstraintsByType()

Get the constraints by type

public getConstraintsByType(string $constraintType) : array

Parameters

$constraintType : string

Type of the constraints to get: CONSTRAINT_TYPE_*

Return values

array —

Package constraints

getConstraintTypes()

Get all available constraint types

public getConstraintTypes() : array

Return values

array —

All constraint types

getDescription()

public getDescription() : string|null

Return values

string|null —

The package description

getPackageKey()

public getPackageKey() : string

Return values

string —

The package key

getPackageType()

Get package type

public getPackageType() : string

Return values

string

getTitle()

public getTitle() : string|null

Return values

string|null

getVersion()

public getVersion() : string

Return values

string —

The package version

isExtensionType()

public isExtensionType() : bool

Return values

bool

isFrameworkType()

public isFrameworkType() : bool

Return values

bool

setDescription()

public setDescription(string|null $description) : mixed

Parameters

$description : string|null

The package description to set

setPackageType()

Set package type

public setPackageType(string|null $packageType) : mixed

Parameters

$packageType : string|null

setTitle()

public setTitle(string|null $title) : void

Parameters

$title : string|null

setVersion()

public setVersion(string $version) : mixed

Parameters

$version : string

The package version to set

On this page