-
Notifications
You must be signed in to change notification settings - Fork 2
Module
Viames Marino edited this page Apr 23, 2026
·
2 revisions
Pair\Models\Module represents an installable module package record.
getPackageBaseFolder(): stringgetInstallablePackage(): InstallablePackagestoreFromPackageManifest(SimpleXMLElement $options): bool
Lifecycle hooks:
-
_init()defines schema and validation -
beforeDelete()performs module cleanup
$module = \Pair\Models\Module::findById($id);
if ($module && $module->isCompatibleWithApp()) {
$package = $module->getInstallablePackage();
// use package metadata or download helpers
}- Extends
InstallablePackageRecord, so it inherits compatibility checks. - Integrates with package manifest options when storing.
See also: InstallablePackage, InstallablePackageRecord, Template.