PHP 클래스 FluidTYPO3\Flux\FluxPackage

상속: implements FluidTYPO3\Flux\Package\FluxPackageInterface
파일 보기 프로젝트 열기: fluidtypo3/flux 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$defaultImplementations array
$manifest array

공개 메소드들

메소드 설명
__construct ( mixed $seedArrayOrExtensionKeyOrManifestPath ) Constructor - takes an array of manifest data in the same structure as in the manifest JSON file, or an extension key in which case the expected manifest is resolved using that and naming convention of the manifest file. Or takes a full path to the manifest file in which case the manifest is read from there.
create ( mixed $seedArrayOrExtensionKeyOrManifestPath ) : FluidTYPO3\Flux\Package\FluxPackageInterface
getExtensionName ( ) : string Must always return the ExtensionName format of the extension key, excluding the vendor name.
getImplementation ( string $implementationName ) : string Get FQN of the class that's designated as an implementation, meaning it is replaceable by Flux Packages via this method.
getNamespacePrefix ( ) : string Must always return the $vendor\$extensioName format of the vendor and extension name, using values from the two preceeding methods.
getVendorName ( ) : string Must always return the vendor name (as used in class namespaces) corresponding to this package.
getViewPaths ( ) : TemplatePaths Returns an instance of Flux's TemplatePaths class with template paths of this package preloaded.
isFeatureEnabled ( string $featureName ) : boolean Asserts whether or not the feature is enabled for this FluxPackage.
isProviderFor ( string $controllerName ) : boolean Asserts whether or not this FluxPackage contains an integration designed for the controller name, e.g.
modify ( array $alternativeManifestDeclaration ) : void Modify properties of this FluxPackage (in this class instance only) by passing an array using the same structure as the constructor and as in the manifest.
upcast ( string $desiredClassName = NULL ) : FluidTYPO3\Flux\Package\FluxPackageInterface Upcasts (promotes) the instance to another class name by creating a new instance of the provided class and passing $this->manifest as seed. If NULL is passed as desired class name the expected final class name is determined based on naming convention.

보호된 메소드들

메소드 설명
loadManifestFile ( string $filePathAndFilename ) : array Load flux.json manifest file by path or reference.

메소드 상세

__construct() 공개 메소드

Note: applies CompatibilityRegistry-resolved versioned manifest configuration values immediately.
public __construct ( mixed $seedArrayOrExtensionKeyOrManifestPath )
$seedArrayOrExtensionKeyOrManifestPath mixed

create() 공개 정적인 메소드

public static create ( mixed $seedArrayOrExtensionKeyOrManifestPath ) : FluidTYPO3\Flux\Package\FluxPackageInterface
$seedArrayOrExtensionKeyOrManifestPath mixed
리턴 FluidTYPO3\Flux\Package\FluxPackageInterface

getExtensionName() 공개 메소드

Must always return the ExtensionName format of the extension key, excluding the vendor name.
public getExtensionName ( ) : string
리턴 string

getImplementation() 공개 메소드

Get FQN of the class that's designated as an implementation, meaning it is replaceable by Flux Packages via this method.
public getImplementation ( string $implementationName ) : string
$implementationName string
리턴 string

getNamespacePrefix() 공개 메소드

Must always return the $vendor\$extensioName format of the vendor and extension name, using values from the two preceeding methods.
public getNamespacePrefix ( ) : string
리턴 string

getVendorName() 공개 메소드

Must always return the vendor name (as used in class namespaces) corresponding to this package.
public getVendorName ( ) : string
리턴 string

getViewPaths() 공개 메소드

Returns an instance of Flux's TemplatePaths class with template paths of this package preloaded.
public getViewPaths ( ) : TemplatePaths
리턴 FluidTYPO3\Flux\View\TemplatePaths

isFeatureEnabled() 공개 메소드

Asserts whether or not the feature is enabled for this FluxPackage.
public isFeatureEnabled ( string $featureName ) : boolean
$featureName string
리턴 boolean

isProviderFor() 공개 메소드

"Content", "Page" etc.
public isProviderFor ( string $controllerName ) : boolean
$controllerName string
리턴 boolean

loadManifestFile() 보호된 메소드

Load flux.json manifest file by path or reference.
protected loadManifestFile ( string $filePathAndFilename ) : array
$filePathAndFilename string
리턴 array

modify() 공개 메소드

Is used internally when applying compatibility values: the "overlay" type subset of version dependent values is detected based on current version and passed to this function which then assimilates the values.
public modify ( array $alternativeManifestDeclaration ) : void
$alternativeManifestDeclaration array
리턴 void

upcast() 공개 메소드

Upcasts (promotes) the instance to another class name by creating a new instance of the provided class and passing $this->manifest as seed. If NULL is passed as desired class name the expected final class name is determined based on naming convention.
public upcast ( string $desiredClassName = NULL ) : FluidTYPO3\Flux\Package\FluxPackageInterface
$desiredClassName string
리턴 FluidTYPO3\Flux\Package\FluxPackageInterface

프로퍼티 상세

$defaultImplementations 보호되어 있는 프로퍼티

protected array $defaultImplementations
리턴 array

$manifest 보호되어 있는 프로퍼티

protected array $manifest
리턴 array