PHP 클래스 Airship\Cabin\Bridge\Blueprint\Skyport

Manages data about the available/existing Airship extensions
상속: extends BlueprintGear, use trait Common
파일 보기 프로젝트 열기: paragonie/airship 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$installHash string
$prefix string

공개 메소드들

메소드 설명
countAvailable ( string $type = '' ) : integer Get the number of packages available
countInstalled ( ) : integer Get the number of packages installed
countOutdated ( ) : integer
forceRemoval ( string $type, string $supplier, string $package ) : string Force a package to be removed.
getAvailable ( string $type = '', string $query = '', integer $offset, integer $limit ) : array Get the available packages (based on data provided by Keyggdrasil)
getDetails ( string $type, string $supplier, string $name ) : array Get the relevant details for a particular package
getInstalled ( boolean $grouped = false, integer $offset, integer $limit = 20 ) : array Get a list of all installed packages
getLeftMenu ( ) : array Dynamic content for the left menu of the Skyport.
getLogMessages ( DateTime $cutoffDate = null ) : array Get the recent messages in the update log
getOutdatedPackages ( ) : array Gets all packages for which a new version is available.
getURL ( string $type, string $supplier, string $name ) : string
isLocked ( ) : boolean Is the skyport locked? This prevents packages from being installed or removed.
isPasswordLocked ( ) : boolean Is the skyport password-protected? This prevents packages from being installed or removed without a separate password?
manualRefresh ( string $type, string $supplier, string $pkg ) : boolean Manually refresh a package's metadata.
tryUnlockPassword ( HiddenString $password ) : boolean

보호된 메소드들

메소드 설명
deleteMotifFromCabin ( string $cabin, string $key ) Deletes a motif from a cabin's configuration
getAvailableUpgrades ( array $ext = [] ) : array Get a list of all the available upgrade version identifiers
getMotifPath ( string $cabin, array $info ) : array Locate the path that hosts the motif
getNewVersions ( array $package ) : array Get all of the new versions available for a given package
getPackageMetadata ( string $type, string $supplier, string $pkg ) : array Get the updated metadata for a particular package.
removeCabin ( array $info ) : string Remove a cabin
removeGadget ( array $info ) : string Remove a gadget
removeMotif ( array $info ) : string Remove a motif

메소드 상세

countAvailable() 공개 메소드

Get the number of packages available
public countAvailable ( string $type = '' ) : integer
$type string The package type
리턴 integer

countInstalled() 공개 메소드

Get the number of packages installed
public countInstalled ( ) : integer
리턴 integer

countOutdated() 공개 메소드

public countOutdated ( ) : integer
리턴 integer

deleteMotifFromCabin() 보호된 메소드

Deletes a motif from a cabin's configuration
protected deleteMotifFromCabin ( string $cabin, string $key )
$cabin string
$key string

forceRemoval() 공개 메소드

Force a package to be removed.
public forceRemoval ( string $type, string $supplier, string $package ) : string
$type string
$supplier string
$package string
리턴 string

getAvailable() 공개 메소드

Get the available packages (based on data provided by Keyggdrasil)
public getAvailable ( string $type = '', string $query = '', integer $offset, integer $limit ) : array
$type string
$query string Search query
$offset integer
$limit integer
리턴 array

getAvailableUpgrades() 보호된 메소드

Get a list of all the available upgrade version identifiers
protected getAvailableUpgrades ( array $ext = [] ) : array
$ext array
리턴 array

getDetails() 공개 메소드

Get the relevant details for a particular package
public getDetails ( string $type, string $supplier, string $name ) : array
$type string
$supplier string
$name string
리턴 array

getInstalled() 공개 메소드

Get a list of all installed packages
public getInstalled ( boolean $grouped = false, integer $offset, integer $limit = 20 ) : array
$grouped boolean Group by type? (Creates 2D array)
$offset integer
$limit integer
리턴 array

getLeftMenu() 공개 메소드

Dynamic content for the left menu of the Skyport.
public getLeftMenu ( ) : array
리턴 array

getLogMessages() 공개 메소드

Get the recent messages in the update log
public getLogMessages ( DateTime $cutoffDate = null ) : array
$cutoffDate DateTime
리턴 array

getMotifPath() 보호된 메소드

Locate the path that hosts the motif
protected getMotifPath ( string $cabin, array $info ) : array
$cabin string
$info array
리턴 array

getNewVersions() 보호된 메소드

Unlike getAvailableUpgrades(), this gets the full dataset
protected getNewVersions ( array $package ) : array
$package array
리턴 array

getOutdatedPackages() 공개 메소드

Gets all packages for which a new version is available.
public getOutdatedPackages ( ) : array
리턴 array

getPackageMetadata() 보호된 메소드

Get the updated metadata for a particular package.
protected getPackageMetadata ( string $type, string $supplier, string $pkg ) : array
$type string
$supplier string
$pkg string
리턴 array

getURL() 공개 메소드

public getURL ( string $type, string $supplier, string $name ) : string
$type string
$supplier string
$name string
리턴 string

isLocked() 공개 메소드

Is the skyport locked? This prevents packages from being installed or removed.
public isLocked ( ) : boolean
리턴 boolean

isPasswordLocked() 공개 메소드

Is the skyport password-protected? This prevents packages from being installed or removed without a separate password?
public isPasswordLocked ( ) : boolean
리턴 boolean

manualRefresh() 공개 메소드

Manually refresh a package's metadata.
public manualRefresh ( string $type, string $supplier, string $pkg ) : boolean
$type string
$supplier string
$pkg string
리턴 boolean

removeCabin() 보호된 메소드

Remove a cabin
protected removeCabin ( array $info ) : string
$info array
리턴 string

removeGadget() 보호된 메소드

Remove a gadget
protected removeGadget ( array $info ) : string
$info array
리턴 string

removeMotif() 보호된 메소드

Remove a motif
protected removeMotif ( array $info ) : string
$info array
리턴 string

tryUnlockPassword() 공개 메소드

public tryUnlockPassword ( HiddenString $password ) : boolean
$password HiddenString
리턴 boolean

프로퍼티 상세

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

protected string $installHash
리턴 string

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

protected string $prefix
리턴 string