PHP 클래스 rex_package_manager, redaxo

상속: use trait rex_factory_trait
파일 보기 프로젝트 열기: redaxo/redaxo 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$generatePackageOrder
$message
$package rex_package

공개 메소드들

메소드 설명
activate ( ) : boolean Activates a package.
checkConflicts ( ) : boolean Checks whether the package is in conflict with other packages.
checkDependencies ( ) : boolean Checks if another Package which is activated, depends on the given package.
checkPackageConflict ( string $packageId ) : boolean Checks whether the package is in conflict with another package.
checkPackageRequirement ( string $packageId ) : boolean Checks whether the package requirement is met.
checkRedaxoRequirement ( string $redaxoVersion ) : boolean Checks whether the redaxo requirement is met.
checkRequirements ( ) : boolean Checks whether the requirements are met.
deactivate ( ) : boolean Deactivates a package.
delete ( ) : boolean Deletes a package.
factory ( rex_package $package ) : static Creates the manager for the package.
generatePackageOrder ( ) Generates the package order.
getMessage ( ) : string Returns the message.
install ( boolean $installDump = true ) : boolean Installs a package.
synchronizeWithFileSystem ( ) Synchronizes the packages with the file system.
uninstall ( boolean $installDump = true ) : boolean Uninstalls a package.

보호된 메소드들

메소드 설명
__construct ( rex_package $package, string $i18nPrefix ) Constructor.
_delete ( boolean $ignoreState = false ) : boolean Deletes a package.
i18n ( string $key ) : string Translates the given key.
saveConfig ( ) Saves the package config.
wrongPackageId ( string $addonName, string $pluginName = null ) : string

비공개 메소드들

메소드 설명
matchVersionConstraints ( string $version, string $constraints ) : boolean Checks the version of the requirement.
readPackageFolder ( string $folder ) : string[] Returns the subfolders of the given folder.

메소드 상세

__construct() 보호된 메소드

Constructor.
protected __construct ( rex_package $package, string $i18nPrefix )
$package rex_package Package
$i18nPrefix string Prefix for i18n

_delete() 보호된 메소드

Deletes a package.
protected _delete ( boolean $ignoreState = false ) : boolean
$ignoreState boolean
리턴 boolean TRUE on success, FALSE on error

activate() 공개 메소드

Activates a package.
public activate ( ) : boolean
리턴 boolean TRUE on success, FALSE on error

checkConflicts() 공개 메소드

Checks whether the package is in conflict with other packages.
public checkConflicts ( ) : boolean
리턴 boolean

checkDependencies() 공개 메소드

Checks if another Package which is activated, depends on the given package.
public checkDependencies ( ) : boolean
리턴 boolean

checkPackageConflict() 공개 메소드

Checks whether the package is in conflict with another package.
public checkPackageConflict ( string $packageId ) : boolean
$packageId string Package ID
리턴 boolean

checkPackageRequirement() 공개 메소드

Checks whether the package requirement is met.
public checkPackageRequirement ( string $packageId ) : boolean
$packageId string Package ID
리턴 boolean

checkRedaxoRequirement() 공개 메소드

Checks whether the redaxo requirement is met.
public checkRedaxoRequirement ( string $redaxoVersion ) : boolean
$redaxoVersion string REDAXO version
리턴 boolean

checkRequirements() 공개 메소드

Checks whether the requirements are met.
public checkRequirements ( ) : boolean
리턴 boolean

deactivate() 공개 메소드

Deactivates a package.
public deactivate ( ) : boolean
리턴 boolean TRUE on success, FALSE on error

delete() 공개 메소드

Deletes a package.
public delete ( ) : boolean
리턴 boolean TRUE on success, FALSE on error

factory() 공개 정적인 메소드

Creates the manager for the package.
public static factory ( rex_package $package ) : static
$package rex_package Package
리턴 static

generatePackageOrder() 공개 정적인 메소드

Generates the package order.
public static generatePackageOrder ( )

getMessage() 공개 메소드

Returns the message.
public getMessage ( ) : string
리턴 string

i18n() 보호된 메소드

Translates the given key.
protected i18n ( string $key ) : string
$key string Key
리턴 string Tranlates text

install() 공개 메소드

Installs a package.
public install ( boolean $installDump = true ) : boolean
$installDump boolean When TRUE, the sql dump will be importet
리턴 boolean TRUE on success, FALSE on error

saveConfig() 보호된 정적인 메소드

Saves the package config.
protected static saveConfig ( )

synchronizeWithFileSystem() 공개 정적인 메소드

Synchronizes the packages with the file system.
public static synchronizeWithFileSystem ( )

uninstall() 공개 메소드

Uninstalls a package.
public uninstall ( boolean $installDump = true ) : boolean
$installDump boolean When TRUE, the sql dump will be importet
리턴 boolean TRUE on success, FALSE on error

wrongPackageId() 추상적인 보호된 메소드

abstract protected wrongPackageId ( string $addonName, string $pluginName = null ) : string
$addonName string
$pluginName string
리턴 string

프로퍼티 상세

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

protected $generatePackageOrder

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

protected $message

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

protected rex_package $package
리턴 rex_package