e26d0ed400
Generic: Repo Health / Scripts governance (push) Blocked by required conditions
Generic: Repo Health / Repository health (push) Blocked by required conditions
Generic: Repo Health / Report Issues (push) Blocked by required conditions
Generic: Project CI / Tests (pull_request) Blocked by required conditions
Generic: Repo Health / Site Health (push) Has been skipped
Joomla: Extension CI / Tests (PHP 8.2) (pull_request) Blocked by required conditions
Joomla: Extension CI / Tests (PHP 8.3) (pull_request) Blocked by required conditions
Joomla: Extension CI / PHPStan Analysis (pull_request) Blocked by required conditions
Generic: Repo Health / Access control (push) Successful in 2s
Generic: Repo Health / Scripts governance (pull_request) Blocked by required conditions
Generic: Repo Health / Repository health (pull_request) Blocked by required conditions
Generic: Repo Health / Report Issues (pull_request) Blocked by required conditions
Generic: Repo Health / Access control (pull_request) Successful in 3s
Generic: Repo Health / Site Health (pull_request) Has been skipped
Joomla: Extension CI / Lint & Validate (pull_request) Failing after 8s
Joomla: Extension CI / Release Readiness Check (pull_request) Failing after 7s
Universal: Secret Scanning / Gitleaks Secret Scan (pull_request) Successful in 9s
Generic: Project CI / Lint & Validate (pull_request) Successful in 34s
Universal: Build & Release / Promote to RC (pull_request) Has been skipped
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Branch Cleanup / Delete merged branch (pull_request) Successful in 2s
Universal: Workflow Sync Trigger / Sync workflows to live repos (pull_request) Failing after 3s
Universal: Build & Release / Build & Release Pipeline (pull_request) Failing after 10s
Security:
- Fix stored XSS in Leaflet popup — HTML-escape loc.title/address/phone
- Use HTMLHelper::_('content.prepare') for description output
Joomla 5/6 compatibility:
- Bump PHP minimum to 8.2, Joomla minimum to 5.0.0
- script.php implements InstallerScriptInterface with typed signatures
- Restore updateservers and dlid in package manifest
- Update all manifest creationDates to 2026-06-23
Code quality:
- Replace hard-coded English errors with Text::_() language strings
- Add COM_MOKOJOOMSTORELOCATOR_ERROR_* language keys
- Use Text::_() for Locations list toolbar title
- Import missing Text class in LocationTable and Locations HtmlView
Documentation:
- Update CLAUDE.md: MokoSuite naming, source/ paths, PHP 8.2, namespace
- Update README: Joomla 5/6, PHP 8.2+, MySQL 8.0+
Authored-by: Moko Consulting
132 lines
2.7 KiB
PHP
132 lines
2.7 KiB
PHP
<?php
|
|
/**
|
|
* @package MokoSuiteStoreLocator
|
|
* @subpackage pkg_mokosuitestorelocator
|
|
* @copyright Copyright (C) 2026 Moko Consulting. All rights reserved.
|
|
* @license GNU General Public License version 3 or later; see LICENSE
|
|
*/
|
|
|
|
defined('_JEXEC') or die;
|
|
|
|
use Joomla\CMS\Installer\InstallerAdapter;
|
|
use Joomla\CMS\Installer\InstallerScriptInterface;
|
|
use Joomla\CMS\Log\Log;
|
|
|
|
/**
|
|
* Package installation script for MokoSuiteStoreLocator.
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
class Pkg_MokosuitestorelocatorInstallerScript implements InstallerScriptInterface
|
|
{
|
|
/**
|
|
* Minimum PHP version required.
|
|
*
|
|
* @var string
|
|
* @since 1.0.0
|
|
*/
|
|
protected string $minimumPhp = '8.2';
|
|
|
|
/**
|
|
* Minimum Joomla version required.
|
|
*
|
|
* @var string
|
|
* @since 1.0.0
|
|
*/
|
|
protected string $minimumJoomla = '5.0.0';
|
|
|
|
/**
|
|
* Called before any type of action.
|
|
*
|
|
* @param string $type Installation type (install, update, discover_install).
|
|
* @param InstallerAdapter $parent The parent installer object.
|
|
*
|
|
* @return boolean True on success.
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function preflight(string $type, InstallerAdapter $parent): bool
|
|
{
|
|
if (version_compare(PHP_VERSION, $this->minimumPhp, '<'))
|
|
{
|
|
Log::add(
|
|
'MokoSuiteStoreLocator requires PHP ' . $this->minimumPhp . ' or later.',
|
|
Log::WARNING,
|
|
'jerror'
|
|
);
|
|
|
|
return false;
|
|
}
|
|
|
|
if (version_compare(JVERSION, $this->minimumJoomla, '<'))
|
|
{
|
|
Log::add(
|
|
'MokoSuiteStoreLocator requires Joomla ' . $this->minimumJoomla . ' or later.',
|
|
Log::WARNING,
|
|
'jerror'
|
|
);
|
|
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* Called on installation.
|
|
*
|
|
* @param InstallerAdapter $parent The parent installer object.
|
|
*
|
|
* @return boolean True on success.
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function install(InstallerAdapter $parent): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* Called on update.
|
|
*
|
|
* @param InstallerAdapter $parent The parent installer object.
|
|
*
|
|
* @return boolean True on success.
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function update(InstallerAdapter $parent): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* Called on uninstallation.
|
|
*
|
|
* @param InstallerAdapter $parent The parent installer object.
|
|
*
|
|
* @return boolean True on success.
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function uninstall(InstallerAdapter $parent): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* Called after any type of action.
|
|
*
|
|
* @param string $type Installation type.
|
|
* @param InstallerAdapter $parent The parent installer object.
|
|
*
|
|
* @return boolean True on success.
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function postflight(string $type, InstallerAdapter $parent): bool
|
|
{
|
|
return true;
|
|
}
|
|
}
|