ExtensionPackage
class ExtensionPackage extends Package implements PackageInterface, ViewComponentsInterface
Extension Package
Traits
Constants
USER |
Extension type |
SYSTEM |
|
Properties
protected CollectionInterface | $properties | Package properties | from Package |
protected PackageRegistryInterface|null | $packageRegistry | Package Registry Interface | from Package |
protected string | $path | Package root path | from Package |
Methods
Constructor
Return true if package is installed
Set package as primary
Get extension package properties
Install extension package
Run post install actions
Uninstall extension package
Enable extension
Disable extension
Scan directory and return emails list
Get component path
Scan directory and return components list
Scan directory and return components list
Get extension models.
Register event subscribers
Return extension type id
Get extension models schema path
Get extension model path
Get extension subscribers path.
Details
in Package at line 53
__construct(string $path, CollectionInterface $properties, PackageRegistryInterface|null $packageRegistry = null)
Constructor
in Drivers at line 24
array
getDrivers()
Get module console commands class list.
at line 84
bool
isInstalled()
Return true if package is installed
in Package at line 86
PackageValidator
validator()
Create package validator
in Package at line 96
string
getPath()
Get package root path
in Package at line 106
string
getVersion()
Get Package version
in Package at line 116
array|null
getLanguages()
Get suppported languages
at line 94
bool
setPrimary()
Set package as primary
in Package at line 136
string|null
getType()
Get package type
in Package at line 147
mixed
getInstalOrder(mixed|null $default = null)
Get install order
in Package at line 157
string
getName()
Return package name
at line 53
Collection
getProperties(bool $full = false)
Get extension package properties
in Package at line 178
CollectionInterface
getRequire()
Get require property
in Package at line 192
mixed
getProperty(string $name, mixed $default = null)
Get package property
in Package at line 202
bool
validate()
Validate package properties
at line 140
bool
install(bool|null $primary = null)
Install extension package
at line 182
bool
postInstall()
Run post install actions
at line 202
bool
unInstall()
Uninstall extension package
at line 235
bool
enable()
Enable extension
at line 254
bool
disable()
Disable extension
in Package at line 263
bool
savePackageProperties()
Save package properties file
in ViewComponents at line 25
string
getViewPath(string|null $componentsType = null)
Get view path
in ViewComponents at line 47
string
getComponentsPath()
Get components path
in ViewComponents at line 57
string
getPagesPath()
Get pages path
in ViewComponents at line 67
string
getEmailsPath()
Get emails components path
in ViewComponents at line 77
string
getMacrosPath()
Get macros path
in ViewComponents at line 88
array
getMacros(string|null $path = null)
Scan directory and return macros list
in ViewComponents at line 115
array
getPages(string|null $parent = null)
Scan directory and return pages list
in ViewComponents at line 126
array
getEmails(string|null $parent = null)
Scan directory and return emails list
in ViewComponents at line 138
string
getComponentPath(string|null $componentName, string $type = 'components')
Get component path
in ViewComponents at line 153
array
getComponents(string|null $parent = null, string $type = 'components')
Scan directory and return components list
in ViewComponents at line 186
array
getComponentsRecursive(string|null $path = null)
Scan directory and return components list
in ConsoleCommands at line 24
array
getConsoleCommands()
Get package console commands
in Jobs at line 26
string
getJobsPath()
Get extension jobs path
in Jobs at line 36
array
getPackageJobs()
Get extension jobs
in Drivers at line 52
string
getDriversPath()
Get module drivers path
at line 106
array
getModels()
Get extension models.
at line 273
int
registerEventsSubscribers()
Register event subscribers
at line 301
integer|false
getTypeId(string|integer $typeName)
Return extension type id
at line 311
string
getModelsSchemaPath()
Get extension models schema path
at line 321
string
getModelsPath()
Get extension model path
at line 331
string
getSubscribersPath()
Get extension subscribers path.