TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Core\Package\PackageInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Core\Package\PackageInterface:
TYPO3\CMS\Core\Package\Package

Public Member Functions

 getPackageReplacementKeys ()
 
 isPartOfFactoryDefault ()
 
 isPartOfMinimalUsableSystem ()
 
 getValueFromComposerManifest ($key=null)
 
 getPackageMetaData ()
 
 getPackageKey ()
 
 isProtected ()
 
 setProtected ($protected)
 
 getPackagePath ()
 

Public Attributes

const PATTERN_MATCH_PACKAGEKEY = '/^[a-z0-9]+\.(?:[a-z0-9][\.a-z0-9]*)+$/i'
 
const PATTERN_MATCH_EXTENSIONKEY = '/^[0-9a-z_-]+$/i'
 

Detailed Description

Interface for a TYPO3 Package class Adapted from FLOW for TYPO3 CMS

Definition at line 21 of file PackageInterface.php.

Member Function Documentation

◆ getPackageKey()

TYPO3\CMS\Core\Package\PackageInterface::getPackageKey ( )

Returns the package key of this package.

Returns
string

Implemented in TYPO3\CMS\Core\Package\Package.

Referenced by TYPO3\CMS\Core\Package\PackageManager\registerPackage(), and TYPO3\CMS\Core\Package\PackageManager\unregisterPackage().

◆ getPackageMetaData()

TYPO3\CMS\Core\Package\PackageInterface::getPackageMetaData ( )

Returns the package meta object of this package.

Returns
MetaData

Implemented in TYPO3\CMS\Core\Package\Package.

◆ getPackagePath()

TYPO3\CMS\Core\Package\PackageInterface::getPackagePath ( )

◆ getPackageReplacementKeys()

TYPO3\CMS\Core\Package\PackageInterface::getPackageReplacementKeys ( )

◆ getValueFromComposerManifest()

TYPO3\CMS\Core\Package\PackageInterface::getValueFromComposerManifest (   $key = null)

Returns contents of Composer manifest - or part there of if a key is given.

Parameters
string$keyOptional. Only return the part of the manifest indexed by 'key'
Returns
mixed|NULL
See also
json_decode for return values

Implemented in TYPO3\CMS\Core\Package\Package.

Referenced by TYPO3\CMS\Core\Core\ClassLoadingInformationGenerator\buildClassAliasMapForPackage(), TYPO3\CMS\Core\Core\ClassLoadingInformationGenerator\buildClassLoadingInformationForPackage(), and TYPO3\CMS\Core\Core\ClassLoadingInformation\isTestingContext().

◆ isPartOfFactoryDefault()

TYPO3\CMS\Core\Package\PackageInterface::isPartOfFactoryDefault ( )

Tells if the package is part of the default factory configuration and therefor activated at first installation.

Returns
bool

Implemented in TYPO3\CMS\Core\Package\Package.

◆ isPartOfMinimalUsableSystem()

TYPO3\CMS\Core\Package\PackageInterface::isPartOfMinimalUsableSystem ( )

Tells if the package is required for a minimal usable (backend) system and therefor activated if PackageStates is created from scratch for whatever reason.

Returns
bool

Implemented in TYPO3\CMS\Core\Package\Package.

◆ isProtected()

TYPO3\CMS\Core\Package\PackageInterface::isProtected ( )

Tells if this package is protected and therefore cannot be deactivated or deleted

Returns
bool

Implemented in TYPO3\CMS\Core\Package\Package.

◆ setProtected()

TYPO3\CMS\Core\Package\PackageInterface::setProtected (   $protected)

Sets the protection flag of the package

Parameters
bool$protectedTRUE if the package should be protected, otherwise FALSE
Returns
void

Implemented in TYPO3\CMS\Core\Package\Package.

Member Data Documentation

◆ PATTERN_MATCH_EXTENSIONKEY

const TYPO3\CMS\Core\Package\PackageInterface::PATTERN_MATCH_EXTENSIONKEY = '/^[0-9a-z_-]+$/i'

◆ PATTERN_MATCH_PACKAGEKEY

const TYPO3\CMS\Core\Package\PackageInterface::PATTERN_MATCH_PACKAGEKEY = '/^[a-z0-9]+\.(?:[a-z0-9][\.a-z0-9]*)+$/i'