Arikaim CMS

PackageManagerInterface

Package manager interface

Table of Contents

Methods

createBackup()  : bool
Create zip arhive with package files and save to storage/backup/
createPackage()  : PackageInterface
Create package obj
disablePackage()  : bool
Disable package
enablePackage()  : bool
Enable package
findPackage()  : PackageInterface|false
Find package
getInstalled()  : array<string|int, mixed>
Return installed packages
getPackageProperties()  : Collection|null
Get package properties
getPackages()  : mixed
Get packages list
getRepository()  : RepositoryInterface
Get package repository
installAllPackages()  : mixed
Install all packages
installPackage()  : mixed
Install package
postInstallPackage()  : mixed
Run post install actions on package
unInstallPackage()  : bool
Uninstall package

Methods

createBackup()

Create zip arhive with package files and save to storage/backup/

public createBackup(string $name) : bool
Parameters
$name : string
Return values
bool

createPackage()

Create package obj

public createPackage(string $name) : PackageInterface
Parameters
$name : string
Return values
PackageInterface

disablePackage()

Disable package

public disablePackage(string $name) : bool
Parameters
$name : string
Return values
bool

enablePackage()

Enable package

public enablePackage(string $name) : bool
Parameters
$name : string
Return values
bool

findPackage()

Find package

public findPackage(string $param, mixed $value) : PackageInterface|false
Parameters
$param : string
$value : mixed
Return values
PackageInterface|false

getInstalled()

Return installed packages

public getInstalled([mixed|null $status = null ][, mixed|null $type = null ]) : array<string|int, mixed>
Parameters
$status : mixed|null = null
$type : mixed|null = null
Return values
array<string|int, mixed>

getPackageProperties()

Get package properties

public getPackageProperties(string $name[, bool $full = false ]) : Collection|null
Parameters
$name : string
$full : bool = false
Return values
Collection|null

getPackages()

Get packages list

public getPackages([bool $cached = false ][, mixed $filter = null ]) : mixed
Parameters
$cached : bool = false
$filter : mixed = null

getRepository()

Get package repository

public getRepository(string $packageName) : RepositoryInterface
Parameters
$packageName : string
Return values
RepositoryInterface

installPackage()

Install package

public installPackage(string $name) : mixed
Parameters
$name : string

postInstallPackage()

Run post install actions on package

public postInstallPackage(string $name) : mixed
Parameters
$name : string

unInstallPackage()

Uninstall package

public unInstallPackage(string $name) : bool
Parameters
$name : string
Return values
bool

        
On this page

Search results