Arikaim CMS

ModulePackage extends Package
in package
implements PackageInterface Uses Drivers, Jobs, ConsoleCommands

Module Package class

Table of Contents

Interfaces

PackageInterface
Package interface, all packages type should impelement it.

Constants

MIDDLEWARE  = 2
PACKAGE  = 1
SERVICE  = 0
TYPE_NAME  = ['service', 'package', 'middleware']
Module type

Properties

$packageRegistry  : PackageRegistryInterface|null
Package Registry Interface
$path  : string
Package root path
$properties  : CollectionInterface
Package properties

Methods

__construct()  : mixed
Constructor
disable()  : bool
Disable module
enable()  : bool
Enable module
getClass()  : string
Get module class
getConsoleCommands()  : array<string|int, mixed>
Get package console commands
getConsolePath()  : string
Get module console commands path
getDrivers()  : array<string|int, mixed>
Get drivers classes list
getDriversPath()  : string
Get module drivers path
getInstalOrder()  : mixed
Get install order
getJobsPath()  : string
Get extension jobs path
getLanguages()  : array<string|int, mixed>|null
Get suppported languages
getName()  : string
Return package name
getPackageJobs()  : array<string|int, mixed>
Get extension jobs
getPath()  : string
Get package root path
getProperties()  : Collection
Get module package properties
getProperty()  : mixed
Get package property
getRequire()  : CollectionInterface
Get require property
getType()  : string|null
Get package type
getTypeId()  : int
Get type id
getVersion()  : string
Get Package version
install()  : mixed
Install module
isInstalled()  : bool
Return true if package is installed
postInstall()  : bool
Run post install actions
savePackageProperties()  : bool
Save package properties file
setPrimary()  : bool
Set package as primary
unInstall()  : bool
Uninstall module
validate()  : bool
Validate package properties
validator()  : PackageValidator
Create package validator

Constants

TYPE_NAME

Module type

public mixed TYPE_NAME = ['service', 'package', 'middleware']

Properties

$path

Package root path

protected string $path

Methods

disable()

Disable module

public disable() : bool
Return values
bool

enable()

Enable module

public enable() : bool
Return values
bool

getClass()

Get module class

public getClass() : string
Return values
string

getConsoleCommands()

Get package console commands

public getConsoleCommands() : array<string|int, mixed>
Return values
array<string|int, mixed>

getConsolePath()

Get module console commands path

public getConsolePath() : string
Return values
string

getDrivers()

Get drivers classes list

public getDrivers() : array<string|int, mixed>
Return values
array<string|int, mixed>

getDriversPath()

Get module drivers path

public getDriversPath() : string
Return values
string

getInstalOrder()

Get install order

public getInstalOrder([mixed|null $default = null ]) : mixed
Parameters
$default : mixed|null = null

getJobsPath()

Get extension jobs path

public getJobsPath() : string
Return values
string

getLanguages()

Get suppported languages

public getLanguages() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

getName()

Return package name

public getName() : string
Return values
string

getPackageJobs()

Get extension jobs

public getPackageJobs() : array<string|int, mixed>
Return values
array<string|int, mixed>

getPath()

Get package root path

public getPath() : string
Return values
string

getProperties()

Get module package properties

public getProperties([bool $full = false ]) : Collection
Parameters
$full : bool = false
Return values
Collection

getProperty()

Get package property

public getProperty(string $name[, mixed $default = null ]) : mixed
Parameters
$name : string
$default : mixed = null

getType()

Get package type

public getType() : string|null
Return values
string|null

getTypeId()

Get type id

public static getTypeId(string $typeName) : int
Parameters
$typeName : string
Return values
int

getVersion()

Get Package version

public getVersion() : string
Return values
string

install()

Install module

public install([bool|null $primary = null ]) : mixed
Parameters
$primary : bool|null = null

Primary package replaces routes or other params

Tags
throws
Exception

isInstalled()

Return true if package is installed

public isInstalled() : bool
Return values
bool

postInstall()

Run post install actions

public postInstall() : bool
Return values
bool

savePackageProperties()

Save package properties file

public savePackageProperties() : bool
Return values
bool

setPrimary()

Set package as primary

public setPrimary() : bool
Return values
bool

unInstall()

Uninstall module

public unInstall() : bool
Return values
bool

validate()

Validate package properties

public validate() : bool
Return values
bool

        
On this page

Search results